From 60cdb83f3f6dfd7755e46254662245a82a8ef498 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 10 Aug 1998 01:55:42 +0000 Subject: fixed the installation scripts for the new layout --- source/script/installbin.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'source/script/installbin.sh') diff --git a/source/script/installbin.sh b/source/script/installbin.sh index b976a3e5ea8..22771ce5a07 100755 --- a/source/script/installbin.sh +++ b/source/script/installbin.sh @@ -1,4 +1,5 @@ #!/bin/sh + INSTALLPERMS=$1 BASEDIR=$2 BINDIR=$3 @@ -22,12 +23,13 @@ done for p in $*; do - echo Installing $p as $BINDIR/$p - if [ -f $BINDIR/$p ]; then - mv $BINDIR/$p $BINDIR/$p.old + p2=`basename $p` + echo Installing $p as $BINDIR/$p2 + if [ -f $BINDIR/$p2 ]; then + mv $BINDIR/$p2 $BINDIR/$p2.old fi - cp $p $BINDIR/$p - chmod $INSTALLPERMS $BINDIR/$p + cp $p $BINDIR/ + chmod $INSTALLPERMS $BINDIR/$p2 done -- cgit