scilab: fix exit code in Example makefile

This commit is contained in:
Simon Marchetto 2014-07-10 09:17:49 +02:00
commit 71b838b777

View file

@ -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