Home | History | Annotate | Line # | Download | only in sets
checkflist revision 1.9
      1 #! /bin/sh --
      2 #
      3 #	$NetBSD: checkflist,v 1.9 1998/07/04 09:27:18 ross 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 origin=.
     13 tmpname=/tmp/_CHECK.$$
     14 if [ "$1" = "-x11" ]; then
     15 	sh makeflist -x > $tmpname
     16 	origin=./usr/X11R6
     17 elif [ "$1" = "-both" ]; then
     18 	sh makeflist -b > $tmpname
     19 elif [ "$1" ]; then
     20 	echo Usage: checkflist [ -x11 -both ]
     21 	exit 1
     22 else
     23 	sh makeflist > $tmpname
     24 fi
     25 ( cd $DESTDIR ; find $origin \( -type d -o -type f -o -type l \) ) | sort | \
     26     diff $tmpname -
     27 /bin/rm -f $tmpname
     28