1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/source4/script/installman.sh
Stefan Metzmacher e12a4cb2f3 [GLUE] fix some executable bits on shell scripts
metze
(This used to be commit 76f1f7d701)
2007-12-21 05:21:31 +01:00

31 lines
601 B
Bash
Executable File

#!/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
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