From 554c94fc72d23900759b9da9ef44da30fdab5d75 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Tue, 2 Oct 2012 18:09:33 +0000 Subject: [PATCH] No longer hardcore the target directory as being BINDIR --- doc/scripts/subst.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/doc/scripts/subst.sh b/doc/scripts/subst.sh index 33fd829..5057586 100755 --- a/doc/scripts/subst.sh +++ b/doc/scripts/subst.sh @@ -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