From ace81cb1aee0f0827d698768607421f16a9c657e Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Tue, 10 Dec 2024 23:11:44 +0000 Subject: [PATCH] mkfiles: check for test/mkfile when recursing Some programs have test directories without a test mkfile; this causes spurious errors. Discriminate more carefully. --- sys/src/cmd/mkmany | 2 +- sys/src/cmd/mkone | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/src/cmd/mkmany b/sys/src/cmd/mkmany index 9ff43a849..61c0d1dff 100644 --- a/sys/src/cmd/mkmany +++ b/sys/src/cmd/mkmany @@ -82,7 +82,7 @@ clean:V: man:V: $MANFILES test:VQ: $PROGS - if(test -d ./test) + if(test -f ./test/mkfile) cd test && mk $MKFLAGS test if not status=() diff --git a/sys/src/cmd/mkone b/sys/src/cmd/mkone index cb89fa55d..747060d93 100644 --- a/sys/src/cmd/mkone +++ b/sys/src/cmd/mkone @@ -63,7 +63,7 @@ $MAN/%: %.man man:V: $MAN/$TARG test:QV: $O.out $TESTDEP - if(test -d ./test){ + if(test -f ./test/mkfile){ pwd @{cd ./test && mk $MKFLAGS test} }