mirror of
https://github.com/samba-team/samba.git
synced 2025-01-14 19:24:43 +03:00
fa8d539e0f
Not part of the "all" make target yet, as it requires xsltproc (This used to be commit fd3f4636438cf1d9c0dd802064033271b9e4d935)
29 lines
577 B
Bash
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
|