few edits
[Samba.git] / source / script / uninstallbin.sh
blob53775f8946590218c250f45e7da49594ab7d0a3a
1 #!/bin/sh
2 #4 July 96 Dan.Shearer@UniSA.edu.au
4 INSTALLPERMS=$1
5 BASEDIR=$2
6 BINDIR=$3
7 LIBDIR=$4
8 VARDIR=$5
9 shift
10 shift
11 shift
12 shift
13 shift
15 if [ ! -d $BINDIR ]; then
16 echo Directory $BINDIR does not exist!
17 echo Do a "make installbin" or "make install" first.
18 exit 1
21 for p in $*; do
22 p2=`basename $p`
23 if [ -f $BINDIR/$p2 ]; then
24 echo Removing $BINDIR/$p2
25 rm -f $BINDIR/$p2
26 if [ -f $BINDIR/$p2 ]; then
27 echo Cannot remove $BINDIR/$p2 ... does $USER have privileges?
30 done
33 cat << EOF
34 ======================================================================
35 The binaries have been uninstalled. You may restore the binaries using
36 the command "make installbin" or "make install" to install binaries,
37 man pages and shell scripts. You can restore a previous version of the
38 binaries (if there were any) using "make revert".
39 ======================================================================
40 EOF
42 exit 0