Module Name:    src
Committed By:   rillig
Date:           Sat Aug  1 21:48:17 UTC 2020

Modified Files:
        src/usr.bin/make: Makefile

Log Message:
make(1): remove line numbers from generated code coverage files

The line numbers make it difficult to spot changes in the code and
coverage if a line is added or removed from the code.


To generate a diff of this commit:
cvs rdiff -u -r1.77 -r1.78 src/usr.bin/make/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/Makefile
diff -u src/usr.bin/make/Makefile:1.77 src/usr.bin/make/Makefile:1.78
--- src/usr.bin/make/Makefile:1.77	Fri Jul 31 07:29:21 2020
+++ src/usr.bin/make/Makefile	Sat Aug  1 21:48:17 2020
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.77 2020/07/31 07:29:21 rillig Exp $
+#	$NetBSD: Makefile,v 1.78 2020/08/01 21:48:17 rillig Exp $
 #	@(#)Makefile	5.2 (Berkeley) 12/28/90
 
 PROG=	make
@@ -79,6 +79,7 @@ test: .MAKE
 	&& MAKEFLAGS= ${.MAKE} -r -m / TEST_MAKE=${TEST_MAKE:U${.OBJDIR}/${PROG:T}} ${.TARGET}
 .if ${USE_COVERAGE} == yes
 	gcov ${SRCS}
+	sed -i 's,^\([^:]*\): *[0-9]*:,\1: ,' *.gcov
 .endif
 
 accept: .MAKE

Reply via email to