1 #! /bin/sh -- 2 # 3 # $NetBSD: checkflist,v 1.5 1997/11/09 20:47:29 chopps 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 -x11 > /tmp/_CHECK.$$ 14 elif [ "$1" = "-both" ]; then 15 sh makeflist -both > /tmp/_CHECK.$$ 16 else 17 sh makeflist > /tmp/_CHECK.$$ 18 fi 19 ( cd $DESTDIR ; find . \( -type d -o -type f -o -type l \) ) | sort | \ 20 diff /tmp/_CHECK.$$ - 21 /bin/rm -f /tmp/_CHECK.$$ 22