Scilab: add Scilab in makefile check version targets

This commit is contained in:
Simon Marchetto 2013-08-09 12:16:00 +02:00
commit 66edc244b9
3 changed files with 14 additions and 4 deletions

View file

@ -1577,6 +1577,7 @@ SCILAB_LIB = @SCILABLIB@
SCILAB = @SCILAB@
SCILABOPT =
SCILAB_START_OPT = @SCILABSTARTOPT@
SCILAB_VERSION = @SCILABVERSION@
# ----------------------------------------------------------------
# Build a C dynamically loadable module
@ -1636,6 +1637,13 @@ scilab_run:
scilab_debug:
@env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH SCILABPATH=$(srcdir):$$SCILABPATH $(SCILAB) -noatomsautoload -nb -debug -f runme.sci
# -----------------------------------------------------------------
# Version display
# -----------------------------------------------------------------
scilab_version:
echo $(SCILAB_VERSION)
# -----------------------------------------------------------------
# Cleaning the scilab examples
# -----------------------------------------------------------------

View file

@ -149,6 +149,7 @@ check-versions: \
check-uffi-version \
check-cffi-version \
check-r-version \
check-scilab-version \
check-go-version \
check-d-version
@ -470,7 +471,7 @@ lib-languages = gcj typemaps tcl perl5 python guile java mzscheme ruby php ocaml
lib-modules = std
install-lib:
install-lib:
@echo "Installing the SWIG library"
@$(MKINSTDIRS) $(DESTDIR)$(SWIG_LIB)
@for file in $(srcdir)/Lib/*.i $(srcdir)/Lib/*.swg ; do \

View file

@ -1036,9 +1036,9 @@ fi
# Get Scilab version
AC_MSG_CHECKING(for Scilab version)
SCILAB_VERSION=`$SCILAB -version|sed -e 's|Scilab version \"\(.*\)\"|\1|g'|head -1`
AC_MSG_RESULT($SCILAB_VERSION)
SCILAB_MAJOR_VERSION=`echo $SCILAB_VERSION | cut -d. -f1`
SCILABVERSION=`$SCILAB -version|sed -e 's|Scilab version \"\(.*\)\"|\1|g'|head -1`
AC_MSG_RESULT($SCILABVERSION)
SCILAB_MAJOR_VERSION=`echo $SCILABVERSION | cut -d. -f1`
SCILAB_MINOR_VERSION=`echo $SCILAB_VERSION | cut -d. -f2`
# Set Scilab startup options depending on version
@ -1059,6 +1059,7 @@ AC_SUBST(SCILABDYNAMICLINKING)
AC_SUBST(SCILABLIB)
AC_SUBST(SCILABCCFLAGS)
AC_SUBST(SCILABSTARTOPT)
AC_SUBST(SCILABVERSION)
#----------------------------------------------------------------
# Look for java