Home | History | Annotate | Line # | Download | only in sets
checkflist revision 1.5
      1  1.3   mikel #! /bin/sh --
      2  1.3   mikel #
      3  1.5  chopps #	$NetBSD: checkflist,v 1.5 1997/11/09 20:47:29 chopps 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.4   veego if [ "$1" = "-x11" ]; then
     13  1.4   veego 	sh makeflist -x11 > /tmp/_CHECK.$$
     14  1.5  chopps elif [ "$1" = "-both" ]; then
     15  1.5  chopps 	sh makeflist -both > /tmp/_CHECK.$$
     16  1.4   veego else
     17  1.4   veego 	sh makeflist > /tmp/_CHECK.$$
     18  1.4   veego fi
     19  1.3   mikel ( cd $DESTDIR ; find . \( -type d -o -type f -o -type l \) ) | sort | \
     20  1.1     cgd     diff /tmp/_CHECK.$$ -
     21  1.1     cgd /bin/rm -f /tmp/_CHECK.$$
     22