• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/samba-3.5.8/source4/script/
1#!/bin/sh
2
3MANDIR=$1
4shift 1
5MANPAGES=$*
6
7for I in $MANPAGES
8do
9	SECTION=`echo -n $I | sed "s/.*\(.\)$/\1/"`
10	DIR="$MANDIR/man$SECTION"
11	if [ ! -d "$DIR" ]
12	then
13		mkdir "$DIR"
14	fi
15
16	BASE=`basename $I`
17	
18	echo "Installing manpage \"$BASE\" in $DIR"
19	cp $I $DIR
20done
21
22cat << EOF
23======================================================================
24The man pages have been installed. You may uninstall them using the command
25the command "make uninstallman" or make "uninstall" to uninstall binaries,
26man pages and shell scripts.
27======================================================================
28EOF
29
30exit 0
31