Source-Changes-HG archive

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

[src/trunk]: src/share/mk After making sure USE_PIGZGZIP is defined, add a TO...



details:   https://anonhg.NetBSD.org/src/rev/a97b07e743b8
branches:  trunk
changeset: 766694:a97b07e743b8
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Jun 30 18:09:54 2011 +0000

description:
After making sure USE_PIGZGZIP is defined, add a TOOL_GZIP which will be
gzip or ${TOOL_PIGZ}.  Use of gzip can be replaced with ${TOOL_GZIP} and
automatically get to use pigz if USE_PIGZGZIP is defined as "yes".  This
avoid having to special case each of gzip.

diffstat:

 share/mk/bsd.own.mk |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r fed98a0cb4b4 -r a97b07e743b8 share/mk/bsd.own.mk
--- a/share/mk/bsd.own.mk       Thu Jun 30 14:56:09 2011 +0000
+++ b/share/mk/bsd.own.mk       Thu Jun 30 18:09:54 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.own.mk,v 1.671 2011/06/20 06:52:37 mrg Exp $
+#      $NetBSD: bsd.own.mk,v 1.672 2011/06/30 18:09:54 matt Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -950,6 +950,12 @@
 ${var}?= no
 .endfor
 
+.if ${USE_PIGZGZIP} != "no"
+TOOL_GZIP=             ${TOOL_PIGZ}
+.else
+TOOL_GZIP=             gzip
+.endif
+
 #
 # Where X11 sources are and where it is installed to.
 #



Home | Main Index | Thread Index | Old Index