summaryrefslogtreecommitdiffstats
path: root/hl/examples/run-hl-ex.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hl/examples/run-hl-ex.sh')
-rwxr-xr-xhl/examples/run-hl-ex.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/hl/examples/run-hl-ex.sh b/hl/examples/run-hl-ex.sh
index 0478f76..5fa97c0 100755
--- a/hl/examples/run-hl-ex.sh
+++ b/hl/examples/run-hl-ex.sh
@@ -25,10 +25,14 @@
if (echo "Run hl c examples" && \
(cd c; sh ./run-hlc-ex.sh) && \
- echo "Run hl fortran examples" && \
- (cd fortran; sh ./run-hlfortran-ex.sh) && \
- echo "Run hl c++ examples" && \
- (cd c++; sh ./run-hlc++-ex.sh)); then
+ (if test -d fortran; then
+ echo "Run hl fortran examples"
+ cd fortran; sh ./run-hlfortran-ex.sh
+ fi)
+ (if test -d c++; then
+ echo "Run hl c++ examples"
+ cd c++; sh ./run-hlc++-ex.sh
+ fi)); then
echo "Finished running hl examples"
exit 0
else