#! /bin/sh -- # # $NetBSD: checkflist,v 1.12 2000/01/06 21:03:34 abs Exp $ # # Verify output of makeflist against contents of $DESTDIR. [ "$DESTDIR" ] || { echo DESTDIR must be set exit 1 } origin=. tmpname=/tmp/_CHECK.$$ xargs="" dargs="" diffargs="" # handle args while : ; do case $1 in -x11) xargs="-x" origin=./usr/X11R6 ;; -both) xargs="-b" ;; -secr) dargs="-d" ;; -cryptint) dargs="-i" ;; -u) diffargs="-u" ;; -c) diffargs="-c" ;; -*) cat 1>&2 < $tmpname ( cd $DESTDIR ; find $origin \( -type d -o -type f -o -type l \) ) | sort | \ diff $diffargs $tmpname - /bin/rm -f $tmpname