git: 9front

Download patch

ref: fcfc6adeddb3a24fdea9e5c05cd9626cae035113
parent: e922ef2a4bfb87d23e28942d40a6435a2a36ea17
author: Ori Bernstein <ori@eigenstate.org>
date: Tue Dec 10 18:11:44 EST 2024

mkfiles: check for test/mkfile when recursing

Some programs have test directories without a test
mkfile; this causes spurious errors. Discriminate
more carefully.

--- a/sys/src/cmd/mkmany
+++ b/sys/src/cmd/mkmany
@@ -82,7 +82,7 @@
 man:V:	$MANFILES
 
 test:VQ: $PROGS
-	if(test -d ./test)
+	if(test -f ./test/mkfile)
 		cd test && mk $MKFLAGS test
 	if not
 		status=()
--- a/sys/src/cmd/mkone
+++ b/sys/src/cmd/mkone
@@ -63,7 +63,7 @@
 man:V:    $MAN/$TARG
 
 test:QV: $O.out $TESTDEP
-	if(test -d ./test){
+	if(test -f ./test/mkfile){
 		pwd
 		@{cd ./test && mk $MKFLAGS test}
 	}
--