2 #5 July 96 Dan.Shearer@unisa.edu.au removed hardcoded values
7 GROFF=$3 # sh cmd line, including options
10 echo Installing man pages in $MANDIR
12 for d in $MANDIR $MANDIR/man1 $MANDIR/man5 $MANDIR/man7 $MANDIR/man8; do
16 echo Failed to make directory $d, does $USER have privileges?
22 for sect in 1 5 7 8 ; do
23 for m in $MANDIR/man$sect ; do
24 for s in $SRCDIR../docs/manpages/*$sect; do
25 FNAME=$m/`basename $s`
27 # Test for writability. Involves
28 # blowing away existing files.
30 if (rm -f $FNAME && touch $FNAME); then
32 if [ ! "$GROFF" ] ; then
33 cp $s $m # Copy raw nroff
35 echo "\t$FNAME" # groff'ing can be slow, give the user
37 $GROFF $s > $FNAME # Process nroff, because man(1) (on
38 # this system) doesn't .
42 echo Cannot create $FNAME... does $USER have privileges?
49 ======================================================================
50 The man pages have been installed. You may uninstall them using the command
51 the command "make uninstallman" or make "uninstall" to uninstall binaries,
52 man pages and shell scripts.
53 ======================================================================