#!/bin/sh # # $NetBSD: makeobsolete,v 1.21 2003/12/19 22:25:54 jmc Exp $ # # Print out the obsolete files for a set # Usage: makeobsolete [-b] [-x] [-a arch] [-m machine] [-s setsdir] \ # [-t target] [setname ...] # # set defaults . $(dirname $0)/sets.defaults setd=`pwd` nlists=$lists xlists="xbase xcomp xcontrib xfont xserver xmisc" target=./dist # handle args while : ; do case $1 in -b*) lists="$xlists $nlists" ;; -x*) lists=$xlists;; -a*) machine_arch=$2; shift ;; -m*) machine=$2; shift ;; -s*) setd=$2; shift ;; -t*) target=$2;shift ;; -*) cat 1>&2 < $file if [ ! -s $file ] ; then rm $file fi done