Home | History | Annotate | Line # | Download | only in sets
checkflist revision 1.9
      1  1.3   mikel #! /bin/sh --
      2  1.3   mikel #
      3  1.9    ross #	$NetBSD: checkflist,v 1.9 1998/07/04 09:27:18 ross Exp $
      4  1.3   mikel #
      5  1.3   mikel # Verify output of makeflist against contents of $DESTDIR.
      6  1.1     cgd 
      7  1.3   mikel [ "$DESTDIR" ] || {
      8  1.1     cgd 	echo DESTDIR must be set
      9  1.1     cgd 	exit 1
     10  1.3   mikel }
     11  1.1     cgd 
     12  1.9    ross origin=.
     13  1.9    ross tmpname=/tmp/_CHECK.$$
     14  1.4   veego if [ "$1" = "-x11" ]; then
     15  1.9    ross 	sh makeflist -x > $tmpname
     16  1.9    ross 	origin=./usr/X11R6
     17  1.5  chopps elif [ "$1" = "-both" ]; then
     18  1.9    ross 	sh makeflist -b > $tmpname
     19  1.9    ross elif [ "$1" ]; then
     20  1.9    ross 	echo Usage: checkflist [ -x11 -both ]
     21  1.9    ross 	exit 1
     22  1.4   veego else
     23  1.9    ross 	sh makeflist > $tmpname
     24  1.4   veego fi
     25  1.9    ross ( cd $DESTDIR ; find $origin \( -type d -o -type f -o -type l \) ) | sort | \
     26  1.9    ross     diff $tmpname -
     27  1.9    ross /bin/rm -f $tmpname
     28