checkflist revision 1.10
11.3Smikel#! /bin/sh -- 21.3Smikel# 31.10Sperry# $NetBSD: checkflist,v 1.10 1998/07/22 17:01:43 perry Exp $ 41.3Smikel# 51.3Smikel# Verify output of makeflist against contents of $DESTDIR. 61.1Scgd 71.3Smikel[ "$DESTDIR" ] || { 81.1Scgd echo DESTDIR must be set 91.1Scgd exit 1 101.3Smikel} 111.1Scgd 121.9Srossorigin=. 131.9Srosstmpname=/tmp/_CHECK.$$ 141.10Sperry 151.10Sperryxargs="" 161.10Sperrydargs="" 171.10Sperry 181.10Sperry# handle args 191.10Sperrywhile : ; do 201.10Sperry case $1 in 211.10Sperry -x11) 221.10Sperry xargs="-x" 231.10Sperry origin=./usr/X11R6 241.10Sperry ;; 251.10Sperry -both) 261.10Sperry xargs="-b" 271.10Sperry ;; 281.10Sperry -secr) 291.10Sperry dargs="-d" 301.10Sperry ;; 311.10Sperry -*) 321.10Sperry cat 1>&2 <<USAGE 331.10SperryUsage: $0 [-x11|-both] [-secr] 341.10Sperry -x11 check only x11 lists 351.10Sperry -both check netbsd + x11 lists 361.10Sperry -secr check domestic ("secr") lists 371.10SperryUSAGE 381.10Sperry exit 1 391.10Sperry ;; 401.10Sperry *) 411.10Sperry break 421.10Sperry ;; 431.10Sperry esac 441.10Sperry shift 451.10Sperrydone 461.10Sperry 471.10Sperrysh makeflist $xargs $dargs > $tmpname 481.10Sperry 491.9Sross( cd $DESTDIR ; find $origin \( -type d -o -type f -o -type l \) ) | sort | \ 501.9Sross diff $tmpname - 511.9Sross/bin/rm -f $tmpname 52