1 1.3 mikel #! /bin/sh -- 2 1.3 mikel # 3 1.10.6.1 wrstuden # $NetBSD: checkflist,v 1.10.6.1 1999/12/27 18:28:32 wrstuden 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.6.1 wrstuden -cryptint) 32 1.10.6.1 wrstuden dargs="-i" 33 1.10.6.1 wrstuden ;; 34 1.10 perry -*) 35 1.10 perry cat 1>&2 <<USAGE 36 1.10 perry Usage: $0 [-x11|-both] [-secr] 37 1.10 perry -x11 check only x11 lists 38 1.10 perry -both check netbsd + x11 lists 39 1.10 perry -secr check domestic ("secr") lists 40 1.10.6.1 wrstuden -cryptint check international crypto ("cryptint") lists 41 1.10 perry USAGE 42 1.10 perry exit 1 43 1.10 perry ;; 44 1.10 perry *) 45 1.10 perry break 46 1.10 perry ;; 47 1.10 perry esac 48 1.10 perry shift 49 1.10 perry done 50 1.10 perry 51 1.10 perry sh makeflist $xargs $dargs > $tmpname 52 1.10 perry 53 1.9 ross ( cd $DESTDIR ; find $origin \( -type d -o -type f -o -type l \) ) | sort | \ 54 1.9 ross diff $tmpname - 55 1.9 ross /bin/rm -f $tmpname 56