#!/bin/sh # # $NetBSD: makeflist,v 1.56 2002/11/26 06:22:22 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 -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 # 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 <