Use the logic in bsd.own.mk to determine machine/machine_arch.
This commit is contained in:
parent
acf28d4b8c
commit
35a01e1ce7
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: maketars,v 1.15 2001/01/22 07:03:44 jmc Exp $
|
||||
# $NetBSD: maketars,v 1.16 2001/11/24 03:08:27 thorpej Exp $
|
||||
#
|
||||
# Make release tar files for some or all lists. Usage:
|
||||
# maketars [-b] [-x] [-a arch] [-m machine] [-s setsdir] [-d destdir] \
|
||||
|
@ -9,8 +9,8 @@
|
|||
|
||||
# set defaults
|
||||
: ${MAKE=make}
|
||||
machine=${MACHINE:-`printf 'xxx:\n\techo ${MACHINE}' | $MAKE -s -f-`}
|
||||
arch=${MACHINE_ARCH:-`printf 'xxx:\n\techo ${MACHINE_ARCH}' | $MAKE -s -f-`}
|
||||
machine=`${MAKE} print_machine`
|
||||
machine_arch=`${MAKE} print_machine_arch`
|
||||
setd=`pwd`
|
||||
nlists="base comp etc games man misc text"
|
||||
xlists="xbase xcomp xcontrib xfont xserver xmisc"
|
||||
|
@ -28,7 +28,7 @@ while : ; do
|
|||
lists=$xlists
|
||||
;;
|
||||
-a*)
|
||||
arch=$2; shift
|
||||
machine_arch=$2; shift
|
||||
;;
|
||||
-m*)
|
||||
machine=$2; shift
|
||||
|
@ -48,9 +48,9 @@ Usage: $0 [-b] [-x] [-a arch] [-m machine] [-s setsdir]
|
|||
[-d dest] [-t tars] [setname ...]
|
||||
-b make netbsd + x11 lists
|
||||
-x only make x11 lists
|
||||
-a arch set arch (e.g, m68k, mips, powerpc) [$arch]
|
||||
-m machine set machine (e.g, amiga, i386, macppc) [$machine]
|
||||
-s setsdir directory to find sets [$setd]
|
||||
-a arch set arch (e.g, m68k, mipseb, mipsel, powerpc) [$machine_arch]
|
||||
-m machine set machine (e.g, amiga, i386, macppc) [$machine]
|
||||
-s setsdir directory to find sets [$setd]
|
||||
-d dest \$DESTDIR [$dest]
|
||||
-t tars \$RELEASEDIR [$tars]
|
||||
[setname ...] sets to build [$lists]
|
||||
|
@ -82,6 +82,6 @@ set -e
|
|||
for setname in $lists; do
|
||||
out=$setname.tgz
|
||||
echo "making $out"
|
||||
sh $setd/makeflist -a $arch -m $machine -s $setd $setname > ${dest}/tmp/flist
|
||||
sh $setd/makeflist -a $machine_arch -m $machine -s $setd $setname > ${dest}/tmp/flist
|
||||
(cd $dest ; pax -w -d -z < ${dest}/tmp/flist) > ${tars}/$out
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue