NetBSD/distrib/sets/checkflist

22 lines
489 B
Bash
Executable File

#! /bin/sh --
#
# $NetBSD: checkflist,v 1.5 1997/11/09 20:47:29 chopps Exp $
#
# Verify output of makeflist against contents of $DESTDIR.
[ "$DESTDIR" ] || {
echo DESTDIR must be set
exit 1
}
if [ "$1" = "-x11" ]; then
sh makeflist -x11 > /tmp/_CHECK.$$
elif [ "$1" = "-both" ]; then
sh makeflist -both > /tmp/_CHECK.$$
else
sh makeflist > /tmp/_CHECK.$$
fi
( cd $DESTDIR ; find . \( -type d -o -type f -o -type l \) ) | sort | \
diff /tmp/_CHECK.$$ -
/bin/rm -f /tmp/_CHECK.$$