Home | History | Annotate | Line # | Download | only in sets
checkflist revision 1.4
      1  1.3  mikel #! /bin/sh --
      2  1.3  mikel #
      3  1.4  veego #	$NetBSD: checkflist,v 1.4 1997/10/28 13:35:23 veego 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.4  veego else
     15  1.4  veego 	sh makeflist > /tmp/_CHECK.$$
     16  1.4  veego fi
     17  1.3  mikel ( cd $DESTDIR ; find . \( -type d -o -type f -o -type l \) ) | sort | \
     18  1.1    cgd     diff /tmp/_CHECK.$$ -
     19  1.1    cgd /bin/rm -f /tmp/_CHECK.$$
     20