2 #5 July 96 Dan.Shearer@unisa.edu.au removed hardcoded values
4 # 13 Aug 2001 Rafal Szczesniak <mimir@spin.ict.pwr.wroc.pl>
5 # modified to accomodate international man pages (inspired
6 # by Japanese edition's approach)
8 MANDIR=`echo $1 | sed 's/\/\//\//g'`
12 if [ $# -ge 4 ] ; then
13 GROFF=$4 # sh cmd line, including options
16 if test ! -d $SRCDIR../docs/manpages; then
17 echo "No manpages present. SVN development version maybe?"
21 # Get the configured feature set
22 test -f "${SRCDIR}/config.log" && eval `grep '^[A-Za-z0-9]*=.*' ${SRCDIR}/config.log`
24 for lang in $langs; do
25 if [ "X$lang" = XC ]; then
26 echo Installing default man pages in $MANDIR/
29 echo Installing \"$lang\" man pages in $MANDIR/lang/$lang
33 for d in $MANDIR $langdir $langdir/man1 $langdir/man5 $langdir/man7 $langdir/man8; do
37 echo Failed to make directory $d, does $USER have privileges?
43 for sect in 1 5 7 8 ; do
44 for m in $langdir/man$sect ; do
45 for s in $SRCDIR../docs/manpages/$lang/*$sect; do
46 MP_BASENAME=`basename $s`
48 # Check if this man page if required by the configured feature set
49 case "${MP_BASENAME}" in
50 smbsh.1) test -z "${SMBWRAPPER}" && continue ;;
54 FNAME="$m/${MP_BASENAME}"
56 # Test for writability. Involves
57 # blowing away existing files.
59 if (rm -f $FNAME && touch $FNAME); then
60 if [ "x$GROFF" = x ] ; then
61 cp $s $m # Copy raw nroff
63 echo "\t$FNAME" # groff'ing can be slow, give the user
65 $GROFF $s > $FNAME # Process nroff, because man(1) (on
66 # this system) doesn't .
70 echo Cannot create $FNAME... does $USER have privileges?
77 ======================================================================
78 The man pages have been installed. You may uninstall them using the command
79 the command "make uninstallman" or make "uninstall" to uninstall binaries,
80 man pages and shell scripts.
81 ======================================================================