1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00
samba-mirror/source4/script/installman.sh
Jelmer Vernooij fa8d539e0f r7943: Add 'make manpages', fix 'make installman' and 'make uninstallman'.
Not part of the "all" make target yet, as it requires xsltproc
(This used to be commit fd3f4636438cf1d9c0dd802064033271b9e4d935)
2007-10-10 13:18:53 -05:00

29 lines
577 B
Bash

#!/bin/sh
MANDIR=$1
shift 1
MANPAGES=$*
for I in $MANPAGES
do
SECTION=`echo $I | grep -o '.$'`
DIR="$MANDIR/man$SECTION"
if [ ! -d "$DIR" ]
then
mkdir "$DIR"
fi
echo "Installing manpage \"$I\" in $DIR"
cp $I $DIR
done
cat << EOF
======================================================================
The man pages have been installed. You may uninstall them using the command
the command "make uninstallman" or make "uninstall" to uninstall binaries,
man pages and shell scripts.
======================================================================
EOF
exit 0