Browse Source

atom-beautify

pull/19/head
6543 4 years ago
parent
commit
b6eb652c50
  1. 56
      autogen.sh

56
autogen.sh

@ -9,44 +9,44 @@
# install | clean | debug

function clean() {
echo "clear build"
[ -d build ] && rm -v -R build
mkdir build
echo "clear build"
[ -d build ] && rm -v -R build
mkdir build
}

function build() {
echo "build ..."
## skripte copieren ##
# remaster
mkdir -p build/usr/bin/
cp -v src/remaster.sh build/usr/bin/remaster
chmod +x build/usr/bin/remaster

# modules
mkdir -p build/usr/lib/remaster/
for i in proj func mods; do
mkdir -p build/usr/lib/remaster/$i
cp -v src/$i/* build/usr/lib/remaster/$i/
done

# setting
mkdir -p build/etc/remaster/
cp -v src/config.sample.cfg build/etc/remaster/config.sample.cfg
echo "build ..."
## skripte copieren ##
# remaster
mkdir -p build/usr/bin/
cp -v src/remaster.sh build/usr/bin/remaster
chmod +x build/usr/bin/remaster

# modules
mkdir -p build/usr/lib/remaster/
for i in proj func mods; do
mkdir -p build/usr/lib/remaster/$i
cp -v src/$i/* build/usr/lib/remaster/$i/
done

# setting
mkdir -p build/etc/remaster/
cp -v src/config.sample.cfg build/etc/remaster/config.sample.cfg

}


case "$1" in
install)
install || exit 1
;;
install || exit 1
;;
clean)
clean || exit 1
;;
clean || exit 1
;;
debug)
debug || exit 1
;;
debug || exit 1
;;
*)
echo "Usage: install | clean | debug"
exit 1
echo "Usage: install | clean | debug"
exit 1
esac

Loading…
Cancel
Save