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
This commit is contained in:
parent
5e84044ef5
commit
b037bb66fa
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue