diff --git a/distrib/sets/Makefile b/distrib/sets/Makefile index 7ce4b70810aa..0c51dbbc734f 100644 --- a/distrib/sets/Makefile +++ b/distrib/sets/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.19 2002/12/16 00:30:39 lukem Exp $ +# $NetBSD: Makefile,v 1.20 2002/12/19 06:21:45 lukem Exp $ # The `all' target must appear before bsd.own.mk is pulled in. all: @@ -55,8 +55,9 @@ maketars: check_DESTDIR check_RELEASEDIR .if (${DESTDIR} != "") ${MAKE} checkflist .endif - ${SETSENV} sh ${.CURDIR}/maketars ${UNPRIVED:D-M ${METALOG}} \ - -d ${DESTDIR:S,^$,/,} -t ${RELEASEDIR}/binary/sets ${MAKETARSETS} + ${SETSENV} sh ${.CURDIR}/maketars -d ${DESTDIR:S,^$,/,} \ + ${UNPRIVED:D-M ${METALOG} -N ${NETBSDSRCDIR}/etc} \ + -t ${RELEASEDIR}/binary/sets ${MAKETARSETS} .PRECIOUS: makesums makesums: check_RELEASEDIR @@ -68,8 +69,9 @@ installsets: check_DESTDIR @echo "setenv INSTALLDIR before doing that!" @false .endif - ${SETSENV} sh ${.CURDIR}/maketars ${UNPRIVED:D-M ${METALOG}} \ - -d ${DESTDIR:S,^$,/,} -i ${INSTALLDIR} ${INSTALLSETS} + ${SETSENV} sh ${.CURDIR}/maketars -d ${DESTDIR:S,^$,/,} \ + ${UNPRIVED:D-M ${METALOG} -N ${NETBSDSRCDIR}/etc} \ + -i ${INSTALLDIR} ${INSTALLSETS} # # MAIN ENTRY POINTS diff --git a/distrib/sets/maketars b/distrib/sets/maketars index 76b6241a49e7..57a0a5a4af33 100755 --- a/distrib/sets/maketars +++ b/distrib/sets/maketars @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: maketars,v 1.29 2002/12/17 01:59:32 lukem Exp $ +# $NetBSD: maketars,v 1.30 2002/12/19 06:21:45 lukem Exp $ # # Make release tar files for some or all lists. Usage: # maketars [-b] [-x] [-a arch] [-m machine] [-s setsdir] @@ -22,6 +22,7 @@ tars=$RELEASEDIR dest=$DESTDIR metalog= installdir= +etcdir= # handle args while : ; do @@ -44,6 +45,9 @@ while : ; do -m*) machine=$2; shift ;; + -N*) + etcdir=$2; shift + ;; -s*) setd=$2; shift ;; @@ -55,15 +59,16 @@ while : ; do ;; -*) cat 1>&2 < $SDIR/metalog fi @@ -152,11 +158,11 @@ for setname in $lists; do if [ -n "$installdir" ]; then ( cd $dest ; \ - ${PAX} -rwpe -d ${metalog:+-N$dest/etc} ${metalog:+-M} \ + ${PAX} -rwpe -d ${metalog:+-N${etcdir}} ${metalog:+-M} \ $installdir < ${SDIR}/plist.$setname ) else ( cd $dest ; \ - ${PAX} -w -d -z ${metalog:+-N$dest/etc} ${metalog:+-M} \ + ${PAX} -w -d -z ${metalog:+-N${etcdir}} ${metalog:+-M} \ < ${SDIR}/plist.$setname ) > ${tars}/$out fi es=$(($es + $?))