1996-05-20 23:10:28 +04:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
1997-12-15 21:45:45 +03:00
|
|
|
# $NetBSD: makeflist,v 1.7 1997/12/15 18:45:45 gwr Exp $
|
1996-05-20 23:10:28 +04:00
|
|
|
#
|
|
|
|
# Print out the files in some or all lists. Usage:
|
1997-10-28 16:35:23 +03:00
|
|
|
# makeflist [-arch arch] [-setd setsdir] [-x11] [setname ...]
|
1996-05-20 23:10:28 +04:00
|
|
|
#
|
1994-08-29 19:21:02 +04:00
|
|
|
|
1996-05-20 23:10:28 +04:00
|
|
|
# set defaults
|
1997-11-06 01:08:22 +03:00
|
|
|
arch=${MACHINE:-`uname -m`}
|
1996-05-20 23:10:28 +04:00
|
|
|
setd=`pwd`
|
|
|
|
lists="base comp etc games man misc text"
|
1997-10-28 20:29:45 +03:00
|
|
|
xlists="xbase xcomp xcontrib xfont xserver"
|
1994-08-29 19:21:02 +04:00
|
|
|
|
1996-05-20 23:10:28 +04:00
|
|
|
# handle args
|
|
|
|
while :
|
|
|
|
do
|
|
|
|
case $1 in
|
|
|
|
-arch) arch=$2; shift;;
|
|
|
|
-setd) setd=$2; shift;;
|
1997-10-28 16:35:23 +03:00
|
|
|
-x11) lists=$xlists;;
|
1997-11-09 23:47:29 +03:00
|
|
|
-both) lists="$xlists $lists";;
|
1996-05-20 23:10:28 +04:00
|
|
|
-*) echo "bad option"; exit 1;;
|
|
|
|
*) break;;
|
|
|
|
esac
|
|
|
|
shift
|
|
|
|
done
|
1997-12-15 21:45:45 +03:00
|
|
|
[ "$1" ] && lists="$@"
|
1994-08-29 19:21:02 +04:00
|
|
|
|
|
|
|
# EXTRA SPECIAL (not done here): secr
|
|
|
|
|
1996-05-20 23:10:28 +04:00
|
|
|
for setname in $lists
|
|
|
|
do
|
|
|
|
cat $setd/lists/$setname/mi $setd/lists/$setname/md.${arch}
|
|
|
|
# Split man/md_share into: this arch, other arch
|
|
|
|
if [ $setname = man ]; then
|
|
|
|
grep ${arch} $setd/lists/man/md_share
|
|
|
|
fi
|
|
|
|
if [ $setname = misc ]; then
|
|
|
|
grep -v ${arch} $setd/lists/man/md_share
|
|
|
|
fi
|
|
|
|
done | sort
|