2a9e9d509abf84d691c06af307d4443ac824f705
[obnox/samba/samba-obnox.git] / source3 / script / uninstallcp.sh
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/unicode_map.$p ]; then
14     echo $CPDIR/unicode_map.$p does not exist!
15   else
16     echo Removing $CPDIR/unicode_map.$p
17     rm -f $CPDIR/unicode_map.$p
18     if [ -f $CPDIR/unicode_map.$p ]; then
19       echo Cannot remove $CPDIR/unicode_map.$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