From 48c56afda57a32ed76da9367728e6a29a05c554c Mon Sep 17 00:00:00 2001 From: gene <> Date: Mon, 16 Feb 1998 02:04:39 +0000 Subject: [PATCH] Explicitly chdir when building snapshot kernels and their associated tarballs. In a related effort, do everything that has a different chdir root (ie, config && make depend etc) in a subshell. Thanks to Hans for the initial prompting on this. --- src/etc/etc.mac68k/Makefile.inc | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/etc/etc.mac68k/Makefile.inc b/src/etc/etc.mac68k/Makefile.inc index 44badf5e..1d7ff087 100644 --- a/src/etc/etc.mac68k/Makefile.inc +++ b/src/etc/etc.mac68k/Makefile.inc @@ -1,19 +1,21 @@ -# $OpenBSD: Makefile.inc,v 1.4 1997/10/06 20:10:52 gene Exp $ +# $OpenBSD: Makefile.inc,v 1.5 1998/02/16 02:04:39 gene Exp $ # etc.mac68k/Makefile.inc -- mac68k-specific etc Makefile targets .ifdef DESTDIR snap_md: bsd-generic bsd-genericsbc - tar cf - ${.CURDIR}/../sys/arch/mac68k/compile/GENERIC/bsd \ - | ${GZIP} ${GZIPFLAGS} >${DESTDIR}/snapshot/bsd-generic.tar${GZIPEXT} - tar cf - ${.CURDIR}/../sys/arch/mac68k/compile/GENERICSBC/bsd \ - | ${GZIP} ${GZIPFLAGS} >${DESTDIR}/snapshot/bsd-genericsbc.tar${GZIPEXT} + (cd ${.CURDIR}/../sys/arch/mac68k/compile/GENERIC; + tar cf - bsd \ + | ${GZIP} ${GZIPFLAGS} >${DESTDIR}/snapshot/bsd-generic.tar${GZIPEXT}) + (cd ${.CURDIR}/../sys/arch/mac68k/compile/GENERICSBC; + tar cf - bsd \ + | ${GZIP} ${GZIPFLAGS} >${DESTDIR}/snapshot/bsd-genericsbc.tar${GZIPEXT}) bsd-generic: - cd ${.CURDIR}/../sys/arch/mac68k/conf && config GENERIC - cd ${.CURDIR}/../sys/arch/mac68k/compile/GENERIC && \ - make clean && make depend && make + (cd ${.CURDIR}/../sys/arch/mac68k/conf && config GENERIC) + (cd ${.CURDIR}/../sys/arch/mac68k/compile/GENERIC && \ + make clean && make depend && make) bsd-genericsbc: - cd ${.CURDIR}/../sys/arch/mac68k/conf && config GENERICSBC - cd ${.CURDIR}/../sys/arch/mac68k/compile/GENERICSBC && \ - make clean && make depend && make + (cd ${.CURDIR}/../sys/arch/mac68k/conf && config GENERICSBC) + (cd ${.CURDIR}/../sys/arch/mac68k/compile/GENERICSBC && \ + make clean && make depend && make) .endif # DESTDIR check