#!/bin/sh # # $NetBSD: makeflist,v 1.9 1998/07/02 06:36:35 jonathan 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-`} 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 -b*) lists="$xlists $nlists" ;; -x*) lists=$xlists ;; -a*) arch=$2; shift ;; -m*) machine=$2; shift ;; -s*) setd=$2; shift ;; -*) cat 1>&2 <