home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / samba-1.9.18p7.tar.gz / samba-1.9.18p7.tar / samba-1.9.18p7 / source / uninstallcp.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  1997-08-29  |  869b  |  34 lines

  1. #!/bin/sh
  2.  
  3. CPDIR=$1
  4. shift
  5.  
  6. if [ ! -d $CPDIR ]; then
  7.   echo Directory $CPDIR does not exist!
  8.   echo Do a "make installcp" or "make install" first.
  9.   exit 1
  10. fi
  11.  
  12. for p in $*; do
  13.   if [ ! -f $CPDIR/codepage.$p ]; then
  14.     echo $CPDIR/codepage.$p does not exist!
  15.   else
  16.     echo Removing $CPDIR/codepage.$p
  17.     rm -f $CPDIR/codepage.$p
  18.     if [ -f $CPDIR/codepage.$p ]; then
  19.       echo Cannot remove $CPDIR/codepage.$p... does $USER have privileges?
  20.     fi
  21.   fi
  22. done
  23.  
  24. cat << EOF
  25. ======================================================================
  26. The code pages have been uninstalled. You may reinstall them using
  27. the command "make installcp" or "make install" to install binaries,
  28. man pages, shell scripts and code pages. You may recover a previous version 
  29. (if any with "make revert").
  30. ======================================================================
  31. EOF
  32.  
  33. exit 0
  34.