#!/bin/sh # # $NetBSD: maketars,v 1.10 1998/06/27 08:27:36 ross Exp $ # # Make release tar files for some or all lists. Usage: # maketars [-b] [-x] [-a arch] [-m machine] [-s setsdir] [-d destdir] \ # [-t tardir] [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 tars=$RELEASEDIR dest=$DESTDIR # 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 ;; -d*) dest=$2; shift ;; -t*) tars=$2; shift ;; -*) cat 1>&2 < ${tars}/$setname.tgz done