diff options
author | Lars Müller <lmuelle@samba.org> | 2006-02-24 00:30:09 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:10:21 -0500 |
commit | 9169edfeb4ea4358dbaf948372847542fb57464e (patch) | |
tree | 8d7e90e42d7bb6ec37a12f8c9885038720bf4025 /source3/script/installbin.sh | |
parent | e18349b2bb6f4df9c6d08a3d62cfbf012f7f3660 (diff) | |
download | samba-9169edfeb4ea4358dbaf948372847542fb57464e.tar.gz samba-9169edfeb4ea4358dbaf948372847542fb57464e.tar.bz2 samba-9169edfeb4ea4358dbaf948372847542fb57464e.zip |
r13663: make uninstall DESTDIR=/somewhere no longer leaves files. This is done
with the new rules: uninstallservers uninstalldat, uninstallswat (calles
uninstallmsg), uninstallmodules, uninstallclientlib, and
uninstalllibmsrpc.
We still leave directories. We might try to remove the dirs we created
in reverse order.
The new uninstall scripts are sym links to the respective install
scripts. Inside we set mode to install or uninstall.
installservers is now used to install the servers. These are no longer
installed with installbin.
(This used to be commit 43549301b937c060742840054017b31bf3781e04)
Diffstat (limited to 'source3/script/installbin.sh')
-rwxr-xr-x | source3/script/installbin.sh | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/source3/script/installbin.sh b/source3/script/installbin.sh index 2f15ce595a..8859c95341 100755 --- a/source3/script/installbin.sh +++ b/source3/script/installbin.sh @@ -2,20 +2,14 @@ INSTALLPERMS=$1 DESTDIR=$2 -BASEDIR=`echo $3 | sed 's/\/\//\//g'` -BINDIR=`echo $4 | sed 's/\/\//\//g'` -LIBDIR=`echo $5 | sed 's/\/\//\//g'` -VARDIR=`echo $6 | sed 's/\/\//\//g'` -shift -shift -shift +BINDIR=`echo $3 | sed 's/\/\//\//g'` shift shift shift for p in $*; do p2=`basename $p` - echo Installing $p as $DESTDIR/$BINDIR/$p2 + echo "Installing $p as $DESTDIR/$BINDIR/$p2 " if [ -f $DESTDIR/$BINDIR/$p2 ]; then rm -f $DESTDIR/$BINDIR/$p2.old mv $DESTDIR/$BINDIR/$p2 $DESTDIR/$BINDIR/$p2.old @@ -27,7 +21,8 @@ for p in $*; do if [ $p2 = smbmount ]; then if [ ! -d $DESTDIR/sbin ]; then mkdir $DESTDIR/sbin - fi + fi + echo "Creating sym link $DESTDIR/sbin/mount.smbfs to $BINDIR/$p2 " ln -sf $BINDIR/$p2 $DESTDIR/sbin/mount.smbfs fi done |