remaster/gendeb.sh

40 lines
687 B
Bash
Raw Normal View History

2018-04-26 11:23:51 +00:00
#!/bin/bash
# at the moment only generate dir structure in /build
2018-04-26 18:58:19 +00:00
#####################
## setup build dir ##
#####################
rootdir=build
2018-04-26 11:23:51 +00:00
echo "clear build"
2018-04-26 18:58:19 +00:00
[ -d $rootdir ] && rm -v -R $rootdir
mkdir $rootdir
######################
## skripte copieren ##
######################
2018-04-26 11:23:51 +00:00
echo "copy files"
2018-04-26 18:58:19 +00:00
2018-04-26 17:46:17 +00:00
# remaster
2018-04-26 18:58:19 +00:00
mkdir -p $rootdir/usr/bin/
cp -v src/remaster.sh $rootdir/usr/bin/remaster
chmod +x $rootdir/usr/bin/remaster
2018-04-26 17:46:17 +00:00
# modules
2018-04-26 18:58:19 +00:00
mkdir -p $rootdir/usr/lib/remaster/
for i in dist functions mods; do
cp -v src/$i/* $rootdir/usr/lib/remaster/
done
# setting
cp -v src/config.sample.cfg $rootdir/etc/remaster/config.sample.cfg
2018-04-26 11:23:51 +00:00
# Pfade anpassen
#sed ...
2018-04-26 18:58:19 +00:00
2018-04-26 11:23:51 +00:00
#mkdeb...
#not jet