#!/bin/sh # # $NetBSD: makeflist,v 1.61 2003/06/23 09:18:45 dyoung 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 -f `dirname $0`/Makefile" 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 . ./sets.subr # 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 <