summaryrefslogtreecommitdiff
path: root/mbldwrap.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mbldwrap.sh')
-rwxr-xr-xmbldwrap.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/mbldwrap.sh b/mbldwrap.sh
index 321dab0..33bc8dd 100755
--- a/mbldwrap.sh
+++ b/mbldwrap.sh
@@ -15,5 +15,9 @@ else
BOOT="./mk/bootstrap/bootstrap+`uname -s`-`uname -m`.sh"
fi
-./obj/mbld/mbld $@ || ./mbld/mbld $@ || mbld $@ || \
- (echo "Unable to run mbld $@; have you build successfully"; false)
+if [ -f mbld/mbld ] || [ -f obj/mbld/mbld ]; then
+ ./obj/mbld/mbld $@ || ./mbld/mbld $@ || mbld $@ || \
+ (echo "Unable to run mbld $@; have you build successfully"; false)
+else
+ mbld || $BOOT
+fi