~zulcss/samba/server-dailies-3.4

« back to all changes in this revision

Viewing changes to source4/script/uninstalllib.sh

  • Committer: Chuck Short
  • Date: 2010-09-28 20:38:39 UTC
  • Revision ID: zulcss@ubuntu.com-20100928203839-pgjulytsi9ue63x1
Initial version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
# based on uninstallbin.sh
 
3
# 4 July 96 Dan.Shearer@UniSA.edu.au   
 
4
 
 
5
LIBDIR=$1
 
6
shift
 
7
 
 
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
 
12
fi
 
13
 
 
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?
 
21
    fi
 
22
  fi
 
23
done
 
24
 
 
25
 
 
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
 
34
 
 
35
exit 0