1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00
samba-mirror/source4/script/installman.sh

31 lines
612 B
Bash
Raw Normal View History

#!/bin/sh
MANDIR=$1
shift 1
MANPAGES=$*
for I in $MANPAGES
do
2009-05-07 14:16:19 +02:00
SECTION=`echo -n $I | sed "s/.*\(.\)$/\1/"`
DIR="$MANDIR/man$SECTION"
if [ ! -d "$DIR" ]
then
mkdir "$DIR"
fi
BASE=`basename $I`
echo "Installing manpage \"$BASE\" 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