Module Name:    src
Committed By:   sjg
Date:           Tue Jul 28 18:39:56 UTC 2020

Modified Files:
        src/usr.bin/make/unit-tests: Makefile

Log Message:
Use cat if no POSTPROC.${.TARGET:R}

On Linux sed with no flags throws an error.


To generate a diff of this commit:
cvs rdiff -u -r1.73 -r1.74 src/usr.bin/make/unit-tests/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/make/unit-tests/Makefile
diff -u src/usr.bin/make/unit-tests/Makefile:1.73 src/usr.bin/make/unit-tests/Makefile:1.74
--- src/usr.bin/make/unit-tests/Makefile:1.73	Tue Jul 28 16:26:37 2020
+++ src/usr.bin/make/unit-tests/Makefile	Tue Jul 28 18:39:56 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.73 2020/07/28 16:26:37 sjg Exp $
+# $NetBSD: Makefile,v 1.74 2020/07/28 18:39:56 sjg Exp $
 #
 # Unit tests for make(1)
 #
@@ -158,7 +158,7 @@ _SED_CMDS+=	-e 's,${UNIT_TESTS:S,.,\\.,g
 	@echo postprocess ${.TARGET}
 	@${TOOL_SED} ${_SED_CMDS} ${SED_CMDS.${.TARGET:R}} \
 	  < ${.IMPSRC} > ${.TARGET}.tmp1
-	@${POSTPROC.${.TARGET:R}:U${TOOL_SED}} < ${.TARGET}.tmp1 > ${.TARGET}.tmp2
+	@${POSTPROC.${.TARGET:R}:Ucat} < ${.TARGET}.tmp1 > ${.TARGET}.tmp2
 	@rm ${.TARGET}.tmp1
 	@echo "exit status `cat ${.TARGET:R}.status`" >> ${.TARGET}.tmp2
 	@mv ${.TARGET}.tmp2 ${.TARGET}

Reply via email to