summaryrefslogtreecommitdiff
path: root/source3/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
commit1c6f52cc284a75e304d10c098088c1c846c9efc8 (patch)
tree90260b384ff8eaf0150e920a14003ab48a9ae851 /source3/script/installbin.sh
parent65a29b0ca56a78148b415fd817af245afc2bb0b9 (diff)
downloadsamba-1c6f52cc284a75e304d10c098088c1c846c9efc8.tar.gz
samba-1c6f52cc284a75e304d10c098088c1c846c9efc8.tar.bz2
samba-1c6f52cc284a75e304d10c098088c1c846c9efc8.zip
fixed the installation scripts for the new layout
(This used to be commit 60cdb83f3f6dfd7755e46254662245a82a8ef498)
Diffstat (limited to 'source3/script/installbin.sh')
-rwxr-xr-xsource3/script/installbin.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/source3/script/installbin.sh b/source3/script/installbin.sh
index b976a3e5ea..22771ce5a0 100755
--- a/source3/script/installbin.sh
+++ b/source3/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