2021-08-24 08:32:32 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
##########################
|
|
|
|
# INSTALL SCRIPT FOR APS #
|
|
|
|
##########################
|
|
|
|
case $1 in
|
|
|
|
--prefix) prefix=$2 ;;
|
|
|
|
*) prefix=/
|
|
|
|
esac
|
|
|
|
if [ ${prefix} == / ]; then
|
|
|
|
if [ $(whoami) != root ]; then
|
|
|
|
echo '[E] You must run as root!'
|
|
|
|
kill 2
|
|
|
|
fi
|
|
|
|
else
|
2021-08-31 15:20:02 +03:00
|
|
|
export install_root=${prefix}
|
2021-08-25 17:28:01 +03:00
|
|
|
./aps sync alnux
|
2021-08-24 08:32:32 +03:00
|
|
|
install -v aps ${prefix}/usr/bin/ &&
|
2021-08-25 12:37:56 +03:00
|
|
|
install -v altools/sel ${prefix}/usr/bin/ &&
|
2021-08-25 17:28:01 +03:00
|
|
|
install -v altools/repo ${prefix}/usr/bin/ &&
|
2021-08-26 13:13:29 +03:00
|
|
|
install -v config/config ${prefix}/etc/al &&
|
|
|
|
install -v -Dm644 man/aps.8.gz ${prefix}/usr/share/man/man8/
|
2021-08-24 08:32:32 +03:00
|
|
|
fi
|