NetBSD/distrib/sets/checkflist

22 lines
482 B
Plaintext
Raw Normal View History

#! /bin/sh --
#
1998-07-01 00:25:14 +04:00
# $NetBSD: checkflist,v 1.8 1998/06/30 20:25:14 ross Exp $
#
# Verify output of makeflist against contents of $DESTDIR.
1994-08-29 19:21:02 +04:00
[ "$DESTDIR" ] || {
1994-08-29 19:21:02 +04:00
echo DESTDIR must be set
exit 1
}
1994-08-29 19:21:02 +04:00
1997-10-28 16:35:23 +03:00
if [ "$1" = "-x11" ]; then
sh makeflist -x > /tmp/_CHECK.$$
elif [ "$1" = "-both" ]; then
sh makeflist -b > /tmp/_CHECK.$$
1997-10-28 16:35:23 +03:00
else
sh makeflist > /tmp/_CHECK.$$
fi
1998-07-01 00:25:14 +04:00
( cd $DESTDIR ; find . \( -type d -o -type f -o -type l \) ) | sort | \
diff /tmp/_CHECK.$$ -
1994-08-29 19:21:02 +04:00
/bin/rm -f /tmp/_CHECK.$$