#!/bin/sh # # $NetBSD: makeflist,v 1.49 2002/07/23 09:02:45 lukem Exp $ # # Print out the files in some or all lists. # Usage: makeflist [-b] [-x] [-a arch] [-m machine] [-s setsdir] [setname ...] # # set defaults MAKE="${MAKE:-make} -j 1" machine=`${MAKE} print_machine` machine_arch=`${MAKE} print_machine_arch` machine_cpu=`${MAKE} print_machine_cpu` object_fmt=`${MAKE} print_object_fmt` tc=`${MAKE} print_use_new_toolchain` x11_version=`${MAKE} print_x11_version` setd=`pwd` nlists="base comp etc games man misc text" xlists="xbase xcomp xcontrib xfont xserver xmisc" lists=$nlists # handle args while : ; do case $1 in -b*) lists="$xlists $nlists" ;; -x*) lists=$xlists ;; -a*) machine_arch=`MACHINE_ARCH=${2} ${MAKE} print_machine_arch` machine_cpu=`MACHINE_ARCH=${2} ${MAKE} print_machine_cpu` shift ;; -m*) machine=$2; shift ;; -s*) setd=$2; shift ;; -*) cat 1>&2 <