mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-19 01:11:05 +01:00
96 lines
799 B
Plaintext
96 lines
799 B
Plaintext
export MANDIR TMPDIR
|
|
export DIRLST FILLST
|
|
export LFLAG PFLAG ID
|
|
|
|
MANDIR=/usr/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
|