Remove outdated README
[Samba.git] / source / script / uninstalllib.sh
blob9c45b2c941c82d0253d20eafdfbdbe46ea1a743a
1 #!/bin/sh
2 # based on uninstallbin.sh
3 # 4 July 96 Dan.Shearer@UniSA.edu.au
5 LIBDIR=$1
6 shift
8 if [ ! -d $LIBDIR ]; then
9 echo Directory $LIBDIR does not exist!
10 echo Do a "make installbin" or "make install" first.
11 exit 1
14 for p in $*; do
15 p2=`basename $p`
16 if [ -f $LIBDIR/$p2 ]; then
17 echo Removing $LIBDIR/$p2
18 rm -f $LIBDIR/$p2
19 if [ -f $LIBDIR/$p2 ]; then
20 echo Cannot remove $LIBDIR/$p2 ... does $USER have privileges?
23 done
26 cat << EOF
27 ======================================================================
28 The shared libraries have been uninstalled. You may restore the libraries using
29 the command "make installlib" or "make install" to install binaries,
30 man pages, modules and shell scripts. You can restore a previous
31 version of the libraries (if there were any) using "make revert".
32 ======================================================================
33 EOF
35 exit 0