Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib improve how gzipping is done to reduce amount of tem...



details:   https://anonhg.NetBSD.org/src/rev/8ed07e1ee239
branches:  trunk
changeset: 526678:8ed07e1ee239
user:      lukem <lukem%NetBSD.org@localhost>
date:      Wed May 08 07:57:09 2002 +0000

description:
improve how gzipping is done to reduce amount of temp files, etc.

diffstat:

 distrib/evbarm/gzboot/gzimg/Makefile          |  19 +++++++++++--------
 distrib/prep/floppies/kernel-generic/Makefile |   9 ++++-----
 distrib/sparc64/xminiroot/Makefile            |   6 +++---
 3 files changed, 18 insertions(+), 16 deletions(-)

diffs (79 lines):

diff -r 5fd8fb1057a5 -r 8ed07e1ee239 distrib/evbarm/gzboot/gzimg/Makefile
--- a/distrib/evbarm/gzboot/gzimg/Makefile      Wed May 08 07:48:39 2002 +0000
+++ b/distrib/evbarm/gzboot/gzimg/Makefile      Wed May 08 07:57:09 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.8 2002/05/05 14:37:38 lukem Exp $
+#      $NetBSD: Makefile,v 1.9 2002/05/08 07:57:11 lukem Exp $
 
 .include <bsd.own.mk>
 .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
@@ -19,14 +19,17 @@
 
 GZIMGS+=       gzimg_${G}_flash_${R}.gz
 
-gzimg_${G}_flash_${R}.gz: .NOTMAIN ${GZB${G}} ${KERNOBJDIR}/${K}/${W}.bin
+gzimg_${G}_flash_${R}: .NOTMAIN ${GZB${G}} ${KERNOBJDIR}/${K}/${W}.bin
        @echo "Populating ${.TARGET}"
-       cp ${KERNOBJDIR}/${K}/${W}.bin ${.TARGET:R}.kern
-       gzip -9f ${.TARGET:R}.kern
-       cp ${GZB${G}} ${.TARGET:R}
-       ${MDSETIMAGE} -v -s ${.TARGET:R} ${.TARGET:R}.kern.gz
-       ${OBJCOPY} -O binary ${.TARGET:R} ${.TARGET:R}
-       gzip -9f ${.TARGET:R}
+       -rm -f ${.TARGET}.kern.gz
+       gzip -9c ${KERNOBJDIR}/${K}/${W}.bin > ${.TARGET}.kern.gz
+       cp ${GZB${G}} ${.TARGET}
+       ${MDSETIMAGE} -v -s ${.TARGET} ${.TARGET}.kern.gz
+       ${OBJCOPY} -O binary ${.TARGET} ${.TARGET}
+
+gzimg_${G}_flash_${R}.gz: .NOTMAIN gzimg_${G}_flash_${R}
+       -rm -f ${.TARGET}
+       gzip -9c ${.ALLSRC} > ${.TARGET}
 
 CLEANFILES+=   gzimg_${G}_flash_${R}.kern gzimg_${G}_flash_${R}.kern.gz \
                gzimg_${G}_flash_${R}
diff -r 5fd8fb1057a5 -r 8ed07e1ee239 distrib/prep/floppies/kernel-generic/Makefile
--- a/distrib/prep/floppies/kernel-generic/Makefile     Wed May 08 07:48:39 2002 +0000
+++ b/distrib/prep/floppies/kernel-generic/Makefile     Wed May 08 07:57:09 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.4 2002/05/02 18:02:49 lukem Exp $
+#      $NetBSD: Makefile,v 1.5 2002/05/08 07:57:09 lukem Exp $
 
 .include <bsd.own.mk>
 .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
@@ -8,12 +8,11 @@
 KERN=          ${KERNOBJDIR}/GENERIC/netbsd
 KERNEL=                netbsd.GENERIC.gz
 
-CLEANFILES+=   ${KERNEL} netbsd.tmp netbsd.tmp.gz
+CLEANFILES+=   ${KERNEL}
 
 ${KERNEL}: ${KERN}
-       cp ${KERN} netbsd.tmp
-       gzip -9f netbsd.tmp
-       mv netbsd.tmp.gz ${.TARGET}
+       -rm -f ${.TARGET}
+       gzip -9c ${.ALLSRC} > ${.TARGET}
 
 realall: ${KERNEL}
 
diff -r 5fd8fb1057a5 -r 8ed07e1ee239 distrib/sparc64/xminiroot/Makefile
--- a/distrib/sparc64/xminiroot/Makefile        Wed May 08 07:48:39 2002 +0000
+++ b/distrib/sparc64/xminiroot/Makefile        Wed May 08 07:57:09 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.18 2002/05/07 14:44:06 lukem Exp $
+#      $NetBSD: Makefile,v 1.19 2002/05/08 07:57:10 lukem Exp $
 
 .include <bsd.own.mk>
 .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
@@ -20,8 +20,8 @@
        cp ${.ALLSRC} ${.TARGET}
 
 netbsd.gz: ${KERNOBJDIR}/GENERIC/netbsd
-       cp ${.ALLSRC} ${.TARGET:R}
-       gzip -9f ${.TARGET:R}
+       -rm -f ${.TARGET}
+       gzip -9c ${.ALLSRC} > ${.TARGET}
 
 CLEANFILES+=   ${CRUNCHBIN} netbsd.gz
 



Home | Main Index | Thread Index | Old Index