19 lines
346 B
Bash
19 lines
346 B
Bash
|
#!/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
|
||
|
install -v aps ${prefix}/usr/bin/ &&
|
||
|
install -v altools/sel ${prefix}/usr/bin/
|
||
|
fi
|