diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-08-10 01:55:42 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-08-10 01:55:42 +0000 |
commit | 60cdb83f3f6dfd7755e46254662245a82a8ef498 (patch) | |
tree | bda88f84626866b87a44ccb91f9adde593a241b7 /source/script/installbin.sh | |
parent | 7fecc3d5a2fb641237f24a3f39c6556fde648a8a (diff) | |
download | samba-60cdb83f3f6dfd7755e46254662245a82a8ef498.tar.gz samba-60cdb83f3f6dfd7755e46254662245a82a8ef498.tar.xz samba-60cdb83f3f6dfd7755e46254662245a82a8ef498.zip |
fixed the installation scripts for the new layout
Diffstat (limited to 'source/script/installbin.sh')
-rwxr-xr-x | source/script/installbin.sh | 12 |
1 files changed, 7 insertions, 5 deletions
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 |