summaryrefslogtreecommitdiffstats
path: root/share/mk/tap.test.mk
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2014-12-30 20:46:01 +0000
committerngie <ngie@FreeBSD.org>2014-12-30 20:46:01 +0000
commitb7c609250bb56ecd416c82894f0f4018f1d6af24 (patch)
tree42042f28b011e96398613ec882e9f145f1937485 /share/mk/tap.test.mk
parent28d09f6c088f73690fb82e3fb1941fe68615a610 (diff)
downloadFreeBSD-src-b7c609250bb56ecd416c82894f0f4018f1d6af24.zip
FreeBSD-src-b7c609250bb56ecd416c82894f0f4018f1d6af24.tar.gz
MFC r274077:
As an optimization (in simple, well used cases) only call cat ${.ALLSRC} when generating files from various sources instead of calling cat ${.ALLSRC} | sed The perl case was skipped because it's not being used in the tree at this time
Diffstat (limited to 'share/mk/tap.test.mk')
-rw-r--r--share/mk/tap.test.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/share/mk/tap.test.mk b/share/mk/tap.test.mk
index 058ebdf..ec86088 100644
--- a/share/mk/tap.test.mk
+++ b/share/mk/tap.test.mk
@@ -86,7 +86,11 @@ CLEANFILES+= ${_T} ${_T}.tmp
TAP_TESTS_SH_SED_${_T}?= # empty
TAP_TESTS_SH_SRC_${_T}?= ${_T}.sh
${_T}: ${TAP_TESTS_SH_SRC_${_T}}
+.if empty(TAP_TESTS_SH_SED_${_T})
+ cat ${.ALLSRC} >${.TARGET}.tmp
+.else
cat ${.ALLSRC} | sed ${TAP_TESTS_SH_SED_${_T}} >${.TARGET}.tmp
+.endif
chmod +x ${.TARGET}.tmp
mv ${.TARGET}.tmp ${.TARGET}
.endfor
OpenPOWER on IntegriCloud