#!/bin/sh # # $NetBSD: makeflist,v 1.13 1999/02/09 19:34:18 tv Exp $ # # Print out the files in some or all lists. # Usage: makeflist [-b] [-x] [-a arch] [-m machine] [-s setsdir] [setname ...] # # set defaults machine=${MACHINE:-`printf 'xxx:\n\techo ${MACHINE}' | make -s -f-`} arch=${MACHINE_ARCH:-`printf 'xxx:\n\techo ${MACHINE_ARCH}' | make -s -f-`} arch=`echo $arch | sed s,^mipse.,mips,` setd=`pwd` nlists="base comp etc games man misc text" xlists="xbase xcomp xcontrib xfont xserver" lists=$nlists # handle args while : ; do case $1 in -d*) nlists="$nlists secr" lists=$nlists ;; -b*) lists="$xlists $nlists" ;; -x*) lists=$xlists ;; -a*) arch=$2; shift ;; -m*) machine=$2; shift ;; -s*) setd=$2; shift ;; -*) cat 1>&2 <