NetBSD/distrib/sets/checkflist
thorpej e7d6b96938 Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so.  Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.
2000-06-20 06:00:24 +00:00

57 lines
860 B
Bash
Executable File

#! /bin/sh --
#
# $NetBSD: checkflist,v 1.13 2000/06/20 06:00:28 thorpej Exp $
#
# Verify output of makeflist against contents of $DESTDIR.
[ "$DESTDIR" ] || {
echo DESTDIR must be set
exit 1
}
origin=.
tmpname=/tmp/_CHECK.$$
xargs=""
dargs=""
diffargs=""
# handle args
while : ; do
case $1 in
-x11)
xargs="-x"
origin=./usr/X11R6
;;
-both)
xargs="-b"
;;
-u)
diffargs="-u"
;;
-c)
diffargs="-c"
;;
-*)
cat 1>&2 <<USAGE
Usage: $0 [-x11|-both] [-secr]
-x11 check only x11 lists
-both check netbsd + x11 lists
-u output differences in "unified diff" style
-c output differences in "context diff" style
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 $diffargs $tmpname -
/bin/rm -f $tmpname