autogen irreführende namen geändert

This commit is contained in:
6543 2018-05-12 20:19:12 +02:00
parent 80d2ad753d
commit 7aadb795ff

View File

@ -1,15 +1,13 @@
#!/bin/bash #!/bin/bash
# at the moment only generate dir structure in /build # install | clean | debug | build-deb


#make ...
function clean() { function clean() {
echo "clear build" echo "clear build"
[ -d build ] && rm -v -R build [ -d build ] && rm -v -R build
mkdir build mkdir build
} }
function build() { function copy() {
echo "build ..." echo "copy files ..."
## skripte copieren ##
# remaster # remaster
mkdir -p build/usr/bin/ mkdir -p build/usr/bin/
cp -v src/remaster.sh build/usr/bin/remaster cp -v src/remaster.sh build/usr/bin/remaster
@ -49,21 +47,21 @@ function set_libdir() {
#modes #modes
function debug() { function debug() {
clean clean
build copy
set_rootdir "`pwd`/build" set_rootdir "`pwd`/build"
set_libdir "`pwd`/build/usr/lib/remaster" set_libdir "`pwd`/build/usr/lib/remaster"
} }
function install() { function install() {
clean clean
build copy
set_rootdir "" set_rootdir ""
set_libdir "/usr/lib/remaster" set_libdir "/usr/lib/remaster"
#cp -f -r build/* / #cp -f -r build/* /
} }
function build_deb() { function build-deb() {
clean clean
#prebuild #prebuild
build copy
set_rootdir "" set_rootdir ""
set_libdir "/usr/lib/remaster" set_libdir "/usr/lib/remaster"
#### ####
@ -97,13 +95,13 @@ case "$1" in
debug) debug)
debug || exit 1 debug || exit 1
;; ;;
build) copy)
build || exit 1 copy || exit 1
;; ;;
build_deb) build-deb)
build_deb || exit 1 build-deb || exit 1
;; ;;
*) *)
echo "Usage: install | clean | debug | build_deb" echo "Usage: install | clean | debug | build-deb"
exit 1 exit 1
esac esac