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