#!/bin/sh # # $NetBSD: makeflist,v 1.54 2002/10/10 20:46:39 briggs 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` toolchain_missing=`${MAKE} print_toolchain_missing` 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 <