summaryrefslogtreecommitdiff
path: root/distrib/sets/checkflist
blob: d1e4f52b54e0fe79ba71be12c41095a62e1783e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh -x
#	$OpenBSD: checkflist,v 1.4 2001/12/25 01:30:22 deraadt Exp $

if [ "X${DESTDIR}" = "X" ]; then
	echo DESTDIR must be set
	exit 1
fi

TMP=`mktemp /tmp/_ckr.XXXXXX` || exit 1
trap 'rm -f $TMP' 0 1 15

sh makeflist > $TMP
( cd $DESTDIR ; find . \( -type d -o -type f -o -type l \) ) | sort | \
    diff $TMP -