Home | History | Annotate | Line # | Download | only in sets
checkflist revision 1.3.2.1
      1 #! /bin/sh --
      2 #
      3 #	$NetBSD: checkflist,v 1.3.2.1 1997/10/28 23:30:34 mellon 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 
     12 if [ "$1" = "-x11" ]; then
     13 	sh makeflist -x11 > /tmp/_CHECK.$$
     14 else
     15 	sh makeflist > /tmp/_CHECK.$$
     16 fi
     17 ( cd $DESTDIR ; find . \( -type d -o -type f -o -type l \) ) | sort | \
     18     diff /tmp/_CHECK.$$ -
     19 /bin/rm -f /tmp/_CHECK.$$
     20