s3: Fix connecting to port-139 only servers
[Samba.git] / source4 / script / installman.sh
bloba3b6ec0d9372f6348b3066bdf6b9ef54c365060f
1 #!/bin/sh
3 MANDIR=$1
4 shift 1
5 MANPAGES=$*
7 for I in $MANPAGES
8 do
9 SECTION=`echo -n $I | sed "s/.*\(.\)$/\1/"
10 DIR="$MANDIR/man$SECTION"
11 if [ ! -d "$DIR" ]
12 then
13 mkdir "$DIR"
16 BASE=`basename $I`
18 echo "Installing manpage \"$BASE\" in $DIR"
19 cp $I $DIR
20 done
22 cat << EOF
23 ======================================================================
24 The man pages have been installed. You may uninstall them using the command
25 the command "make uninstallman" or make "uninstall" to uninstall binaries,
26 man pages and shell scripts.
27 ======================================================================
28 EOF
30 exit 0