1#!/bin/sh
2# 4 July 96 Dan.Shearer@UniSA.edu.au
3# Updated for Samba4 by Jelmer Vernooij
4
5MANDIR=$1
6shift 1
7MANPAGES=$*
8
9for I in $MANPAGES
10do
11	SECTION=`echo -n $I | sed "s/.*\(.\)$/\1/"`
12	FNAME=$MANDIR/man$SECTION/$I
13	if test -f $FNAME; then
14	  echo Deleting $FNAME
15	  rm -f $FNAME 
16	  test -f $FNAME && echo Cannot remove $FNAME... does $USER have privileges?   
17    fi
18done
19
20cat << EOF
21======================================================================
22The man pages have been uninstalled. You may install them again using 
23the command "make installman" or make "install" to install binaries,
24man pages and shell scripts.
25======================================================================
26EOF
27exit 0
28