source cant use variables (p2)
This commit is contained in:
parent
4b9bbe22af
commit
801da8e4af
39
autogen.sh
39
autogen.sh
@ -8,41 +8,32 @@
|
|||||||
[ -n "$1" ] && mode=debug
|
[ -n "$1" ] && mode=debug
|
||||||
# install | clean | debug
|
# install | clean | debug
|
||||||
|
|
||||||
case
|
function clean() {
|
||||||
ROOTDIR=build
|
|
||||||
echo "clear build"
|
echo "clear build"
|
||||||
[ -d $ROOTDIR ] && rm -v -R $ROOTDIR
|
[ -d build ] && rm -v -R build
|
||||||
mkdir $ROOTDIR
|
mkdir build
|
||||||
|
}
|
||||||
|
|
||||||
######################
|
function build() {
|
||||||
|
echo "build ..."
|
||||||
## skripte copieren ##
|
## skripte copieren ##
|
||||||
######################
|
|
||||||
|
|
||||||
echo "copy files"
|
|
||||||
|
|
||||||
# remaster
|
# remaster
|
||||||
mkdir -p $ROOTDIR/usr/bin/
|
mkdir -p build/usr/bin/
|
||||||
cp -v src/remaster.sh $ROOTDIR/usr/bin/remaster
|
cp -v src/remaster.sh build/usr/bin/remaster
|
||||||
chmod +x $ROOTDIR/usr/bin/remaster
|
chmod +x build/usr/bin/remaster
|
||||||
|
|
||||||
# modules
|
# modules
|
||||||
mkdir -p $ROOTDIR/usr/lib/remaster/
|
mkdir -p build/usr/lib/remaster/
|
||||||
for i in proj func mods; do
|
for i in proj func mods; do
|
||||||
mkdir -p $ROOTDIR/usr/lib/remaster/$i
|
mkdir -p build/usr/lib/remaster/$i
|
||||||
cp -v src/$i/* $ROOTDIR/usr/lib/remaster/$i/
|
cp -v src/$i/* build/usr/lib/remaster/$i/
|
||||||
done
|
done
|
||||||
|
|
||||||
# setting
|
# setting
|
||||||
mkdir -p $ROOTDIR/etc/remaster/
|
mkdir -p build/etc/remaster/
|
||||||
cp -v src/config.sample.cfg $ROOTDIR/etc/remaster/config.sample.cfg
|
cp -v src/config.sample.cfg build/etc/remaster/config.sample.cfg
|
||||||
|
|
||||||
|
}
|
||||||
# Pfade anpassen
|
|
||||||
#sed ...
|
|
||||||
|
|
||||||
|
|
||||||
#mkdeb...
|
|
||||||
#not jet
|
|
||||||
|
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
Loading…
Reference in New Issue
Block a user