Module Name:    src
Committed By:   sjg
Date:           Sat Sep  3 15:03:32 UTC 2022

Modified Files:
        src/usr.bin/make/unit-tests: Makefile

Log Message:
Only update distrib/sets/lists/tests/mi with valid files

sync-mi: use CVS/Entries to ensure we only update
distrib/sets/lists/tests/mi with files known to CVS.

Reviewed by: rillig


To generate a diff of this commit:
cvs rdiff -u -r1.323 -r1.324 src/usr.bin/make/unit-tests/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/unit-tests/Makefile
diff -u src/usr.bin/make/unit-tests/Makefile:1.323 src/usr.bin/make/unit-tests/Makefile:1.324
--- src/usr.bin/make/unit-tests/Makefile:1.323	Fri Sep  2 18:54:25 2022
+++ src/usr.bin/make/unit-tests/Makefile	Sat Sep  3 15:03:32 2022
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.323 2022/09/02 18:54:25 sjg Exp $
+# $NetBSD: Makefile,v 1.324 2022/09/03 15:03:32 sjg Exp $
 #
 # Unit tests for make(1)
 #
@@ -761,7 +761,8 @@ sync-mi:
 	testsdir="usr.bin/make/unit-tests";				\
 	fmt="./usr/tests/$$testsdir/%s\ttests-usr.bin-tests\tcompattestfile,atf\\n"; \
 	cat "$$mi" > "$$mi.tmp";					\
-	(cd "$$testsdir" && ls *.exp *.mk) | xargs printf "$$fmt" >> "$$mi.tmp"; \
+	(cd "$$testsdir" && egrep '\.(exp|mk)/' CVS/Entries | cut -d/ -f2) | \
+	xargs printf "$$fmt" >> "$$mi.tmp"; \
 	distrib/sets/fmt-list "$$mi.tmp";				\
 	mv "$$mi.tmp" "$$mi";						\
 	cvs diff "$$mi" || true

Reply via email to