Home | History | Annotate | Line # | Download | only in sets
checkflist revision 1.7
      1 #! /bin/sh --
      2 #
      3 #	$NetBSD: checkflist,v 1.7 1998/06/30 05:13:31 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 if [ "$1" = "-x11" ]; then
     13 	sh makeflist -x > /tmp/_CHECK.$$
     14 elif [ "$1" = "-both" ]; then
     15 	sh makeflist -b > /tmp/_CHECK.$$
     16 else
     17 	sh makeflist > /tmp/_CHECK.$$
     18 fi
     19 ( cd $DESTDIR ; find . \( -type d -o -type f -o -type l \) ) 	\
     20     | sed -e s:./usr/include/`uname -m`/:./usr/include/machine/:	\
     21     | sort							\
     22     | diff /tmp/_CHECK.$$ -
     23 /bin/rm -f /tmp/_CHECK.$$
     24