summaryrefslogtreecommitdiffstats
path: root/source/script/installbin.sh
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-08-10 01:55:42 +0000
committerAndrew Tridgell <tridge@samba.org>1998-08-10 01:55:42 +0000
commit60cdb83f3f6dfd7755e46254662245a82a8ef498 (patch)
treebda88f84626866b87a44ccb91f9adde593a241b7 /source/script/installbin.sh
parent7fecc3d5a2fb641237f24a3f39c6556fde648a8a (diff)
downloadsamba-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-xsource/script/installbin.sh12
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