freebsd-dev/share/man/tools/.param
Jeroen Ruigrok van der Werven 680a9c90e8 Our manual pages are no longer in /usr/man, but in /usr/share/man.
Also, add the default #!/bin/sh for shellscripts, as well as $FreeBSD$.
2001-02-06 12:45:29 +00:00

96 lines
805 B
Plaintext

export MANDIR TMPDIR
export DIRLST FILLST
export LFLAG PFLAG ID
MANDIR=/usr/share/man
TMPDIR=/tmp
DIRLST=
FILLST=
LFLAG=
PFLAG=
ID=
shift
while [ $# -gt 0 ]
do
case $1 in
-m)
shift
MANDIR=$1
shift
;;
-t)
shift
TMPDIR=$1
shift
;;
-d | -l)
LFLAG=1
shift
;;
-p)
PFLAG=1
shift
;;
-i | -o)
shift
ID=$1
shift
;;
-s)
shift
while [ $# -gt 0 ]
do
case $1 in
[1-8])
DIRLST="$DIRLST $1"
shift
;;
*)
break
;;
esac
done
;;
-f)
shift
while [ $# -gt 0 ]
do
case $1 in
-*)
break
;;
*)
FILLST="$FILLST $1"
shift
;;
esac
done
;;
*)
echo $0: unknown option $1
exit 2
;;
esac
done
if [ -z "$DIRLST" ]
then
DIRLST="1 2 3 4 5 6 7 8"
fi
if [ -z "$FILLST" ]
then
FILLST=*.*
fi