Module Name: src Committed By: matt Date: Thu Jun 30 18:09:54 UTC 2011
Modified Files: src/share/mk: bsd.own.mk Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.671 -r1.672 src/share/mk/bsd.own.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/share/mk/bsd.own.mk diff -u src/share/mk/bsd.own.mk:1.671 src/share/mk/bsd.own.mk:1.672 --- src/share/mk/bsd.own.mk:1.671 Mon Jun 20 06:52:37 2011 +++ src/share/mk/bsd.own.mk Thu Jun 30 18:09:54 2011 @@ -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. #