Sun Jan 3 20:44:55 2021 UTC ()
lint: fix code generation from err.c

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


(rillig)
diff -r1.1 -r1.2 src/usr.bin/xlint/lint1/Makefile.err-msgs-h

cvs diff -r1.1 -r1.2 src/usr.bin/xlint/lint1/Attic/Makefile.err-msgs-h (expand / switch to unified diff)

--- src/usr.bin/xlint/lint1/Attic/Makefile.err-msgs-h 2021/01/03 18:48:37 1.1
+++ src/usr.bin/xlint/lint1/Attic/Makefile.err-msgs-h 2021/01/03 20:44:54 1.2
@@ -1,13 +1,13 @@ @@ -1,13 +1,13 @@
1# $NetBSD: Makefile.err-msgs-h,v 1.1 2021/01/03 18:48:37 rillig Exp $ 1# $NetBSD: Makefile.err-msgs-h,v 1.2 2021/01/03 20:44:54 rillig Exp $
2 2
3err-msgs.h: err.c Makefile.err-msgs-h 3err-msgs.h: err.c Makefile.err-msgs-h
4 ${_MKTARGET_CREATE} 4 ${_MKTARGET_CREATE}
5 sp='[[:space:]]*'; \ 5 sp='[[:space:]]*'; \
6 from="^$$sp\(\".*\"\)\,$$sp/\*$$sp\([0-9][0-9]*\)$$sp\*/\$$"; \ 6 from="^$$sp\(\".*\"\)\,$$sp/\*$$sp\([0-9][0-9]*\)$$sp\*/\$$"; \
7 ${TOOL_SED} -n -e "s,$$from,#define MSG_\2 \1,p" < err.c > ${.TARGET}.tmp 7 ${TOOL_SED} -n -e "s,$$from,#define MSG_\2 \1,p" < ${.ALLSRC:M*err.c} > ${.TARGET}.tmp
8 mv -f ${.TARGET}.tmp ${.TARGET} 8 mv -f ${.TARGET}.tmp ${.TARGET}
9 9
10CLEANFILES+= err-msgs.h 10CLEANFILES+= err-msgs.h
11DPSRCS+= err-msgs.h 11DPSRCS+= err-msgs.h
12 12
13externs1.h: err-msgs.h 13externs1.h: err-msgs.h