1 1.3 mikel #! /bin/sh -- 2 1.3 mikel # 3 1.10 perry # $NetBSD: checkflist,v 1.10 1998/07/22 17:01:43 perry 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.9 ross origin=. 13 1.9 ross tmpname=/tmp/_CHECK.$$ 14 1.10 perry 15 1.10 perry xargs="" 16 1.10 perry dargs="" 17 1.10 perry 18 1.10 perry # handle args 19 1.10 perry while : ; do 20 1.10 perry case $1 in 21 1.10 perry -x11) 22 1.10 perry xargs="-x" 23 1.10 perry origin=./usr/X11R6 24 1.10 perry ;; 25 1.10 perry -both) 26 1.10 perry xargs="-b" 27 1.10 perry ;; 28 1.10 perry -secr) 29 1.10 perry dargs="-d" 30 1.10 perry ;; 31 1.10 perry -*) 32 1.10 perry cat 1>&2 <<USAGE 33 1.10 perry Usage: $0 [-x11|-both] [-secr] 34 1.10 perry -x11 check only x11 lists 35 1.10 perry -both check netbsd + x11 lists 36 1.10 perry -secr check domestic ("secr") lists 37 1.10 perry USAGE 38 1.10 perry exit 1 39 1.10 perry ;; 40 1.10 perry *) 41 1.10 perry break 42 1.10 perry ;; 43 1.10 perry esac 44 1.10 perry shift 45 1.10 perry done 46 1.10 perry 47 1.10 perry sh makeflist $xargs $dargs > $tmpname 48 1.10 perry 49 1.9 ross ( cd $DESTDIR ; find $origin \( -type d -o -type f -o -type l \) ) | sort | \ 50 1.9 ross diff $tmpname - 51 1.9 ross /bin/rm -f $tmpname 52