No longer hardcore the target directory as being BINDIR
This commit is contained in:
parent
0f4e6fa428
commit
554c94fc72
@ -72,23 +72,22 @@ if [ $# -eq 0 ]; then
|
||||
exit $?
|
||||
fi
|
||||
|
||||
BINDIR="$PREFIX/bin"
|
||||
while [ $# -gt 0 ]; do
|
||||
target="$1"
|
||||
shift
|
||||
|
||||
#uninstall
|
||||
if [ "$uninstall" -eq 1 ]; then
|
||||
$DEBUG $RM -- "$BINDIR/$target" || exit 2
|
||||
$DEBUG $RM -- "$PREFIX/$target" || exit 2
|
||||
continue
|
||||
fi
|
||||
|
||||
#install
|
||||
if [ "$install" -eq 1 ]; then
|
||||
$DEBUG $MKDIR -- "$BINDIR" || exit 2
|
||||
$DEBUG $MKDIR -- "$PREFIX" || exit 2
|
||||
mode="-m 0644"
|
||||
[ -x "$target" ] && mode="-m 0755"
|
||||
$DEBUG $INSTALL $mode "$target" "$BINDIR/$target" \
|
||||
$DEBUG $INSTALL $mode "$target" "$PREFIX/$target" \
|
||||
|| exit 2
|
||||
continue
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user