summaryrefslogtreecommitdiff
path: root/mbldwrap.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mbldwrap.sh')
-rwxr-xr-xmbldwrap.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/mbldwrap.sh b/mbldwrap.sh
index d922acb..620fb70 100755
--- a/mbldwrap.sh
+++ b/mbldwrap.sh
@@ -2,16 +2,20 @@
# this should be a bourne compatible shell script.
if test `uname` = Plan9; then
- echo "PLAN 9 BOOTSTRAP"
export MYR_MUSE=../muse/$O.out
export MYR_MC=../$O/$O.out
export MYR_RT=../rt/_myrrt.$O
BOOT="./mk/bootstrap/bootstrap+`uname -s`-`uname -m`.sh"
else
- echo "POSIX BOOTSTRAP"
export MYR_MUSE=../muse/muse
export MYR_MC=../6/6m
export MYR_RT=../rt/_myrrt.o
BOOT="./mk/bootstrap/bootstrap+`uname -s`-`uname -m`.sh"
fi
-mbld $@ || ./mbld/mbld $@ || $BOOT
+
+if [ -z "$@" ]; then
+ mbld || ./mbld/mbld || $BOOT
+else
+ mbld $@ || ./mbld/mbld $@ || \
+ (echo "Unable to run mbld $@; have you build successfully"; false)
+fi