source: branches/samba-3.5.x/source4/script/uninstallman.sh@ 738

Last change on this file since 738 was 414, checked in by Herwig Bauernfeind, 15 years ago

Samba 3.5.0: Initial import

File size: 709 bytes
Line 
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
Note: See TracBrowser for help on using the repository browser.