Module Name:    src
Committed By:   rillig
Date:           Tue Dec 19 20:08:28 UTC 2023

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

Log Message:
make: clean up code coverage report files

Remove trailing whitespace.

Remove the first line, as it only repeats the filename.

Remove the line numbers, as they are mostly the same as in the original
source file.


To generate a diff of this commit:
cvs rdiff -u -r1.126 -r1.127 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.126 src/usr.bin/make/Makefile:1.127
--- src/usr.bin/make/Makefile:1.126	Sun Dec 17 10:48:10 2023
+++ src/usr.bin/make/Makefile	Tue Dec 19 20:08:27 2023
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.126 2023/12/17 10:48:10 rillig Exp $
+#	$NetBSD: Makefile,v 1.127 2023/12/19 20:08:27 rillig Exp $
 #	@(#)Makefile	5.2 (Berkeley) 12/28/90
 
 PROG=	make
@@ -145,7 +145,11 @@ report-coverage: .PHONY
 	| perl -ne ${GCOV_PERL:Q} \
 	| sort -r -k4 \
 	| sort -nr -k1
-	@sed -i 's,^\([^:]*\): *[0-9]*:,\1: ,' *.gcov
+	@sed -i \
+	    -e '1d' \
+	    -e 's,^\([^:]*\): *[0-9]*:,\1: ,' \
+	    -e 's, *$$,,g' \
+	    *.gcov
 .endif
 
 .include <bsd.prog.mk>

Reply via email to