Add options for including the "domestic" ("secr") sets.

This commit is contained in:
perry 1998-07-22 17:01:43 +00:00
parent c750c6fddc
commit 772c77a727
2 changed files with 42 additions and 15 deletions

View File

@ -1,6 +1,6 @@
#! /bin/sh --
#
# $NetBSD: checkflist,v 1.9 1998/07/04 09:27:18 ross Exp $
# $NetBSD: checkflist,v 1.10 1998/07/22 17:01:43 perry Exp $
#
# Verify output of makeflist against contents of $DESTDIR.
@ -11,17 +11,41 @@
origin=.
tmpname=/tmp/_CHECK.$$
if [ "$1" = "-x11" ]; then
sh makeflist -x > $tmpname
origin=./usr/X11R6
elif [ "$1" = "-both" ]; then
sh makeflist -b > $tmpname
elif [ "$1" ]; then
echo Usage: checkflist [ -x11 -both ]
exit 1
else
sh makeflist > $tmpname
fi
xargs=""
dargs=""
# handle args
while : ; do
case $1 in
-x11)
xargs="-x"
origin=./usr/X11R6
;;
-both)
xargs="-b"
;;
-secr)
dargs="-d"
;;
-*)
cat 1>&2 <<USAGE
Usage: $0 [-x11|-both] [-secr]
-x11 check only x11 lists
-both check netbsd + x11 lists
-secr check domestic ("secr") lists
USAGE
exit 1
;;
*)
break
;;
esac
shift
done
sh makeflist $xargs $dargs > $tmpname
( cd $DESTDIR ; find $origin \( -type d -o -type f -o -type l \) ) | sort | \
diff $tmpname -
/bin/rm -f $tmpname

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: makeflist,v 1.9 1998/07/02 06:36:35 jonathan Exp $
# $NetBSD: makeflist,v 1.10 1998/07/22 17:01:43 perry Exp $
#
# Print out the files in some or all lists.
# Usage: makeflist [-b] [-x] [-a arch] [-m machine] [-s setsdir] [setname ...]
@ -17,6 +17,10 @@ lists=$nlists
# handle args
while : ; do
case $1 in
-d*)
nlists="$nlists secr"
lists=$nlists
;;
-b*)
lists="$xlists $nlists"
;;
@ -36,6 +40,7 @@ while : ; do
cat 1>&2 <<USAGE
Usage: $0 [-b] [-x] [-a arch] [-m machine] [-s setsdir] [setname ...]
-b make netbsd + x11 lists
-d do domestic ("secr") sets
-x only make x11 lists
-a arch set arch (e.g, m68k, mips, powerpc) [$arch]
-m machine set machine (e.g, amiga, i386, macppc) [$machine]
@ -63,8 +68,6 @@ else
shlib=aout
fi
# EXTRA SPECIAL (not done here): secr
for setname in $lists; do
cat $setd/lists/$setname/mi
if [ "$machine" != "$cpu" -a -f $setd/lists/$setname/ad.${arch} ]; then