Move sources into a dir.
This commit is contained in:
parent
ca2842a98a
commit
ed3b5b3802
23
install.sh
23
install.sh
@ -1,18 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
PREFIX="/usr/local"
|
||||
ROOT="${ROOT:-/}"
|
||||
PREFIX="${PREFIX:-${ROOT}usr/local}"
|
||||
|
||||
mkdir -p $PREFIX/share/archbox/bin
|
||||
install -v -D -m 755 ./archbox.bash $PREFIX/bin/archbox
|
||||
install -v -D -m 755 ./archbox-desktop.bash $PREFIX/bin/archbox-desktop
|
||||
[[ ! -e /etc/archbox.conf ]] && install -v -D -m 755 ./archbox.conf /etc/archbox.conf
|
||||
install -v -D -m 755 ./exec.bash $PREFIX/share/archbox/bin/exec
|
||||
install -v -D -m 755 ./enter.bash $PREFIX/share/archbox/bin/enter
|
||||
install -v -D -m 755 ./chroot_setup.bash $PREFIX/share/archbox/chroot_setup.bash
|
||||
install -v -D -m 755 ./init.bash $PREFIX/share/archbox/bin/init
|
||||
install -v -D -m 755 ./uth.bash $PREFIX/share/archbox/bin/uth
|
||||
install -v -D -m 755 ./src/archbox.bash $PREFIX/bin/archbox
|
||||
install -v -D -m 755 ./src/archbox-desktop.bash $PREFIX/bin/archbox-desktop
|
||||
[[ ! -e /etc/archbox.conf ]] && install -v -D -m 755 ./src/archbox.conf ${ROOT}etc/archbox.conf
|
||||
install -v -D -m 755 ./src/exec.bash $PREFIX/share/archbox/bin/exec
|
||||
install -v -D -m 755 ./src/enter.bash $PREFIX/share/archbox/bin/enter
|
||||
install -v -D -m 755 ./src/chroot_setup.bash $PREFIX/share/archbox/chroot_setup.bash
|
||||
install -v -D -m 755 ./src/init.bash $PREFIX/share/archbox/bin/init
|
||||
install -v -D -m 755 ./src/uth.bash $PREFIX/share/archbox/bin/uth
|
||||
|
||||
grep 'PREFIX=' /etc/archbox.conf >/dev/null 2>&1 || cat << EOF >> /etc/archbox.conf
|
||||
grep 'PREFIX=' ${ROOT}etc/archbox.conf >/dev/null 2>&1 || cat << EOF >> ${ROOT}etc/archbox.conf
|
||||
|
||||
# Don't change this unless you know what you're doing.
|
||||
PREFIX="$PREFIX"
|
||||
@ -20,7 +21,7 @@ EOF
|
||||
[[ -z $1 ]] && exit 0
|
||||
|
||||
if [ $1 = "--exp" ]; then
|
||||
install -v -D -m 755 ./exp/startx-killxdg.bash $PREFIX/bin/startx-killxdg
|
||||
install -v -D -m 755 ./src/exp/startx-killxdg.bash $PREFIX/bin/startx-killxdg
|
||||
else
|
||||
echo "Unknown install option: $1"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user