1992-07-13 20:18:25 +04:00
|
|
|
export MANDIR TMPDIR
|
|
|
|
export DIRLST FILLST
|
|
|
|
export LFLAG PFLAG ID
|
|
|
|
|
2001-04-02 22:32:02 +04:00
|
|
|
MANDIR=/usr/share/man
|
1992-07-13 20:18:25 +04:00
|
|
|
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
|
2001-04-02 22:32:02 +04:00
|
|
|
DIRLST="1 2 3 4 5 6 7 8 9"
|
1992-07-13 20:18:25 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -z "$FILLST" ]
|
|
|
|
then
|
|
|
|
FILLST=*.*
|
|
|
|
fi
|