This is the ubiqx binary tree and linked list library.
[Samba.git] / source / script / uninstallcp.sh
blobbd7013c358f6fe7e6cf7b7b42a4dd89fddd173a4
1 #!/bin/sh
3 CPDIR=$1
4 shift
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
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?
22 done
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
33 exit 0