diff options
| author | Jim Lawson | 2015-07-21 11:01:15 -0700 |
|---|---|---|
| committer | Jim Lawson | 2015-07-24 15:50:55 -0700 |
| commit | 4e8aa6245b43cc3ed3afbf19ad60dc37183ed0f4 (patch) | |
| tree | f4f6aa902b0bf598b947c2829b4c5159c4bbd217 /bin/flo2app.sh | |
| parent | 80774333d08405fe726101405192493e0a7b3cf2 (diff) | |
Check for errors.
Diffstat (limited to 'bin/flo2app.sh')
| -rwxr-xr-x | bin/flo2app.sh | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/bin/flo2app.sh b/bin/flo2app.sh index 6ef87351..f02ba8c0 100755 --- a/bin/flo2app.sh +++ b/bin/flo2app.sh @@ -1,9 +1,12 @@ #!/bin/bash -echo FLO-LLVM DONE flo-llvm $1.flo # --vcdtmp -echo FLO-LLVM DONE -flo-llvm-release $1.flo --harness > $1-harness.cpp -echo FLO-LLVM-RELEASE DONE -clang++ -o $1 $1-harness.cpp $1.o -echo GPP DONE +if [ $? ] ; then + echo FLO-LLVM DONE + flo-llvm-release $1.flo --harness > $1-harness.cpp +fi +if [ $? ] ; then + echo FLO-LLVM-RELEASE DONE + clang++ -o $1 $1-harness.cpp $1.o + echo GPP DONE +fi |
