checkflist revision 1.4
1#! /bin/sh --
2#
3#	$NetBSD: checkflist,v 1.4 1997/10/28 13:35:23 veego Exp $
4#
5# Verify output of makeflist against contents of $DESTDIR.
6
7[ "$DESTDIR" ] || {
8	echo DESTDIR must be set
9	exit 1
10}
11
12if [ "$1" = "-x11" ]; then
13	sh makeflist -x11 > /tmp/_CHECK.$$
14else
15	sh makeflist > /tmp/_CHECK.$$
16fi
17( cd $DESTDIR ; find . \( -type d -o -type f -o -type l \) ) | sort | \
18    diff /tmp/_CHECK.$$ -
19/bin/rm -f /tmp/_CHECK.$$
20