summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@centraldogma>2011-08-29 23:53:50 +0200
committercinap_lenrek <cinap_lenrek@centraldogma>2011-08-29 23:53:50 +0200
commitc4db8cecbc33f213fa60fb3912f5346cad049538 (patch)
tree99e243ea960fa8bc1a5eafde231c01636e6d5517
parentdf6360169fe97295ae82355fb6e3961383713c23 (diff)
downloadplan9front-c4db8cecbc33f213fa60fb3912f5346cad049538.tar.xz
dont build empty directories
-rw-r--r--sys/src/cmd/mkfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/mkfile b/sys/src/cmd/mkfile
index 5ea902878..63e12e571 100644
--- a/sys/src/cmd/mkfile
+++ b/sys/src/cmd/mkfile
@@ -14,7 +14,7 @@ OUTOFDATE=old
NOMK=$NOTSYS|$BUGGERED|$OUTOFDATE
cpuobjtype=`{sed -n 's/^O=//p' /$cputype/mkfile}
-DIRS=`{ls -l | sed '/^d/!d; s/.* //; /^('$NOMK')$/d'}
+DIRS=`{echo */mkfile | sed 's,/mkfile *,\n,g' | grep -v '^('$NOMK')$'}
APEDIRS=awk bzip2 compress cvs eqn grap gs links-ape lp pic postscript spin \
tex troff