Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/xlint/lint1 lint: fix code generation from err.c



details:   https://anonhg.NetBSD.org/src/rev/de3ff4e40249
branches:  trunk
changeset: 958409:de3ff4e40249
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sun Jan 03 20:44:54 2021 +0000

description:
lint: fix code generation from err.c

That file does not need to be in the current directory.

diffstat:

 usr.bin/xlint/lint1/Makefile.err-msgs-h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (16 lines):

diff -r ec149cd23ec0 -r de3ff4e40249 usr.bin/xlint/lint1/Makefile.err-msgs-h
--- a/usr.bin/xlint/lint1/Makefile.err-msgs-h   Sun Jan 03 20:38:26 2021 +0000
+++ b/usr.bin/xlint/lint1/Makefile.err-msgs-h   Sun Jan 03 20:44:54 2021 +0000
@@ -1,10 +1,10 @@
-#      $NetBSD: Makefile.err-msgs-h,v 1.1 2021/01/03 18:48:37 rillig Exp $
+#      $NetBSD: Makefile.err-msgs-h,v 1.2 2021/01/03 20:44:54 rillig Exp $
 
 err-msgs.h: err.c Makefile.err-msgs-h
        ${_MKTARGET_CREATE}
        sp='[[:space:]]*'; \
        from="^$$sp\(\".*\"\)\,$$sp/\*$$sp\([0-9][0-9]*\)$$sp\*/\$$"; \
-       ${TOOL_SED} -n -e "s,$$from,#define MSG_\2 \1,p" < err.c > ${.TARGET}.tmp
+       ${TOOL_SED} -n -e "s,$$from,#define MSG_\2 \1,p" < ${.ALLSRC:M*err.c} > ${.TARGET}.tmp
        mv -f ${.TARGET}.tmp ${.TARGET}
 
 CLEANFILES+=   err-msgs.h



Home | Main Index | Thread Index | Old Index