[MLton-commit] r4150
Stephen Weeks
MLton@mlton.org
Fri, 4 Nov 2005 12:47:57 -0800
Made clean script more robust.
----------------------------------------------------------------------
U mlton/trunk/bin/clean
----------------------------------------------------------------------
Modified: mlton/trunk/bin/clean
===================================================================
--- mlton/trunk/bin/clean 2005-11-04 19:52:16 UTC (rev 4149)
+++ mlton/trunk/bin/clean 2005-11-04 20:47:54 UTC (rev 4150)
@@ -23,14 +23,13 @@
fi
for f in `ls`; do
if [ -d $f ]; then
- cd $f;
- if [ -r Makefile ] &&
- grep $grepFlags '^clean:' Makefile ; then
- $bin/mmake clean
+ cd $f
+ if [ -r Makefile ]; then
+ $bin/mmake clean || doit
else
doit
- fi &&
- cd ..;
+ fi
+ cd ..
fi
done
}