diff options
author | Ori Bernstein <ori@eigenstate.org> | 2015-05-16 01:24:34 -0700 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2015-05-16 01:24:34 -0700 |
commit | 9fa7e376e33410e78fda13897bf8e0914f201ddf (patch) | |
tree | c3e1e6f004c5ee96712770153a6a267592ecf223 /mbldwrap.sh | |
parent | 99bd0e314a7050f7ac4ae2c33207be08aa5c4507 (diff) | |
download | mc-9fa7e376e33410e78fda13897bf8e0914f201ddf.tar.gz |
Remove status arg from fatal.
We never set it to anything other than '1' anyways. There's
no standardized error codes, so the exit status isn't really
useful in any case.
Diffstat (limited to 'mbldwrap.sh')
-rwxr-xr-x | mbldwrap.sh | 10 |
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 |