s3-printing: Restrict printing=cups to systems with cups development headers at build...
[Samba/bb.git] / source3 / script / uninstallscripts.sh
blobcf7fd71999372efa92f55e84bc0857c1336b6901
1 #!/bin/sh
2 # 5 July 96 Dan.Shearer@UniSA.Edu.Au - almost identical to uninstallbin.sh
4 INSTALLPERMS=$1
5 BINDIR=`echo $2 | sed 's/\/\//\//g'`
7 shift
8 shift
10 if [ ! -d $BINDIR ]; then
11 echo Directory $BINDIR does not exist!
12 echo Do a "make installscripts" or "make install" first.
13 exit 1
16 for p in $*; do
17 p2=`basename $p`
18 if [ -f $BINDIR/$p2 ]; then
19 echo Removing $BINDIR/$p2
20 rm -f $BINDIR/$p2
21 if [ -f $BINDIR/$p2 ]; then
22 echo Cannot remove $BINDIR/$p2 ... does $USER have privileges?
25 done
27 cat << EOF
28 ======================================================================
29 The scripts have been uninstalled. You may reinstall them using
30 the command "make installscripts" or "make install" to install binaries,
31 man pages and shell scripts. You may recover a previous version (if any
32 with "make revert".
33 ======================================================================
34 EOF
36 exit 0