Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make/unit-tests Use cat if no POSTPROC.${.TARGET:R}



details:   https://anonhg.NetBSD.org/src/rev/1e57c94c87dc
branches:  trunk
changeset: 936525:1e57c94c87dc
user:      sjg <sjg%NetBSD.org@localhost>
date:      Tue Jul 28 18:39:56 2020 +0000

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

On Linux sed with no flags throws an error.

diffstat:

 usr.bin/make/unit-tests/Makefile |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r a3741d247580 -r 1e57c94c87dc usr.bin/make/unit-tests/Makefile
--- a/usr.bin/make/unit-tests/Makefile  Tue Jul 28 18:31:16 2020 +0000
+++ b/usr.bin/make/unit-tests/Makefile  Tue Jul 28 18:39:56 2020 +0000
@@ -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 @@
        @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}



Home | Main Index | Thread Index | Old Index