NetBSD/distrib/sets/checkflist

16 lines
349 B
Bash
Executable File

#! /bin/sh --
#
# $NetBSD: checkflist,v 1.3 1997/02/18 06:58:56 mikel Exp $
#
# Verify output of makeflist against contents of $DESTDIR.
[ "$DESTDIR" ] || {
echo DESTDIR must be set
exit 1
}
sh makeflist > /tmp/_CHECK.$$
( cd $DESTDIR ; find . \( -type d -o -type f -o -type l \) ) | sort | \
diff /tmp/_CHECK.$$ -
/bin/rm -f /tmp/_CHECK.$$