Permalink
Browse files

scilab: fix exit code in Example makefile

  • Loading branch information...
1 parent 540973e commit 71b838b7771dd39a22d899f6aa88b35951e4cfdf @smarchetto smarchetto committed Jul 10, 2014
Showing with 6 additions and 2 deletions.
  1. +6 −2 Examples/Makefile.in
@@ -1732,7 +1732,9 @@ scilab: $(SRCDIR_SRCS)
fi \
fi
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH MAKEFLAGS="-j1" $(RUNTOOL) $(SCILAB) $(SCILAB_OPT) -e "ierr = exec('builder.sce', 'errcatch', -1); if ierr <> 0 then disp(lasterror()); end; exit(ierr);"; \
- test "x$(SRCS)" = "x$(SRCDIR_SRCS)" || rm $(SRCS)
+ STATUS=$$? \
+ test "x$(SRCS)" = "x$(SRCDIR_SRCS)" || rm $(SRCS) \
+ exit $(STATUS)
# ----------------------------------------------------------------
# Build a C++ dynamically loadable module
@@ -1754,7 +1756,9 @@ scilab_cpp: $(SRCDIR_SRCS)
fi \
fi
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH MAKEFLAGS="-j1" $(RUNTOOL) $(SCILAB) $(SCILAB_OPT) -e "ierr = exec('builder.sce', 'errcatch', -1); if ierr <> 0 then disp(lasterror()); end; exit(ierr);"; \
- test "x$(SRCS)" = "x$(SRCDIR_SRCS)" || rm $(SRCS)
+ STATUS=$$? \
+ test "x$(SRCS)" = "x$(SRCDIR_SRCS)" || rm $(SRCS) \
+ exit $(STATUS)
# -----------------------------------------------------------------
# Running a Scilab example

0 comments on commit 71b838b

Please sign in to comment.