summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorShashank2017-05-29 12:40:26 +0530
committerShashank2017-05-29 12:40:26 +0530
commit0345245e860375a32c9a437c4a9d9cae807134e9 (patch)
treead51ecbfa7bcd3cc5f09834f1bb8c08feaa526a4 /contrib
downloadscilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.tar.gz
scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.tar.bz2
scilab_for_xcos_on_cloud-0345245e860375a32c9a437c4a9d9cae807134e9.zip
CMSCOPE changed
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/Makefile797
-rwxr-xr-xcontrib/Makefile.am197
-rwxr-xr-xcontrib/Makefile.in797
-rwxr-xr-xcontrib/loader.sce5
-rwxr-xr-xcontrib/toolbox_skeleton.iss102
-rwxr-xr-xcontrib/toolbox_skeleton/DESCRIPTION37
-rwxr-xr-xcontrib/toolbox_skeleton/DESCRIPTION-FUNCTIONS5
-rwxr-xr-xcontrib/toolbox_skeleton/builder.sce53
-rwxr-xr-xcontrib/toolbox_skeleton/changelog.txt13
-rwxr-xr-xcontrib/toolbox_skeleton/demos/c_sum.dem.sce16
-rwxr-xr-xcontrib/toolbox_skeleton/demos/cpp_find.dem.sce18
-rwxr-xr-xcontrib/toolbox_skeleton/demos/fortran_sum.dem.sce16
-rwxr-xr-xcontrib/toolbox_skeleton/demos/scilab_sum.dem.sce15
-rwxr-xr-xcontrib/toolbox_skeleton/demos/toolbox_skeleton.dem.gateway.sce17
-rwxr-xr-xcontrib/toolbox_skeleton/etc/toolbox_skeleton.quit21
-rwxr-xr-xcontrib/toolbox_skeleton/etc/toolbox_skeleton.start68
-rwxr-xr-xcontrib/toolbox_skeleton/etc/toolbox_skeleton_preferences.xml18
-rwxr-xr-xcontrib/toolbox_skeleton/etc/toolbox_skeleton_preferences.xsl39
-rwxr-xr-xcontrib/toolbox_skeleton/help/builder_help.sce4
-rwxr-xr-xcontrib/toolbox_skeleton/help/cleaner_help.sce21
-rwxr-xr-xcontrib/toolbox_skeleton/help/en_US/build_help.sce3
-rwxr-xr-xcontrib/toolbox_skeleton/help/en_US/c_multiplybypi.xml55
-rwxr-xr-xcontrib/toolbox_skeleton/help/en_US/c_sub.xml82
-rwxr-xr-xcontrib/toolbox_skeleton/help/en_US/c_sum.xml61
-rwxr-xr-xcontrib/toolbox_skeleton/help/en_US/fortran_sum.xml60
-rwxr-xr-xcontrib/toolbox_skeleton/help/en_US/scilab_sum.xml62
-rwxr-xr-xcontrib/toolbox_skeleton/help/fr_FR/build_help.sce3
-rwxr-xr-xcontrib/toolbox_skeleton/help/fr_FR/c_multiplybypi.xml56
-rwxr-xr-xcontrib/toolbox_skeleton/help/fr_FR/c_sub.xml86
-rwxr-xr-xcontrib/toolbox_skeleton/help/fr_FR/c_sum.xml62
-rwxr-xr-xcontrib/toolbox_skeleton/help/fr_FR/fortran_sum.xml62
-rwxr-xr-xcontrib/toolbox_skeleton/help/fr_FR/scilab_sum.xml63
-rwxr-xr-xcontrib/toolbox_skeleton/license.txt9
-rwxr-xr-xcontrib/toolbox_skeleton/locales/en_US.po35
-rwxr-xr-xcontrib/toolbox_skeleton/locales/fr_FR.po32
-rwxr-xr-xcontrib/toolbox_skeleton/macros/buildmacros.sce10
-rwxr-xr-xcontrib/toolbox_skeleton/macros/cleanmacros.sce20
-rwxr-xr-xcontrib/toolbox_skeleton/macros/scilab_error.sci20
-rwxr-xr-xcontrib/toolbox_skeleton/macros/scilab_sum.sci10
-rwxr-xr-xcontrib/toolbox_skeleton/readme.txt7
-rwxr-xr-xcontrib/toolbox_skeleton/sci_gateway/builder_gateway.sce15
-rwxr-xr-xcontrib/toolbox_skeleton/sci_gateway/c/builder_gateway_c.sce23
-rwxr-xr-xcontrib/toolbox_skeleton/sci_gateway/c/sci_cerror.c26
-rwxr-xr-xcontrib/toolbox_skeleton/sci_gateway/c/sci_csub.c119
-rwxr-xr-xcontrib/toolbox_skeleton/sci_gateway/c/sci_csum.c83
-rwxr-xr-xcontrib/toolbox_skeleton/sci_gateway/c/sci_foo.c139
-rwxr-xr-xcontrib/toolbox_skeleton/sci_gateway/c/sci_multiplybypi.c83
-rwxr-xr-xcontrib/toolbox_skeleton/sci_gateway/cpp/builder_gateway_cpp.sce13
-rwxr-xr-xcontrib/toolbox_skeleton/sci_gateway/cpp/sci_cpp_find.cxx165
-rwxr-xr-xcontrib/toolbox_skeleton/sci_gateway/fortran/builder_gateway_fortran.sce14
-rwxr-xr-xcontrib/toolbox_skeleton/sci_gateway/fortran/sci_fsum.c124
-rwxr-xr-xcontrib/toolbox_skeleton/src/builder_src.sce10
-rwxr-xr-xcontrib/toolbox_skeleton/src/c/builder_c.sce22
-rwxr-xr-xcontrib/toolbox_skeleton/src/c/csub.c12
-rwxr-xr-xcontrib/toolbox_skeleton/src/c/csub.h18
-rwxr-xr-xcontrib/toolbox_skeleton/src/c/csum.c12
-rwxr-xr-xcontrib/toolbox_skeleton/src/c/csum.h18
-rwxr-xr-xcontrib/toolbox_skeleton/src/c/multiplybypi.c16
-rwxr-xr-xcontrib/toolbox_skeleton/src/c/multiplybypi.h17
-rwxr-xr-xcontrib/toolbox_skeleton/src/cleaner_src.sce16
-rwxr-xr-xcontrib/toolbox_skeleton/src/fortran/builder_fortran.sce13
-rwxr-xr-xcontrib/toolbox_skeleton/src/fortran/fsum.f12
-rwxr-xr-xcontrib/toolbox_skeleton/src/java/builder_java.sce25
-rwxr-xr-xcontrib/toolbox_skeleton/src/java/org/scilab/contrib/toolboxskeleton/Sum.java12
-rwxr-xr-xcontrib/toolbox_skeleton/tests/unit_tests/c_sum.dia.ref4
-rwxr-xr-xcontrib/toolbox_skeleton/tests/unit_tests/c_sum.tst4
-rwxr-xr-xcontrib/toolbox_skeleton/tests/unit_tests/fortran_sum.dia.ref4
-rwxr-xr-xcontrib/toolbox_skeleton/tests/unit_tests/fortran_sum.tst4
-rwxr-xr-xcontrib/toolbox_skeleton/tests/unit_tests/java_sum.dia.ref5
-rwxr-xr-xcontrib/toolbox_skeleton/tests/unit_tests/java_sum.tst5
-rwxr-xr-xcontrib/toolbox_skeleton/tests/unit_tests/scilab_sum.dia.ref4
-rwxr-xr-xcontrib/toolbox_skeleton/tests/unit_tests/scilab_sum.tst4
-rwxr-xr-xcontrib/toolbox_skeleton/toolbox_skeleton_redist.iss57
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/DESCRIPTION33
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/DESCRIPTION-FUNCTIONS4
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/builder.sce53
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/changelog.txt6
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/demos/Blocks.zcosbin0 -> 5942 bytes
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/demos/allSum.dem.sce5
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/demos/xcos_toolbox_skeleton.dem.gateway.sce13
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/etc/xcos_toolbox_skeleton.quit1
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/etc/xcos_toolbox_skeleton.start83
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/examples/AllSum.zcosbin0 -> 5852 bytes
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/help/builder_help.sce4
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/help/cleaner_help.sce21
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/help/en_US/TBX_SUM_c.xml85
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/help/en_US/available_blocks.xml51
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/help/en_US/build_help.sce3
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/help/en_US/tbx_sum.xml57
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/help/fr_FR/build_help.sce3
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/images/gif/TBX_MUT_STYLE.gifbin0 -> 1640 bytes
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/images/gif/TBX_NOOP.gifbin0 -> 1747 bytes
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/images/gif/TBX_SUM_c.gifbin0 -> 2234 bytes
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/images/gif/TBX_SUM_modelica.gifbin0 -> 1709 bytes
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/images/gif/TBX_SUM_sci.gifbin0 -> 2244 bytes
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/images/svg/TBX_MUT_STYLE.svg12
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/images/svg/TBX_NOOP.svg1
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/images/svg/TBX_SUM_c.svg12
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/images/svg/TBX_SUM_modelica.svg1
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/images/svg/TBX_SUM_sci.svg12
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/license.txt9
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/macros/TBX_MUT_STYLE.sci48
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/macros/TBX_NOOP.sci76
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/macros/TBX_NOOP_sci.sci61
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/macros/TBX_NOOP_sim.sci9
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/macros/TBX_SUM_c.sci32
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/macros/TBX_SUM_modelica.sci40
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/macros/TBX_SUM_sci.sci31
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/macros/TBX_SUM_sim.sci49
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/macros/XcosToolboxSkeleton.mo18
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/macros/buildmacros.sce15
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/macros/cleanmacros.sce23
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/sci_gateway/builder_gateway.sce15
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/sci_gateway/c/builder_gateway_c.sce18
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/sci_gateway/c/sci_tbx_sum.c70
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/sci_gateway/loader_gateway.sce24
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/src/builder_src.sce11
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/src/c/block_sum.c25
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/src/c/builder_c.sce44
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/src/c/business.h7
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/src/c/business_sum.c7
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/src/c/tbx_block_noop.c8
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/src/cleaner_src.sce16
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/tests/benchmark/noop_matrices.zcosbin0 -> 5780 bytes
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/tests/benchmark/noop_matrices_c.tst17
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/tests/benchmark/noop_matrices_scilab.tst17
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/tests/benchmark/noop_scalar.zcosbin0 -> 3940 bytes
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/tests/benchmark/noop_scalar_c.tst17
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/tests/benchmark/noop_scalar_scilab.tst17
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/tests/unit_tests/tbx_sum.dia.ref3
-rwxr-xr-xcontrib/xcos_toolbox_skeleton/tests/unit_tests/tbx_sum.tst5
131 files changed, 5347 insertions, 0 deletions
diff --git a/contrib/Makefile b/contrib/Makefile
new file mode 100755
index 000000000..800db87e4
--- /dev/null
+++ b/contrib/Makefile
@@ -0,0 +1,797 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# contrib/Makefile. Generated from Makefile.in by configure.
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+
+
+# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+# Copyright (C) 2008 - DIGITEO - Sylvestre LEDRU
+# Copyright (C) 2014 - Scilab Enterprises - Clement DAVID
+#
+# This file is distributed under the same license as the Scilab package.
+
+# Install the contrib_skeleton directory (the template)
+
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+ case $${target_option-} in \
+ ?) ;; \
+ *) echo "am__make_running_with_option: internal error: invalid" \
+ "target option '$${target_option-}' specified" >&2; \
+ exit 1;; \
+ esac; \
+ has_opt=no; \
+ sane_makeflags=$$MAKEFLAGS; \
+ if $(am__is_gnu_make); then \
+ sane_makeflags=$$MFLAGS; \
+ else \
+ case $$MAKEFLAGS in \
+ *\\[\ \ ]*) \
+ bs=\\; \
+ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
+ esac; \
+ fi; \
+ skip_next=no; \
+ strip_trailopt () \
+ { \
+ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+ }; \
+ for flg in $$sane_makeflags; do \
+ test $$skip_next = yes && { skip_next=no; continue; }; \
+ case $$flg in \
+ *=*|--*) continue;; \
+ -*I) strip_trailopt 'I'; skip_next=yes;; \
+ -*I?*) strip_trailopt 'I';; \
+ -*O) strip_trailopt 'O'; skip_next=yes;; \
+ -*O?*) strip_trailopt 'O';; \
+ -*l) strip_trailopt 'l'; skip_next=yes;; \
+ -*l?*) strip_trailopt 'l';; \
+ -[dEDm]) skip_next=yes;; \
+ -[JT]) skip_next=yes;; \
+ esac; \
+ case $$flg in \
+ *$$target_option*) has_opt=yes; break;; \
+ esac; \
+ done; \
+ test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/scilab
+pkgincludedir = $(includedir)/scilab
+pkglibdir = $(libdir)/scilab
+pkglibexecdir = $(libexecdir)/scilab
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = x86_64-unknown-linux-gnu
+host_triplet = x86_64-unknown-linux-gnu
+subdir = contrib
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
+ $(top_srcdir)/config/mkinstalldirs
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/backtrace.m4 \
+ $(top_srcdir)/m4/compiler.m4 $(top_srcdir)/m4/curl.m4 \
+ $(top_srcdir)/m4/docbook.m4 $(top_srcdir)/m4/doxygen.m4 \
+ $(top_srcdir)/m4/fftw.m4 $(top_srcdir)/m4/fortran.m4 \
+ $(top_srcdir)/m4/giws.m4 $(top_srcdir)/m4/hdf5.m4 \
+ $(top_srcdir)/m4/intel_compiler.m4 \
+ $(top_srcdir)/m4/java-thirdparty.m4 $(top_srcdir)/m4/java.m4 \
+ $(top_srcdir)/m4/largefile.m4 $(top_srcdir)/m4/lib-ld.m4 \
+ $(top_srcdir)/m4/libsmath.m4 $(top_srcdir)/m4/libtool.m4 \
+ $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/ltoptions.m4 \
+ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
+ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/macosx.m4 \
+ $(top_srcdir)/m4/mpi.m4 $(top_srcdir)/m4/ocaml.m4 \
+ $(top_srcdir)/m4/pcre.m4 $(top_srcdir)/m4/pkg.m4 \
+ $(top_srcdir)/m4/relocatable.m4 $(top_srcdir)/m4/swig.m4 \
+ $(top_srcdir)/m4/symlinks.m4 $(top_srcdir)/m4/tcltk.m4 \
+ $(top_srcdir)/m4/umfpack.m4 $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/modules/core/includes/machine.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_$(V))
+am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_$(V))
+am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
+am__v_GEN_0 = @echo " GEN " $@;
+am__v_GEN_1 =
+AM_V_at = $(am__v_at_$(V))
+am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
+am__v_at_0 = @
+am__v_at_1 =
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+ case $$AM_UPDATE_INFO_DIR in \
+ n|no|NO) false;; \
+ *) (install-info --version) >/dev/null 2>&1;; \
+ esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = ${SHELL} /home/shashank/scilab-master_5.5.2/config/missing aclocal-1.14
+ALL_LINGUAS = en_US fr_FR zh_CN zh_TW ru_RU ca_ES de_DE es_ES pt_BR ja_JP it_IT uk_UA pl_PL cs_CZ
+ALL_LINGUAS_DOC = en_US fr_FR pt_BR ja_JP ru_RU
+AMTAR = $${TAR-tar}
+AM_DEFAULT_VERBOSITY = 1
+ANT = /usr/bin/ant
+ANTLR = /usr/share/java/antlr.jar
+AR = ar
+ARPACK_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -larpack
+ASM3 = /usr/share/java/asm3-3.3.2.jar
+AUTOCONF = ${SHELL} /home/shashank/scilab-master_5.5.2/config/missing autoconf
+AUTOHEADER = ${SHELL} /home/shashank/scilab-master_5.5.2/config/missing autoheader
+AUTOMAKE = ${SHELL} /home/shashank/scilab-master_5.5.2/config/missing automake-1.14
+AVALON_FRAMEWORK = /home/shashank/scilab-master_5.5.2/thirdparty/avalon-framework.jar
+AWK = mawk
+BATIK = /home/shashank/scilab-master_5.5.2/thirdparty/batik-all-1.7.jar
+BLAS_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lblas
+CC = gcc
+CCACHE =
+CCDEPMODE = depmode=gcc3
+CFLAGS = -g -O2
+CHECKSTYLE =
+COBERTURA = /usr/share/java/cobertura.jar
+COMMONS_BEANUTILS =
+COMMONS_IO = /home/shashank/scilab-master_5.5.2/thirdparty/commons-io.jar
+COMMONS_LOGGING = /home/shashank/scilab-master_5.5.2/thirdparty/commons-logging.jar
+CPP = gcc -E
+CPPFLAGS =
+CURL_CFLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include
+CURL_CONFIG = /home/shashank/scilab-master_5.5.2/usr/bin/curl-config
+CURL_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lcurl -L/home/scilab/work/linux-prerequisites-sources/trunk/Dev-Tools/SE/Prerequirements/linux_x64/usr/lib -L/home/scilab/work/linux-prerequisites-sources/trunk/Dev-Tools/SE/Prerequirements/linux_x64/usr/lib -lssl -lcrypto -lrt -lz
+CURL_VERSION = libcurl 7.19.7
+CXX = g++
+CXXCPP = g++ -E
+CXXDEPMODE = depmode=gcc3
+CXXFLAGS = -g -O2
+CYGPATH_W = echo
+DEFS = -DHAVE_CONFIG_H
+DEMOTOOLS_ENABLE = yes
+DEPDIR = .deps
+DLLTOOL = false
+DOCBOOK_ROOT = /home/shashank/scilab-master_5.5.2/thirdparty/docbook/
+DOXYGEN_BIN =
+DSYMUTIL =
+DUMPBIN =
+ECHO_C =
+ECHO_N = -n
+ECHO_T =
+ECJ = /home/shashank/scilab-master_5.5.2/thirdparty/ecj.jar
+EGREP = /bin/grep -E
+EXEEXT =
+F77 = gfortran
+FFLAGS = -g -O2
+FFTW3_LIB = -L/home/shashank/scilab-master_5.5.2/usr/lib -lfftw3
+FFTW_ENABLE = yes
+FGREP = /bin/grep -F
+FLEXDOCK = /home/shashank/scilab-master_5.5.2/thirdparty/flexdock-1.2.4.jar
+FLIBS = -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. -lpthread -ldl -lcurses -lgfortran -lm -lquadmath
+FOP = /home/shashank/scilab-master_5.5.2/thirdparty/fop.jar
+FREEHEP_GRAPHICS2D = /home/shashank/scilab-master_5.5.2/thirdparty/freehep-graphics2d.jar
+FREEHEP_GRAPHICSIO = /home/shashank/scilab-master_5.5.2/thirdparty/freehep-graphicsio.jar
+FREEHEP_GRAPHICSIO_EMF = /home/shashank/scilab-master_5.5.2/thirdparty/freehep-graphicsio-emf.jar
+FREEHEP_IO = /home/shashank/scilab-master_5.5.2/thirdparty/freehep-io.jar
+FREEHEP_UTIL = /home/shashank/scilab-master_5.5.2/thirdparty/freehep-util.jar
+GENHTML =
+GETTEXT_MACRO_VERSION = 0.19
+GIWS_BIN =
+GLUEGEN2_RT = /home/shashank/scilab-master_5.5.2/thirdparty/gluegen2-rt.jar
+GMSGFMT = /usr/bin/msgfmt
+GMSGFMT_015 = /usr/bin/msgfmt
+GRAPHICS_ENABLE = yes
+GREP = /bin/grep
+GUI_ENABLE = yes
+HDF5_CFLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include
+HDF5_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lhdf5 -lhdf5_hl
+HELP_ENABLE = yes
+INSTALL = /usr/bin/install -c
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_SCRIPT = ${INSTALL}
+INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
+INTLLIBS =
+INTL_MACOSX_LIBS =
+JAR = /usr/lib/jvm/java-8-openjdk-amd64/bin/jar
+JAVA = /usr/lib/jvm/java-8-openjdk-amd64/bin/java
+JAVAC = /usr/lib/jvm/java-8-openjdk-amd64/bin/javac
+JAVAC_DEBUG = off
+JAVADOC = /usr/lib/jvm/java-8-openjdk-amd64/bin/javadoc
+JAVAH = /usr/lib/jvm/java-8-openjdk-amd64/bin/javah
+JAVASCI_ENABLE = yes
+JAVA_ENABLE = yes
+JAVA_G = /usr/lib/jvm/java-8-openjdk-amd64/bin/java
+JAVA_HOME = /usr/lib/jvm/java-8-openjdk-amd64
+JAVA_JNI_INCLUDE = -I/usr/lib/jvm/java-8-openjdk-amd64/include -I/usr/lib/jvm/java-8-openjdk-amd64/include/linux
+JAVA_JNI_LIBS = -L/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64 -ljava -lverify -L/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server -ljvm
+JDB = /usr/lib/jvm/java-8-openjdk-amd64/bin/jdb
+JEUCLID_CORE = /home/shashank/scilab-master_5.5.2/thirdparty/jeuclid-core.jar
+JGRAPHX = /home/shashank/scilab-master_5.5.2/thirdparty/jgraphx.jar
+JHALL = /home/shashank/scilab-master_5.5.2/thirdparty/jhall.jar
+JLATEXMATH = /home/shashank/scilab-master_5.5.2/thirdparty/jlatexmath-1.0.3.jar
+JLATEXMATH_FOP = /home/shashank/scilab-master_5.5.2/thirdparty/jlatexmath-fop-1.0.3.jar
+JOGL2 = /home/shashank/scilab-master_5.5.2/thirdparty/jogl2.jar
+JROSETTA_API = /home/shashank/scilab-master_5.5.2/thirdparty/jrosetta-API.jar
+JROSETTA_ENGINE = /home/shashank/scilab-master_5.5.2/thirdparty/jrosetta-engine.jar
+JUNIT4 = /usr/share/java/junit4.jar
+LAPACK_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -llapack
+LCOV =
+LD = /usr/bin/ld -m elf_x86_64
+LDFLAGS = -Wl,--no-as-needed
+LIBICONV = -liconv
+LIBINTL =
+LIBM = -lm
+LIBOBJS =
+LIBS = -lpthread -ldl -lcurses -lm
+LIBTOOL = $(SHELL) $(top_builddir)/libtool
+LIPO =
+LN_S = ln -s
+LOGGING_LEVEL = SEVERE
+LOOKS = /home/shashank/scilab-master_5.5.2/thirdparty/looks-2.1.1.jar
+LTLIBICONV = -liconv
+LTLIBINTL =
+LTLIBOBJS =
+MAINT = #
+MAKEINFO = ${SHELL} /home/shashank/scilab-master_5.5.2/config/missing makeinfo
+MANIFEST_TOOL = :
+MATIO_CFLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include
+MATIO_ENABLE = yes
+MATIO_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lm -lz -lmatio -lhdf5
+MKDIR_P = /bin/mkdir -p
+MPI_ENABLE = no
+MSGCAT = /usr/bin/msgcat
+MSGFMT = /usr/bin/msgfmt
+MSGFMT_015 = /usr/bin/msgfmt
+MSGMERGE = /usr/bin/msgmerge
+NM = nm
+NMEDIT =
+OBJDUMP = objdump
+OBJEXT = o
+OCAMLC = ocamlc
+OCAMLDEP = ocamldep
+OCAMLLEX = ocamllex
+OCAMLOPT = ocamlopt
+OCAMLYACC = ocamlyacc
+OPENMPI_CC =
+OPENMPI_CFLAGS =
+OPENMPI_CXX =
+OPENMPI_CXXFLAGS =
+OPENMPI_LIBS =
+OPENMP_CFLAGS = -fopenmp
+OPENMP_CXXFLAGS = -fopenmp
+OPENMP_ENABLE = yes
+OPENMP_LIBS = -lgomp -lstdc++
+OTOOL =
+OTOOL64 =
+PACKAGE = scilab
+PACKAGE_BUGREPORT = http://bugzilla.scilab.org/
+PACKAGE_NAME = Scilab
+PACKAGE_STRING = Scilab 5
+PACKAGE_TARNAME = scilab
+PACKAGE_URL =
+PACKAGE_VERSION = 5
+PATH_SEPARATOR = :
+PCRE_CFLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include
+PCRE_CONFIG = /home/shashank/scilab-master_5.5.2/usr/bin/pcre-config
+PCRE_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lpcreposix -lpcre
+PCRE_VERSION = 8.35
+PKG_CONFIG = /usr/bin/pkg-config
+POSUB = po
+POW_LIB =
+PYTHON =
+RANLIB = ranlib
+RELOCATABLE = no
+RT_LIB = -lrt
+SAXON = /home/shashank/scilab-master_5.5.2/thirdparty/saxon9he.jar
+SCILAB_BINARY_VERSION = 5.5.2
+SCILAB_LIBRARY_VERSION = 5:5:2
+SCILAB_VERSION_MAINTENANCE = 2
+SCILAB_VERSION_MAJOR = 5
+SCILAB_VERSION_MINOR = 5
+SCIRENDERER = ${modules.dir}/scirenderer/${build.jar.dir}/scirenderer.jar
+SCIRENDERER_CP = $SCILAB/modules/scirenderer/jar/scirenderer.jar
+SCI_CFLAGS = -D_LARGEFILE64_SOURCE -DNDEBUG -m64 -fno-stack-protector
+SCI_CXXFLAGS = -DNDEBUG -fno-stack-protector
+SCI_FFLAGS = -DNDEBUG -m64 -fPIC
+SCI_LDFLAGS =
+SED = /bin/sed
+SET_MAKE =
+SET_RELOCATABLE =
+SHELL = /bin/bash
+SKINLF = /home/shashank/scilab-master_5.5.2/thirdparty/skinlf.jar
+SPLINT = no
+STRIP = strip
+SWIG_BIN =
+SWIG_JAVA =
+SWIG_RUNTIME_LIBS_DIR =
+SWIG_SCILAB =
+TCLTK_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -ltk8.5 -L/home/shashank/scilab-master_5.5.2/usr/lib -ltcl8.5 -ldl
+TCL_INC_PATH = -I/home/shashank/scilab-master_5.5.2/usr/include
+TK_INC_PATH = -I/home/shashank/scilab-master_5.5.2/usr/include
+UMFPACK_CFLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include
+UMFPACK_ENABLE = yes
+UMFPACK_LIB = -L/home/shashank/scilab-master_5.5.2/usr/lib -lumfpack -lamd
+USE_NLS = yes
+VERSION = 5
+WITH_OCAML =
+WITH_TKSCI = yes
+XCOS_ENABLE = yes
+XGETTEXT = /usr/bin/xgettext
+XGETTEXT_015 = /usr/bin/xgettext
+XGETTEXT_EXTRA_OPTIONS =
+XMKMF =
+XMLGRAPHICS_COMMONS = /home/shashank/scilab-master_5.5.2/thirdparty/xmlgraphics-commons-1.4.jar
+XML_APIS_EXT = /home/shashank/scilab-master_5.5.2/thirdparty/xml-apis-ext.jar
+XML_CONFIG = /home/shashank/scilab-master_5.5.2/usr/bin/xml2-config
+XML_FLAGS = -I/home/shashank/scilab-master_5.5.2/usr/include/libxml2
+XML_LIBS = -L/home/shashank/scilab-master_5.5.2/usr/lib -lxml2 -L/home/scilab/work/linux-prerequisites-sources/trunk/Dev-Tools/SE/Prerequirements/linux_x64/usr/lib -lz -lm -ldl
+XML_VERSION = 2.9.1
+X_CFLAGS =
+X_EXTRA_LIBS =
+X_LIBS =
+X_PRE_LIBS =
+abs_builddir = /home/shashank/scilab-master_5.5.2/contrib
+abs_srcdir = /home/shashank/scilab-master_5.5.2/contrib
+abs_top_builddir = /home/shashank/scilab-master_5.5.2
+abs_top_srcdir = /home/shashank/scilab-master_5.5.2
+ac_ct_AR = ar
+ac_ct_CC = gcc
+ac_ct_CXX = g++
+ac_ct_DUMPBIN =
+ac_ct_F77 = gfortran
+am__include = include
+am__leading_dot = .
+am__quote =
+am__tar = $${TAR-tar} chof - "$$tardir"
+am__untar = $${TAR-tar} xf -
+bindir = ${exec_prefix}/bin
+build = x86_64-unknown-linux-gnu
+build_alias =
+build_cpu = x86_64
+build_os = linux-gnu
+build_vendor = unknown
+builddir = .
+cxx_present = yes
+datadir = ${datarootdir}
+datarootdir = ${prefix}/share
+docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
+dvidir = ${docdir}
+exec_prefix = ${prefix}
+host = x86_64-unknown-linux-gnu
+host_alias =
+host_cpu = x86_64
+host_os = linux-gnu
+host_vendor = unknown
+htmldir = ${docdir}
+includedir = ${prefix}/include
+infodir = ${datarootdir}/info
+install_sh = ${SHELL} /home/shashank/scilab-master_5.5.2/config/install-sh
+libdir = ${exec_prefix}/lib
+libexecdir = ${exec_prefix}/libexec
+localedir = ${datarootdir}/locale
+localstatedir = ${prefix}/var
+mandir = ${datarootdir}/man
+mkdir_p = $(MKDIR_P)
+oldincludedir = /usr/include
+pdfdir = ${docdir}
+prefix = /usr/local
+program_transform_name = s,x,x,
+psdir = ${docdir}
+sbindir = ${exec_prefix}/sbin
+sharedstatedir = ${prefix}/com
+srcdir = .
+sysconfdir = ${prefix}/etc
+target_alias =
+top_build_prefix = ../
+top_builddir = ..
+top_srcdir = ..
+SKELETON_FILES = loader.sce \
+toolbox_skeleton/builder.sce \
+toolbox_skeleton/changelog.txt \
+toolbox_skeleton/demos/cpp_find.dem.sce \
+toolbox_skeleton/demos/c_sum.dem.sce \
+toolbox_skeleton/demos/fortran_sum.dem.sce \
+toolbox_skeleton/demos/scilab_sum.dem.sce \
+toolbox_skeleton/demos/toolbox_skeleton.dem.gateway.sce \
+toolbox_skeleton/DESCRIPTION \
+toolbox_skeleton/DESCRIPTION-FUNCTIONS \
+toolbox_skeleton/etc/toolbox_skeleton_preferences.xml \
+toolbox_skeleton/etc/toolbox_skeleton_preferences.xsl \
+toolbox_skeleton/etc/toolbox_skeleton.quit \
+toolbox_skeleton/etc/toolbox_skeleton.start \
+toolbox_skeleton/help/builder_help.sce \
+toolbox_skeleton/help/cleaner_help.sce \
+toolbox_skeleton/help/en_US/build_help.sce \
+toolbox_skeleton/help/en_US/c_multiplybypi.xml \
+toolbox_skeleton/help/en_US/c_sub.xml \
+toolbox_skeleton/help/en_US/c_sum.xml \
+toolbox_skeleton/help/en_US/fortran_sum.xml \
+toolbox_skeleton/help/en_US/scilab_sum.xml \
+toolbox_skeleton/help/fr_FR/build_help.sce \
+toolbox_skeleton/help/fr_FR/c_multiplybypi.xml \
+toolbox_skeleton/help/fr_FR/c_sub.xml \
+toolbox_skeleton/help/fr_FR/c_sum.xml \
+toolbox_skeleton/help/fr_FR/fortran_sum.xml \
+toolbox_skeleton/help/fr_FR/scilab_sum.xml \
+toolbox_skeleton/license.txt \
+toolbox_skeleton/locales/en_US.po \
+toolbox_skeleton/locales/fr_FR.po \
+toolbox_skeleton/macros/buildmacros.sce \
+toolbox_skeleton/macros/cleanmacros.sce \
+toolbox_skeleton/macros/scilab_error.sci \
+toolbox_skeleton/macros/scilab_sum.sci \
+toolbox_skeleton/readme.txt \
+toolbox_skeleton/sci_gateway/builder_gateway.sce \
+toolbox_skeleton/sci_gateway/c/builder_gateway_c.sce \
+toolbox_skeleton/sci_gateway/cpp/builder_gateway_cpp.sce \
+toolbox_skeleton/sci_gateway/cpp/sci_cpp_find.cxx \
+toolbox_skeleton/sci_gateway/c/sci_cerror.c \
+toolbox_skeleton/sci_gateway/c/sci_csub.c \
+toolbox_skeleton/sci_gateway/c/sci_csum.c \
+toolbox_skeleton/sci_gateway/c/sci_foo.c \
+toolbox_skeleton/sci_gateway/c/sci_multiplybypi.c \
+toolbox_skeleton/sci_gateway/fortran/builder_gateway_fortran.sce \
+toolbox_skeleton/sci_gateway/fortran/sci_fsum.c \
+toolbox_skeleton/src/builder_src.sce \
+toolbox_skeleton/src/c/builder_c.sce \
+toolbox_skeleton/src/c/csub.c \
+toolbox_skeleton/src/c/csub.h \
+toolbox_skeleton/src/c/csum.c \
+toolbox_skeleton/src/c/csum.h \
+toolbox_skeleton/src/cleaner_src.sce \
+toolbox_skeleton/src/c/multiplybypi.c \
+toolbox_skeleton/src/c/multiplybypi.h \
+toolbox_skeleton/src/fortran/builder_fortran.sce \
+toolbox_skeleton/src/fortran/fsum.f \
+toolbox_skeleton/src/java/builder_java.sce \
+toolbox_skeleton/src/java/org/scilab/contrib/toolboxskeleton/Sum.java \
+toolbox_skeleton/tests/unit_tests/c_sum.dia.ref \
+toolbox_skeleton/tests/unit_tests/c_sum.tst \
+toolbox_skeleton/tests/unit_tests/fortran_sum.dia.ref \
+toolbox_skeleton/tests/unit_tests/fortran_sum.tst \
+toolbox_skeleton/tests/unit_tests/java_sum.dia.ref \
+toolbox_skeleton/tests/unit_tests/java_sum.tst \
+toolbox_skeleton/tests/unit_tests/scilab_sum.dia.ref \
+toolbox_skeleton/tests/unit_tests/scilab_sum.tst \
+toolbox_skeleton/toolbox_skeleton_redist.iss \
+xcos_toolbox_skeleton/builder.sce \
+xcos_toolbox_skeleton/changelog.txt \
+xcos_toolbox_skeleton/demos/allSum.dem.sce \
+xcos_toolbox_skeleton/demos/Blocks.zcos \
+xcos_toolbox_skeleton/demos/xcos_toolbox_skeleton.dem.gateway.sce \
+xcos_toolbox_skeleton/DESCRIPTION \
+xcos_toolbox_skeleton/DESCRIPTION-FUNCTIONS \
+xcos_toolbox_skeleton/etc/xcos_toolbox_skeleton.quit \
+xcos_toolbox_skeleton/etc/xcos_toolbox_skeleton.start \
+xcos_toolbox_skeleton/examples/AllSum.zcos \
+xcos_toolbox_skeleton/help/builder_help.sce \
+xcos_toolbox_skeleton/help/cleaner_help.sce \
+xcos_toolbox_skeleton/help/en_US/available_blocks.xml \
+xcos_toolbox_skeleton/help/en_US/build_help.sce \
+xcos_toolbox_skeleton/help/en_US/TBX_SUM_c.xml \
+xcos_toolbox_skeleton/help/en_US/tbx_sum.xml \
+xcos_toolbox_skeleton/help/fr_FR/build_help.sce \
+xcos_toolbox_skeleton/images/gif/TBX_MUT_STYLE.gif \
+xcos_toolbox_skeleton/images/gif/TBX_NOOP.gif \
+xcos_toolbox_skeleton/images/gif/TBX_SUM_c.gif \
+xcos_toolbox_skeleton/images/gif/TBX_SUM_modelica.gif \
+xcos_toolbox_skeleton/images/gif/TBX_SUM_sci.gif \
+xcos_toolbox_skeleton/images/svg/TBX_MUT_STYLE.svg \
+xcos_toolbox_skeleton/images/svg/TBX_NOOP.svg \
+xcos_toolbox_skeleton/images/svg/TBX_SUM_c.svg \
+xcos_toolbox_skeleton/images/svg/TBX_SUM_modelica.svg \
+xcos_toolbox_skeleton/images/svg/TBX_SUM_sci.svg \
+xcos_toolbox_skeleton/license.txt \
+xcos_toolbox_skeleton/macros/buildmacros.sce \
+xcos_toolbox_skeleton/macros/cleanmacros.sce \
+xcos_toolbox_skeleton/macros/TBX_MUT_STYLE.sci \
+xcos_toolbox_skeleton/macros/TBX_NOOP.sci \
+xcos_toolbox_skeleton/macros/TBX_NOOP_sci.sci \
+xcos_toolbox_skeleton/macros/TBX_NOOP_sim.sci \
+xcos_toolbox_skeleton/macros/TBX_SUM_c.sci \
+xcos_toolbox_skeleton/macros/TBX_SUM_modelica.sci \
+xcos_toolbox_skeleton/macros/TBX_SUM_sci.sci \
+xcos_toolbox_skeleton/macros/TBX_SUM_sim.sci \
+xcos_toolbox_skeleton/macros/XcosToolboxSkeleton.mo \
+xcos_toolbox_skeleton/sci_gateway/builder_gateway.sce \
+xcos_toolbox_skeleton/sci_gateway/c/builder_gateway_c.sce \
+xcos_toolbox_skeleton/sci_gateway/c/sci_tbx_sum.c \
+xcos_toolbox_skeleton/sci_gateway/loader_gateway.sce \
+xcos_toolbox_skeleton/src/builder_src.sce \
+xcos_toolbox_skeleton/src/c/block_sum.c \
+xcos_toolbox_skeleton/src/c/builder_c.sce \
+xcos_toolbox_skeleton/src/c/business.h \
+xcos_toolbox_skeleton/src/c/business_sum.c \
+xcos_toolbox_skeleton/src/cleaner_src.sce \
+xcos_toolbox_skeleton/src/c/tbx_block_noop.c \
+xcos_toolbox_skeleton/tests/benchmark/noop_matrices_c.tst \
+xcos_toolbox_skeleton/tests/benchmark/noop_matrices_scilab.tst \
+xcos_toolbox_skeleton/tests/benchmark/noop_matrices.zcos \
+xcos_toolbox_skeleton/tests/benchmark/noop_scalar_c.tst \
+xcos_toolbox_skeleton/tests/benchmark/noop_scalar_scilab.tst \
+xcos_toolbox_skeleton/tests/benchmark/noop_scalar.zcos \
+xcos_toolbox_skeleton/tests/unit_tests/tbx_sum.dia.ref \
+xcos_toolbox_skeleton/tests/unit_tests/tbx_sum.tst
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in: # $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign contrib/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --foreign contrib/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: # $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): # $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+ else \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ if test -z '$(STRIP)'; then \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ install; \
+ else \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+ fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+ -rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am: install-data-local
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool \
+ mostlyclean-local
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+ cscopelist-am ctags-am distclean distclean-generic \
+ distclean-libtool distdir dvi dvi-am html html-am info info-am \
+ install install-am install-data install-data-am \
+ install-data-local install-dvi install-dvi-am install-exec \
+ install-exec-am install-html install-html-am install-info \
+ install-info-am install-man install-pdf install-pdf-am \
+ install-ps install-ps-am install-strip installcheck \
+ installcheck-am installdirs maintainer-clean \
+ maintainer-clean-generic mostlyclean mostlyclean-generic \
+ mostlyclean-libtool mostlyclean-local pdf pdf-am ps ps-am \
+ tags-am uninstall uninstall-am
+
+
+install-data-local:
+ $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgdatadir)/contrib/; \
+ $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgdatadir)/contrib/toolbox_skeleton; \
+ $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgdatadir)/contrib/xcos_toolbox_skeleton; \
+ for file in $(SKELETON_FILES) ; do \
+ filePath=`dirname $(DESTDIR)$(pkgdatadir)/contrib/$$file`; \
+ echo "$(mkinstalldirs) -m 755 $$filePath/"; \
+ $(mkinstalldirs) -m 755 $$filePath/; \
+ echo "$(INSTALL_DATA) $$file $$filePath" ; \
+ $(INSTALL_DATA) "$$file" $$filePath; \
+ done
+
+mostlyclean-local:
+ rm -rf archives \
+ toolbox_skeleton/cleaner.sce \
+ toolbox_skeleton/help/*/master_help.xml \
+ toolbox_skeleton/help/*/scilab_*_help \
+ toolbox_skeleton/jar \
+ toolbox_skeleton/loader.sce \
+ toolbox_skeleton/macros/lib \
+ toolbox_skeleton/macros/names \
+ toolbox_skeleton/sci_gateway/cpp/cleaner.sce \
+ toolbox_skeleton/sci_gateway/cpp/libskeleton_cpp.c \
+ toolbox_skeleton/sci_gateway/cpp/libskeleton_cpp.* \
+ toolbox_skeleton/sci_gateway/cpp/loader.sce \
+ toolbox_skeleton/sci_gateway/c/cleaner.sce \
+ toolbox_skeleton/sci_gateway/cleaner_gateway.sce \
+ toolbox_skeleton/sci_gateway/c/libskeleton_c.c \
+ toolbox_skeleton/sci_gateway/c/libskeleton_c.* \
+ toolbox_skeleton/sci_gateway/c/loader.sce \
+ toolbox_skeleton/sci_gateway/fortran/cleaner.sce \
+ toolbox_skeleton/sci_gateway/fortran/libskeleton_fortran.c \
+ toolbox_skeleton/sci_gateway/fortran/libskeleton_fortran.* \
+ toolbox_skeleton/sci_gateway/fortran/loader.sce \
+ toolbox_skeleton/sci_gateway/loader_gateway.sce \
+ toolbox_skeleton/src/c/cleaner.sce \
+ toolbox_skeleton/src/c/libcsum.* \
+ toolbox_skeleton/src/c/loader.sce \
+ toolbox_skeleton/src/fortran/cleaner.sce \
+ toolbox_skeleton/src/fortran/libfsum.* \
+ toolbox_skeleton/src/fortran/loader.sce \
+ toolbox_skeleton/unloader.sce \
+ xcos_toolbox_skeleton/cleaner.sce \
+ xcos_toolbox_skeleton/help/*/master_help.xml \
+ xcos_toolbox_skeleton/help/*/scilab_*_help \
+ xcos_toolbox_skeleton/jar \
+ xcos_toolbox_skeleton/loader.sce \
+ xcos_toolbox_skeleton/macros/lib \
+ xcos_toolbox_skeleton/macros/names \
+ xcos_toolbox_skeleton/sci_gateway/cleaner.sce \
+ xcos_toolbox_skeleton/sci_gateway/cleaner_gateway.sce \
+ xcos_toolbox_skeleton/sci_gateway/c/lib \
+ xcos_toolbox_skeleton/sci_gateway/c/libskeleton_c.c \
+ xcos_toolbox_skeleton/sci_gateway/c/loader.sce \
+ xcos_toolbox_skeleton/sci_gateway/c/cleaner.sce \
+ xcos_toolbox_skeleton/sci_gateway/c/libxcos_toolbox_skeleton_c.c \
+ xcos_toolbox_skeleton/sci_gateway/c/libxcos_toolbox_skeleton_c.* \
+ xcos_toolbox_skeleton/src/c/cleaner.sce \
+ xcos_toolbox_skeleton/src/c/libxcos_tbx_skel.* \
+ xcos_toolbox_skeleton/src/c/loader.sce \
+ xcos_toolbox_skeleton/unloader.sce
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/contrib/Makefile.am b/contrib/Makefile.am
new file mode 100755
index 000000000..2ed173b31
--- /dev/null
+++ b/contrib/Makefile.am
@@ -0,0 +1,197 @@
+# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+# Copyright (C) 2008 - DIGITEO - Sylvestre LEDRU
+# Copyright (C) 2014 - Scilab Enterprises - Clement DAVID
+#
+# This file is distributed under the same license as the Scilab package.
+
+# Install the contrib_skeleton directory (the template)
+
+SKELETON_FILES=loader.sce \
+toolbox_skeleton/builder.sce \
+toolbox_skeleton/changelog.txt \
+toolbox_skeleton/demos/cpp_find.dem.sce \
+toolbox_skeleton/demos/c_sum.dem.sce \
+toolbox_skeleton/demos/fortran_sum.dem.sce \
+toolbox_skeleton/demos/scilab_sum.dem.sce \
+toolbox_skeleton/demos/toolbox_skeleton.dem.gateway.sce \
+toolbox_skeleton/DESCRIPTION \
+toolbox_skeleton/DESCRIPTION-FUNCTIONS \
+toolbox_skeleton/etc/toolbox_skeleton_preferences.xml \
+toolbox_skeleton/etc/toolbox_skeleton_preferences.xsl \
+toolbox_skeleton/etc/toolbox_skeleton.quit \
+toolbox_skeleton/etc/toolbox_skeleton.start \
+toolbox_skeleton/help/builder_help.sce \
+toolbox_skeleton/help/cleaner_help.sce \
+toolbox_skeleton/help/en_US/build_help.sce \
+toolbox_skeleton/help/en_US/c_multiplybypi.xml \
+toolbox_skeleton/help/en_US/c_sub.xml \
+toolbox_skeleton/help/en_US/c_sum.xml \
+toolbox_skeleton/help/en_US/fortran_sum.xml \
+toolbox_skeleton/help/en_US/scilab_sum.xml \
+toolbox_skeleton/help/fr_FR/build_help.sce \
+toolbox_skeleton/help/fr_FR/c_multiplybypi.xml \
+toolbox_skeleton/help/fr_FR/c_sub.xml \
+toolbox_skeleton/help/fr_FR/c_sum.xml \
+toolbox_skeleton/help/fr_FR/fortran_sum.xml \
+toolbox_skeleton/help/fr_FR/scilab_sum.xml \
+toolbox_skeleton/license.txt \
+toolbox_skeleton/locales/en_US.po \
+toolbox_skeleton/locales/fr_FR.po \
+toolbox_skeleton/macros/buildmacros.sce \
+toolbox_skeleton/macros/cleanmacros.sce \
+toolbox_skeleton/macros/scilab_error.sci \
+toolbox_skeleton/macros/scilab_sum.sci \
+toolbox_skeleton/readme.txt \
+toolbox_skeleton/sci_gateway/builder_gateway.sce \
+toolbox_skeleton/sci_gateway/c/builder_gateway_c.sce \
+toolbox_skeleton/sci_gateway/cpp/builder_gateway_cpp.sce \
+toolbox_skeleton/sci_gateway/cpp/sci_cpp_find.cxx \
+toolbox_skeleton/sci_gateway/c/sci_cerror.c \
+toolbox_skeleton/sci_gateway/c/sci_csub.c \
+toolbox_skeleton/sci_gateway/c/sci_csum.c \
+toolbox_skeleton/sci_gateway/c/sci_foo.c \
+toolbox_skeleton/sci_gateway/c/sci_multiplybypi.c \
+toolbox_skeleton/sci_gateway/fortran/builder_gateway_fortran.sce \
+toolbox_skeleton/sci_gateway/fortran/sci_fsum.c \
+toolbox_skeleton/src/builder_src.sce \
+toolbox_skeleton/src/c/builder_c.sce \
+toolbox_skeleton/src/c/csub.c \
+toolbox_skeleton/src/c/csub.h \
+toolbox_skeleton/src/c/csum.c \
+toolbox_skeleton/src/c/csum.h \
+toolbox_skeleton/src/cleaner_src.sce \
+toolbox_skeleton/src/c/multiplybypi.c \
+toolbox_skeleton/src/c/multiplybypi.h \
+toolbox_skeleton/src/fortran/builder_fortran.sce \
+toolbox_skeleton/src/fortran/fsum.f \
+toolbox_skeleton/src/java/builder_java.sce \
+toolbox_skeleton/src/java/org/scilab/contrib/toolboxskeleton/Sum.java \
+toolbox_skeleton/tests/unit_tests/c_sum.dia.ref \
+toolbox_skeleton/tests/unit_tests/c_sum.tst \
+toolbox_skeleton/tests/unit_tests/fortran_sum.dia.ref \
+toolbox_skeleton/tests/unit_tests/fortran_sum.tst \
+toolbox_skeleton/tests/unit_tests/java_sum.dia.ref \
+toolbox_skeleton/tests/unit_tests/java_sum.tst \
+toolbox_skeleton/tests/unit_tests/scilab_sum.dia.ref \
+toolbox_skeleton/tests/unit_tests/scilab_sum.tst \
+toolbox_skeleton/toolbox_skeleton_redist.iss \
+xcos_toolbox_skeleton/builder.sce \
+xcos_toolbox_skeleton/changelog.txt \
+xcos_toolbox_skeleton/demos/allSum.dem.sce \
+xcos_toolbox_skeleton/demos/Blocks.zcos \
+xcos_toolbox_skeleton/demos/xcos_toolbox_skeleton.dem.gateway.sce \
+xcos_toolbox_skeleton/DESCRIPTION \
+xcos_toolbox_skeleton/DESCRIPTION-FUNCTIONS \
+xcos_toolbox_skeleton/etc/xcos_toolbox_skeleton.quit \
+xcos_toolbox_skeleton/etc/xcos_toolbox_skeleton.start \
+xcos_toolbox_skeleton/examples/AllSum.zcos \
+xcos_toolbox_skeleton/help/builder_help.sce \
+xcos_toolbox_skeleton/help/cleaner_help.sce \
+xcos_toolbox_skeleton/help/en_US/available_blocks.xml \
+xcos_toolbox_skeleton/help/en_US/build_help.sce \
+xcos_toolbox_skeleton/help/en_US/TBX_SUM_c.xml \
+xcos_toolbox_skeleton/help/en_US/tbx_sum.xml \
+xcos_toolbox_skeleton/help/fr_FR/build_help.sce \
+xcos_toolbox_skeleton/images/gif/TBX_MUT_STYLE.gif \
+xcos_toolbox_skeleton/images/gif/TBX_NOOP.gif \
+xcos_toolbox_skeleton/images/gif/TBX_SUM_c.gif \
+xcos_toolbox_skeleton/images/gif/TBX_SUM_modelica.gif \
+xcos_toolbox_skeleton/images/gif/TBX_SUM_sci.gif \
+xcos_toolbox_skeleton/images/svg/TBX_MUT_STYLE.svg \
+xcos_toolbox_skeleton/images/svg/TBX_NOOP.svg \
+xcos_toolbox_skeleton/images/svg/TBX_SUM_c.svg \
+xcos_toolbox_skeleton/images/svg/TBX_SUM_modelica.svg \
+xcos_toolbox_skeleton/images/svg/TBX_SUM_sci.svg \
+xcos_toolbox_skeleton/license.txt \
+xcos_toolbox_skeleton/macros/buildmacros.sce \
+xcos_toolbox_skeleton/macros/cleanmacros.sce \
+xcos_toolbox_skeleton/macros/TBX_MUT_STYLE.sci \
+xcos_toolbox_skeleton/macros/TBX_NOOP.sci \
+xcos_toolbox_skeleton/macros/TBX_NOOP_sci.sci \
+xcos_toolbox_skeleton/macros/TBX_NOOP_sim.sci \
+xcos_toolbox_skeleton/macros/TBX_SUM_c.sci \
+xcos_toolbox_skeleton/macros/TBX_SUM_modelica.sci \
+xcos_toolbox_skeleton/macros/TBX_SUM_sci.sci \
+xcos_toolbox_skeleton/macros/TBX_SUM_sim.sci \
+xcos_toolbox_skeleton/macros/XcosToolboxSkeleton.mo \
+xcos_toolbox_skeleton/sci_gateway/builder_gateway.sce \
+xcos_toolbox_skeleton/sci_gateway/c/builder_gateway_c.sce \
+xcos_toolbox_skeleton/sci_gateway/c/sci_tbx_sum.c \
+xcos_toolbox_skeleton/sci_gateway/loader_gateway.sce \
+xcos_toolbox_skeleton/src/builder_src.sce \
+xcos_toolbox_skeleton/src/c/block_sum.c \
+xcos_toolbox_skeleton/src/c/builder_c.sce \
+xcos_toolbox_skeleton/src/c/business.h \
+xcos_toolbox_skeleton/src/c/business_sum.c \
+xcos_toolbox_skeleton/src/cleaner_src.sce \
+xcos_toolbox_skeleton/src/c/tbx_block_noop.c \
+xcos_toolbox_skeleton/tests/benchmark/noop_matrices_c.tst \
+xcos_toolbox_skeleton/tests/benchmark/noop_matrices_scilab.tst \
+xcos_toolbox_skeleton/tests/benchmark/noop_matrices.zcos \
+xcos_toolbox_skeleton/tests/benchmark/noop_scalar_c.tst \
+xcos_toolbox_skeleton/tests/benchmark/noop_scalar_scilab.tst \
+xcos_toolbox_skeleton/tests/benchmark/noop_scalar.zcos \
+xcos_toolbox_skeleton/tests/unit_tests/tbx_sum.dia.ref \
+xcos_toolbox_skeleton/tests/unit_tests/tbx_sum.tst
+
+install-data-local:
+ $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgdatadir)/contrib/; \
+ $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgdatadir)/contrib/toolbox_skeleton; \
+ $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgdatadir)/contrib/xcos_toolbox_skeleton; \
+ for file in $(SKELETON_FILES) ; do \
+ filePath=`dirname $(DESTDIR)$(pkgdatadir)/contrib/$$file`; \
+ echo "$(mkinstalldirs) -m 755 $$filePath/"; \
+ $(mkinstalldirs) -m 755 $$filePath/; \
+ echo "$(INSTALL_DATA) $$file $$filePath" ; \
+ $(INSTALL_DATA) "$$file" $$filePath; \
+ done
+
+mostlyclean-local:
+ rm -rf archives \
+ toolbox_skeleton/cleaner.sce \
+ toolbox_skeleton/help/*/master_help.xml \
+ toolbox_skeleton/help/*/scilab_*_help \
+ toolbox_skeleton/jar \
+ toolbox_skeleton/loader.sce \
+ toolbox_skeleton/macros/lib \
+ toolbox_skeleton/macros/names \
+ toolbox_skeleton/sci_gateway/cpp/cleaner.sce \
+ toolbox_skeleton/sci_gateway/cpp/libskeleton_cpp.c \
+ toolbox_skeleton/sci_gateway/cpp/libskeleton_cpp.* \
+ toolbox_skeleton/sci_gateway/cpp/loader.sce \
+ toolbox_skeleton/sci_gateway/c/cleaner.sce \
+ toolbox_skeleton/sci_gateway/cleaner_gateway.sce \
+ toolbox_skeleton/sci_gateway/c/libskeleton_c.c \
+ toolbox_skeleton/sci_gateway/c/libskeleton_c.* \
+ toolbox_skeleton/sci_gateway/c/loader.sce \
+ toolbox_skeleton/sci_gateway/fortran/cleaner.sce \
+ toolbox_skeleton/sci_gateway/fortran/libskeleton_fortran.c \
+ toolbox_skeleton/sci_gateway/fortran/libskeleton_fortran.* \
+ toolbox_skeleton/sci_gateway/fortran/loader.sce \
+ toolbox_skeleton/sci_gateway/loader_gateway.sce \
+ toolbox_skeleton/src/c/cleaner.sce \
+ toolbox_skeleton/src/c/libcsum.* \
+ toolbox_skeleton/src/c/loader.sce \
+ toolbox_skeleton/src/fortran/cleaner.sce \
+ toolbox_skeleton/src/fortran/libfsum.* \
+ toolbox_skeleton/src/fortran/loader.sce \
+ toolbox_skeleton/unloader.sce \
+ xcos_toolbox_skeleton/cleaner.sce \
+ xcos_toolbox_skeleton/help/*/master_help.xml \
+ xcos_toolbox_skeleton/help/*/scilab_*_help \
+ xcos_toolbox_skeleton/jar \
+ xcos_toolbox_skeleton/loader.sce \
+ xcos_toolbox_skeleton/macros/lib \
+ xcos_toolbox_skeleton/macros/names \
+ xcos_toolbox_skeleton/sci_gateway/cleaner.sce \
+ xcos_toolbox_skeleton/sci_gateway/cleaner_gateway.sce \
+ xcos_toolbox_skeleton/sci_gateway/c/lib \
+ xcos_toolbox_skeleton/sci_gateway/c/libskeleton_c.c \
+ xcos_toolbox_skeleton/sci_gateway/c/loader.sce \
+ xcos_toolbox_skeleton/sci_gateway/c/cleaner.sce \
+ xcos_toolbox_skeleton/sci_gateway/c/libxcos_toolbox_skeleton_c.c \
+ xcos_toolbox_skeleton/sci_gateway/c/libxcos_toolbox_skeleton_c.* \
+ xcos_toolbox_skeleton/src/c/cleaner.sce \
+ xcos_toolbox_skeleton/src/c/libxcos_tbx_skel.* \
+ xcos_toolbox_skeleton/src/c/loader.sce \
+ xcos_toolbox_skeleton/unloader.sce
diff --git a/contrib/Makefile.in b/contrib/Makefile.in
new file mode 100755
index 000000000..078b59cd0
--- /dev/null
+++ b/contrib/Makefile.in
@@ -0,0 +1,797 @@
+# Makefile.in generated by automake 1.14.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2013 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+# Copyright (C) 2008 - DIGITEO - Sylvestre LEDRU
+# Copyright (C) 2014 - Scilab Enterprises - Clement DAVID
+#
+# This file is distributed under the same license as the Scilab package.
+
+# Install the contrib_skeleton directory (the template)
+VPATH = @srcdir@
+am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
+am__make_running_with_option = \
+ case $${target_option-} in \
+ ?) ;; \
+ *) echo "am__make_running_with_option: internal error: invalid" \
+ "target option '$${target_option-}' specified" >&2; \
+ exit 1;; \
+ esac; \
+ has_opt=no; \
+ sane_makeflags=$$MAKEFLAGS; \
+ if $(am__is_gnu_make); then \
+ sane_makeflags=$$MFLAGS; \
+ else \
+ case $$MAKEFLAGS in \
+ *\\[\ \ ]*) \
+ bs=\\; \
+ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
+ esac; \
+ fi; \
+ skip_next=no; \
+ strip_trailopt () \
+ { \
+ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+ }; \
+ for flg in $$sane_makeflags; do \
+ test $$skip_next = yes && { skip_next=no; continue; }; \
+ case $$flg in \
+ *=*|--*) continue;; \
+ -*I) strip_trailopt 'I'; skip_next=yes;; \
+ -*I?*) strip_trailopt 'I';; \
+ -*O) strip_trailopt 'O'; skip_next=yes;; \
+ -*O?*) strip_trailopt 'O';; \
+ -*l) strip_trailopt 'l'; skip_next=yes;; \
+ -*l?*) strip_trailopt 'l';; \
+ -[dEDm]) skip_next=yes;; \
+ -[JT]) skip_next=yes;; \
+ esac; \
+ case $$flg in \
+ *$$target_option*) has_opt=yes; break;; \
+ esac; \
+ done; \
+ test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+subdir = contrib
+DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
+ $(top_srcdir)/config/mkinstalldirs
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/backtrace.m4 \
+ $(top_srcdir)/m4/compiler.m4 $(top_srcdir)/m4/curl.m4 \
+ $(top_srcdir)/m4/docbook.m4 $(top_srcdir)/m4/doxygen.m4 \
+ $(top_srcdir)/m4/fftw.m4 $(top_srcdir)/m4/fortran.m4 \
+ $(top_srcdir)/m4/giws.m4 $(top_srcdir)/m4/hdf5.m4 \
+ $(top_srcdir)/m4/intel_compiler.m4 \
+ $(top_srcdir)/m4/java-thirdparty.m4 $(top_srcdir)/m4/java.m4 \
+ $(top_srcdir)/m4/largefile.m4 $(top_srcdir)/m4/lib-ld.m4 \
+ $(top_srcdir)/m4/libsmath.m4 $(top_srcdir)/m4/libtool.m4 \
+ $(top_srcdir)/m4/libxml2.m4 $(top_srcdir)/m4/ltoptions.m4 \
+ $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
+ $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/macosx.m4 \
+ $(top_srcdir)/m4/mpi.m4 $(top_srcdir)/m4/ocaml.m4 \
+ $(top_srcdir)/m4/pcre.m4 $(top_srcdir)/m4/pkg.m4 \
+ $(top_srcdir)/m4/relocatable.m4 $(top_srcdir)/m4/swig.m4 \
+ $(top_srcdir)/m4/symlinks.m4 $(top_srcdir)/m4/tcltk.m4 \
+ $(top_srcdir)/m4/umfpack.m4 $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/modules/core/includes/machine.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+AM_V_P = $(am__v_P_@AM_V@)
+am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
+am__v_P_0 = false
+am__v_P_1 = :
+AM_V_GEN = $(am__v_GEN_@AM_V@)
+am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
+am__v_GEN_0 = @echo " GEN " $@;
+am__v_GEN_1 =
+AM_V_at = $(am__v_at_@AM_V@)
+am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
+am__v_at_0 = @
+am__v_at_1 =
+SOURCES =
+DIST_SOURCES =
+am__can_run_installinfo = \
+ case $$AM_UPDATE_INFO_DIR in \
+ n|no|NO) false;; \
+ *) (install-info --version) >/dev/null 2>&1;; \
+ esac
+am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+ACLOCAL = @ACLOCAL@
+ALL_LINGUAS = @ALL_LINGUAS@
+ALL_LINGUAS_DOC = @ALL_LINGUAS_DOC@
+AMTAR = @AMTAR@
+AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
+ANT = @ANT@
+ANTLR = @ANTLR@
+AR = @AR@
+ARPACK_LIBS = @ARPACK_LIBS@
+ASM3 = @ASM3@
+AUTOCONF = @AUTOCONF@
+AUTOHEADER = @AUTOHEADER@
+AUTOMAKE = @AUTOMAKE@
+AVALON_FRAMEWORK = @AVALON_FRAMEWORK@
+AWK = @AWK@
+BATIK = @BATIK@
+BLAS_LIBS = @BLAS_LIBS@
+CC = @CC@
+CCACHE = @CCACHE@
+CCDEPMODE = @CCDEPMODE@
+CFLAGS = @CFLAGS@
+CHECKSTYLE = @CHECKSTYLE@
+COBERTURA = @COBERTURA@
+COMMONS_BEANUTILS = @COMMONS_BEANUTILS@
+COMMONS_IO = @COMMONS_IO@
+COMMONS_LOGGING = @COMMONS_LOGGING@
+CPP = @CPP@
+CPPFLAGS = @CPPFLAGS@
+CURL_CFLAGS = @CURL_CFLAGS@
+CURL_CONFIG = @CURL_CONFIG@
+CURL_LIBS = @CURL_LIBS@
+CURL_VERSION = @CURL_VERSION@
+CXX = @CXX@
+CXXCPP = @CXXCPP@
+CXXDEPMODE = @CXXDEPMODE@
+CXXFLAGS = @CXXFLAGS@
+CYGPATH_W = @CYGPATH_W@
+DEFS = @DEFS@
+DEMOTOOLS_ENABLE = @DEMOTOOLS_ENABLE@
+DEPDIR = @DEPDIR@
+DLLTOOL = @DLLTOOL@
+DOCBOOK_ROOT = @DOCBOOK_ROOT@
+DOXYGEN_BIN = @DOXYGEN_BIN@
+DSYMUTIL = @DSYMUTIL@
+DUMPBIN = @DUMPBIN@
+ECHO_C = @ECHO_C@
+ECHO_N = @ECHO_N@
+ECHO_T = @ECHO_T@
+ECJ = @ECJ@
+EGREP = @EGREP@
+EXEEXT = @EXEEXT@
+F77 = @F77@
+FFLAGS = @FFLAGS@
+FFTW3_LIB = @FFTW3_LIB@
+FFTW_ENABLE = @FFTW_ENABLE@
+FGREP = @FGREP@
+FLEXDOCK = @FLEXDOCK@
+FLIBS = @FLIBS@
+FOP = @FOP@
+FREEHEP_GRAPHICS2D = @FREEHEP_GRAPHICS2D@
+FREEHEP_GRAPHICSIO = @FREEHEP_GRAPHICSIO@
+FREEHEP_GRAPHICSIO_EMF = @FREEHEP_GRAPHICSIO_EMF@
+FREEHEP_IO = @FREEHEP_IO@
+FREEHEP_UTIL = @FREEHEP_UTIL@
+GENHTML = @GENHTML@
+GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
+GIWS_BIN = @GIWS_BIN@
+GLUEGEN2_RT = @GLUEGEN2_RT@
+GMSGFMT = @GMSGFMT@
+GMSGFMT_015 = @GMSGFMT_015@
+GRAPHICS_ENABLE = @GRAPHICS_ENABLE@
+GREP = @GREP@
+GUI_ENABLE = @GUI_ENABLE@
+HDF5_CFLAGS = @HDF5_CFLAGS@
+HDF5_LIBS = @HDF5_LIBS@
+HELP_ENABLE = @HELP_ENABLE@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
+INTLLIBS = @INTLLIBS@
+INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
+JAR = @JAR@
+JAVA = @JAVA@
+JAVAC = @JAVAC@
+JAVAC_DEBUG = @JAVAC_DEBUG@
+JAVADOC = @JAVADOC@
+JAVAH = @JAVAH@
+JAVASCI_ENABLE = @JAVASCI_ENABLE@
+JAVA_ENABLE = @JAVA_ENABLE@
+JAVA_G = @JAVA_G@
+JAVA_HOME = @JAVA_HOME@
+JAVA_JNI_INCLUDE = @JAVA_JNI_INCLUDE@
+JAVA_JNI_LIBS = @JAVA_JNI_LIBS@
+JDB = @JDB@
+JEUCLID_CORE = @JEUCLID_CORE@
+JGRAPHX = @JGRAPHX@
+JHALL = @JHALL@
+JLATEXMATH = @JLATEXMATH@
+JLATEXMATH_FOP = @JLATEXMATH_FOP@
+JOGL2 = @JOGL2@
+JROSETTA_API = @JROSETTA_API@
+JROSETTA_ENGINE = @JROSETTA_ENGINE@
+JUNIT4 = @JUNIT4@
+LAPACK_LIBS = @LAPACK_LIBS@
+LCOV = @LCOV@
+LD = @LD@
+LDFLAGS = @LDFLAGS@
+LIBICONV = @LIBICONV@
+LIBINTL = @LIBINTL@
+LIBM = @LIBM@
+LIBOBJS = @LIBOBJS@
+LIBS = @LIBS@
+LIBTOOL = @LIBTOOL@
+LIPO = @LIPO@
+LN_S = @LN_S@
+LOGGING_LEVEL = @LOGGING_LEVEL@
+LOOKS = @LOOKS@
+LTLIBICONV = @LTLIBICONV@
+LTLIBINTL = @LTLIBINTL@
+LTLIBOBJS = @LTLIBOBJS@
+MAINT = @MAINT@
+MAKEINFO = @MAKEINFO@
+MANIFEST_TOOL = @MANIFEST_TOOL@
+MATIO_CFLAGS = @MATIO_CFLAGS@
+MATIO_ENABLE = @MATIO_ENABLE@
+MATIO_LIBS = @MATIO_LIBS@
+MKDIR_P = @MKDIR_P@
+MPI_ENABLE = @MPI_ENABLE@
+MSGCAT = @MSGCAT@
+MSGFMT = @MSGFMT@
+MSGFMT_015 = @MSGFMT_015@
+MSGMERGE = @MSGMERGE@
+NM = @NM@
+NMEDIT = @NMEDIT@
+OBJDUMP = @OBJDUMP@
+OBJEXT = @OBJEXT@
+OCAMLC = @OCAMLC@
+OCAMLDEP = @OCAMLDEP@
+OCAMLLEX = @OCAMLLEX@
+OCAMLOPT = @OCAMLOPT@
+OCAMLYACC = @OCAMLYACC@
+OPENMPI_CC = @OPENMPI_CC@
+OPENMPI_CFLAGS = @OPENMPI_CFLAGS@
+OPENMPI_CXX = @OPENMPI_CXX@
+OPENMPI_CXXFLAGS = @OPENMPI_CXXFLAGS@
+OPENMPI_LIBS = @OPENMPI_LIBS@
+OPENMP_CFLAGS = @OPENMP_CFLAGS@
+OPENMP_CXXFLAGS = @OPENMP_CXXFLAGS@
+OPENMP_ENABLE = @OPENMP_ENABLE@
+OPENMP_LIBS = @OPENMP_LIBS@
+OTOOL = @OTOOL@
+OTOOL64 = @OTOOL64@
+PACKAGE = @PACKAGE@
+PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
+PACKAGE_NAME = @PACKAGE_NAME@
+PACKAGE_STRING = @PACKAGE_STRING@
+PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+PATH_SEPARATOR = @PATH_SEPARATOR@
+PCRE_CFLAGS = @PCRE_CFLAGS@
+PCRE_CONFIG = @PCRE_CONFIG@
+PCRE_LIBS = @PCRE_LIBS@
+PCRE_VERSION = @PCRE_VERSION@
+PKG_CONFIG = @PKG_CONFIG@
+POSUB = @POSUB@
+POW_LIB = @POW_LIB@
+PYTHON = @PYTHON@
+RANLIB = @RANLIB@
+RELOCATABLE = @RELOCATABLE@
+RT_LIB = @RT_LIB@
+SAXON = @SAXON@
+SCILAB_BINARY_VERSION = @SCILAB_BINARY_VERSION@
+SCILAB_LIBRARY_VERSION = @SCILAB_LIBRARY_VERSION@
+SCILAB_VERSION_MAINTENANCE = @SCILAB_VERSION_MAINTENANCE@
+SCILAB_VERSION_MAJOR = @SCILAB_VERSION_MAJOR@
+SCILAB_VERSION_MINOR = @SCILAB_VERSION_MINOR@
+SCIRENDERER = @SCIRENDERER@
+SCIRENDERER_CP = @SCIRENDERER_CP@
+SCI_CFLAGS = @SCI_CFLAGS@
+SCI_CXXFLAGS = @SCI_CXXFLAGS@
+SCI_FFLAGS = @SCI_FFLAGS@
+SCI_LDFLAGS = @SCI_LDFLAGS@
+SED = @SED@
+SET_MAKE = @SET_MAKE@
+SET_RELOCATABLE = @SET_RELOCATABLE@
+SHELL = @SHELL@
+SKINLF = @SKINLF@
+SPLINT = @SPLINT@
+STRIP = @STRIP@
+SWIG_BIN = @SWIG_BIN@
+SWIG_JAVA = @SWIG_JAVA@
+SWIG_RUNTIME_LIBS_DIR = @SWIG_RUNTIME_LIBS_DIR@
+SWIG_SCILAB = @SWIG_SCILAB@
+TCLTK_LIBS = @TCLTK_LIBS@
+TCL_INC_PATH = @TCL_INC_PATH@
+TK_INC_PATH = @TK_INC_PATH@
+UMFPACK_CFLAGS = @UMFPACK_CFLAGS@
+UMFPACK_ENABLE = @UMFPACK_ENABLE@
+UMFPACK_LIB = @UMFPACK_LIB@
+USE_NLS = @USE_NLS@
+VERSION = @VERSION@
+WITH_OCAML = @WITH_OCAML@
+WITH_TKSCI = @WITH_TKSCI@
+XCOS_ENABLE = @XCOS_ENABLE@
+XGETTEXT = @XGETTEXT@
+XGETTEXT_015 = @XGETTEXT_015@
+XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
+XMKMF = @XMKMF@
+XMLGRAPHICS_COMMONS = @XMLGRAPHICS_COMMONS@
+XML_APIS_EXT = @XML_APIS_EXT@
+XML_CONFIG = @XML_CONFIG@
+XML_FLAGS = @XML_FLAGS@
+XML_LIBS = @XML_LIBS@
+XML_VERSION = @XML_VERSION@
+X_CFLAGS = @X_CFLAGS@
+X_EXTRA_LIBS = @X_EXTRA_LIBS@
+X_LIBS = @X_LIBS@
+X_PRE_LIBS = @X_PRE_LIBS@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
+ac_ct_AR = @ac_ct_AR@
+ac_ct_CC = @ac_ct_CC@
+ac_ct_CXX = @ac_ct_CXX@
+ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
+ac_ct_F77 = @ac_ct_F77@
+am__include = @am__include@
+am__leading_dot = @am__leading_dot@
+am__quote = @am__quote@
+am__tar = @am__tar@
+am__untar = @am__untar@
+bindir = @bindir@
+build = @build@
+build_alias = @build_alias@
+build_cpu = @build_cpu@
+build_os = @build_os@
+build_vendor = @build_vendor@
+builddir = @builddir@
+cxx_present = @cxx_present@
+datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
+exec_prefix = @exec_prefix@
+host = @host@
+host_alias = @host_alias@
+host_cpu = @host_cpu@
+host_os = @host_os@
+host_vendor = @host_vendor@
+htmldir = @htmldir@
+includedir = @includedir@
+infodir = @infodir@
+install_sh = @install_sh@
+libdir = @libdir@
+libexecdir = @libexecdir@
+localedir = @localedir@
+localstatedir = @localstatedir@
+mandir = @mandir@
+mkdir_p = @mkdir_p@
+oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
+prefix = @prefix@
+program_transform_name = @program_transform_name@
+psdir = @psdir@
+sbindir = @sbindir@
+sharedstatedir = @sharedstatedir@
+srcdir = @srcdir@
+sysconfdir = @sysconfdir@
+target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+SKELETON_FILES = loader.sce \
+toolbox_skeleton/builder.sce \
+toolbox_skeleton/changelog.txt \
+toolbox_skeleton/demos/cpp_find.dem.sce \
+toolbox_skeleton/demos/c_sum.dem.sce \
+toolbox_skeleton/demos/fortran_sum.dem.sce \
+toolbox_skeleton/demos/scilab_sum.dem.sce \
+toolbox_skeleton/demos/toolbox_skeleton.dem.gateway.sce \
+toolbox_skeleton/DESCRIPTION \
+toolbox_skeleton/DESCRIPTION-FUNCTIONS \
+toolbox_skeleton/etc/toolbox_skeleton_preferences.xml \
+toolbox_skeleton/etc/toolbox_skeleton_preferences.xsl \
+toolbox_skeleton/etc/toolbox_skeleton.quit \
+toolbox_skeleton/etc/toolbox_skeleton.start \
+toolbox_skeleton/help/builder_help.sce \
+toolbox_skeleton/help/cleaner_help.sce \
+toolbox_skeleton/help/en_US/build_help.sce \
+toolbox_skeleton/help/en_US/c_multiplybypi.xml \
+toolbox_skeleton/help/en_US/c_sub.xml \
+toolbox_skeleton/help/en_US/c_sum.xml \
+toolbox_skeleton/help/en_US/fortran_sum.xml \
+toolbox_skeleton/help/en_US/scilab_sum.xml \
+toolbox_skeleton/help/fr_FR/build_help.sce \
+toolbox_skeleton/help/fr_FR/c_multiplybypi.xml \
+toolbox_skeleton/help/fr_FR/c_sub.xml \
+toolbox_skeleton/help/fr_FR/c_sum.xml \
+toolbox_skeleton/help/fr_FR/fortran_sum.xml \
+toolbox_skeleton/help/fr_FR/scilab_sum.xml \
+toolbox_skeleton/license.txt \
+toolbox_skeleton/locales/en_US.po \
+toolbox_skeleton/locales/fr_FR.po \
+toolbox_skeleton/macros/buildmacros.sce \
+toolbox_skeleton/macros/cleanmacros.sce \
+toolbox_skeleton/macros/scilab_error.sci \
+toolbox_skeleton/macros/scilab_sum.sci \
+toolbox_skeleton/readme.txt \
+toolbox_skeleton/sci_gateway/builder_gateway.sce \
+toolbox_skeleton/sci_gateway/c/builder_gateway_c.sce \
+toolbox_skeleton/sci_gateway/cpp/builder_gateway_cpp.sce \
+toolbox_skeleton/sci_gateway/cpp/sci_cpp_find.cxx \
+toolbox_skeleton/sci_gateway/c/sci_cerror.c \
+toolbox_skeleton/sci_gateway/c/sci_csub.c \
+toolbox_skeleton/sci_gateway/c/sci_csum.c \
+toolbox_skeleton/sci_gateway/c/sci_foo.c \
+toolbox_skeleton/sci_gateway/c/sci_multiplybypi.c \
+toolbox_skeleton/sci_gateway/fortran/builder_gateway_fortran.sce \
+toolbox_skeleton/sci_gateway/fortran/sci_fsum.c \
+toolbox_skeleton/src/builder_src.sce \
+toolbox_skeleton/src/c/builder_c.sce \
+toolbox_skeleton/src/c/csub.c \
+toolbox_skeleton/src/c/csub.h \
+toolbox_skeleton/src/c/csum.c \
+toolbox_skeleton/src/c/csum.h \
+toolbox_skeleton/src/cleaner_src.sce \
+toolbox_skeleton/src/c/multiplybypi.c \
+toolbox_skeleton/src/c/multiplybypi.h \
+toolbox_skeleton/src/fortran/builder_fortran.sce \
+toolbox_skeleton/src/fortran/fsum.f \
+toolbox_skeleton/src/java/builder_java.sce \
+toolbox_skeleton/src/java/org/scilab/contrib/toolboxskeleton/Sum.java \
+toolbox_skeleton/tests/unit_tests/c_sum.dia.ref \
+toolbox_skeleton/tests/unit_tests/c_sum.tst \
+toolbox_skeleton/tests/unit_tests/fortran_sum.dia.ref \
+toolbox_skeleton/tests/unit_tests/fortran_sum.tst \
+toolbox_skeleton/tests/unit_tests/java_sum.dia.ref \
+toolbox_skeleton/tests/unit_tests/java_sum.tst \
+toolbox_skeleton/tests/unit_tests/scilab_sum.dia.ref \
+toolbox_skeleton/tests/unit_tests/scilab_sum.tst \
+toolbox_skeleton/toolbox_skeleton_redist.iss \
+xcos_toolbox_skeleton/builder.sce \
+xcos_toolbox_skeleton/changelog.txt \
+xcos_toolbox_skeleton/demos/allSum.dem.sce \
+xcos_toolbox_skeleton/demos/Blocks.zcos \
+xcos_toolbox_skeleton/demos/xcos_toolbox_skeleton.dem.gateway.sce \
+xcos_toolbox_skeleton/DESCRIPTION \
+xcos_toolbox_skeleton/DESCRIPTION-FUNCTIONS \
+xcos_toolbox_skeleton/etc/xcos_toolbox_skeleton.quit \
+xcos_toolbox_skeleton/etc/xcos_toolbox_skeleton.start \
+xcos_toolbox_skeleton/examples/AllSum.zcos \
+xcos_toolbox_skeleton/help/builder_help.sce \
+xcos_toolbox_skeleton/help/cleaner_help.sce \
+xcos_toolbox_skeleton/help/en_US/available_blocks.xml \
+xcos_toolbox_skeleton/help/en_US/build_help.sce \
+xcos_toolbox_skeleton/help/en_US/TBX_SUM_c.xml \
+xcos_toolbox_skeleton/help/en_US/tbx_sum.xml \
+xcos_toolbox_skeleton/help/fr_FR/build_help.sce \
+xcos_toolbox_skeleton/images/gif/TBX_MUT_STYLE.gif \
+xcos_toolbox_skeleton/images/gif/TBX_NOOP.gif \
+xcos_toolbox_skeleton/images/gif/TBX_SUM_c.gif \
+xcos_toolbox_skeleton/images/gif/TBX_SUM_modelica.gif \
+xcos_toolbox_skeleton/images/gif/TBX_SUM_sci.gif \
+xcos_toolbox_skeleton/images/svg/TBX_MUT_STYLE.svg \
+xcos_toolbox_skeleton/images/svg/TBX_NOOP.svg \
+xcos_toolbox_skeleton/images/svg/TBX_SUM_c.svg \
+xcos_toolbox_skeleton/images/svg/TBX_SUM_modelica.svg \
+xcos_toolbox_skeleton/images/svg/TBX_SUM_sci.svg \
+xcos_toolbox_skeleton/license.txt \
+xcos_toolbox_skeleton/macros/buildmacros.sce \
+xcos_toolbox_skeleton/macros/cleanmacros.sce \
+xcos_toolbox_skeleton/macros/TBX_MUT_STYLE.sci \
+xcos_toolbox_skeleton/macros/TBX_NOOP.sci \
+xcos_toolbox_skeleton/macros/TBX_NOOP_sci.sci \
+xcos_toolbox_skeleton/macros/TBX_NOOP_sim.sci \
+xcos_toolbox_skeleton/macros/TBX_SUM_c.sci \
+xcos_toolbox_skeleton/macros/TBX_SUM_modelica.sci \
+xcos_toolbox_skeleton/macros/TBX_SUM_sci.sci \
+xcos_toolbox_skeleton/macros/TBX_SUM_sim.sci \
+xcos_toolbox_skeleton/macros/XcosToolboxSkeleton.mo \
+xcos_toolbox_skeleton/sci_gateway/builder_gateway.sce \
+xcos_toolbox_skeleton/sci_gateway/c/builder_gateway_c.sce \
+xcos_toolbox_skeleton/sci_gateway/c/sci_tbx_sum.c \
+xcos_toolbox_skeleton/sci_gateway/loader_gateway.sce \
+xcos_toolbox_skeleton/src/builder_src.sce \
+xcos_toolbox_skeleton/src/c/block_sum.c \
+xcos_toolbox_skeleton/src/c/builder_c.sce \
+xcos_toolbox_skeleton/src/c/business.h \
+xcos_toolbox_skeleton/src/c/business_sum.c \
+xcos_toolbox_skeleton/src/cleaner_src.sce \
+xcos_toolbox_skeleton/src/c/tbx_block_noop.c \
+xcos_toolbox_skeleton/tests/benchmark/noop_matrices_c.tst \
+xcos_toolbox_skeleton/tests/benchmark/noop_matrices_scilab.tst \
+xcos_toolbox_skeleton/tests/benchmark/noop_matrices.zcos \
+xcos_toolbox_skeleton/tests/benchmark/noop_scalar_c.tst \
+xcos_toolbox_skeleton/tests/benchmark/noop_scalar_scilab.tst \
+xcos_toolbox_skeleton/tests/benchmark/noop_scalar.zcos \
+xcos_toolbox_skeleton/tests/unit_tests/tbx_sum.dia.ref \
+xcos_toolbox_skeleton/tests/unit_tests/tbx_sum.tst
+
+all: all-am
+
+.SUFFIXES:
+$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
+ @for dep in $?; do \
+ case '$(am__configure_deps)' in \
+ *$$dep*) \
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign contrib/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --foreign contrib/Makefile
+.PRECIOUS: Makefile
+Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
+ @case '$?' in \
+ *config.status*) \
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
+ *) \
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
+ esac;
+
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+
+$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
+$(am__aclocal_m4_deps):
+
+mostlyclean-libtool:
+ -rm -f *.lo
+
+clean-libtool:
+ -rm -rf .libs _libs
+tags TAGS:
+
+ctags CTAGS:
+
+cscope cscopelist:
+
+
+distdir: $(DISTFILES)
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
+ if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
+ else \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
+ || exit 1; \
+ fi; \
+ done
+check-am: all-am
+check: check-am
+all-am: Makefile
+installdirs:
+install: install-am
+install-exec: install-exec-am
+install-data: install-data-am
+uninstall: uninstall-am
+
+install-am: all-am
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
+
+installcheck: installcheck-am
+install-strip:
+ if test -z '$(STRIP)'; then \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ install; \
+ else \
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
+ fi
+mostlyclean-generic:
+
+clean-generic:
+
+distclean-generic:
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
+
+maintainer-clean-generic:
+ @echo "This command is intended for maintainers to use"
+ @echo "it deletes files that may require special tools to rebuild."
+clean: clean-am
+
+clean-am: clean-generic clean-libtool mostlyclean-am
+
+distclean: distclean-am
+ -rm -f Makefile
+distclean-am: clean-am distclean-generic
+
+dvi: dvi-am
+
+dvi-am:
+
+html: html-am
+
+html-am:
+
+info: info-am
+
+info-am:
+
+install-data-am: install-data-local
+
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am:
+
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
+
+install-man:
+
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+ -rm -f Makefile
+maintainer-clean-am: distclean-am maintainer-clean-generic
+
+mostlyclean: mostlyclean-am
+
+mostlyclean-am: mostlyclean-generic mostlyclean-libtool \
+ mostlyclean-local
+
+pdf: pdf-am
+
+pdf-am:
+
+ps: ps-am
+
+ps-am:
+
+uninstall-am:
+
+.MAKE: install-am install-strip
+
+.PHONY: all all-am check check-am clean clean-generic clean-libtool \
+ cscopelist-am ctags-am distclean distclean-generic \
+ distclean-libtool distdir dvi dvi-am html html-am info info-am \
+ install install-am install-data install-data-am \
+ install-data-local install-dvi install-dvi-am install-exec \
+ install-exec-am install-html install-html-am install-info \
+ install-info-am install-man install-pdf install-pdf-am \
+ install-ps install-ps-am install-strip installcheck \
+ installcheck-am installdirs maintainer-clean \
+ maintainer-clean-generic mostlyclean mostlyclean-generic \
+ mostlyclean-libtool mostlyclean-local pdf pdf-am ps ps-am \
+ tags-am uninstall uninstall-am
+
+
+install-data-local:
+ $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgdatadir)/contrib/; \
+ $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgdatadir)/contrib/toolbox_skeleton; \
+ $(mkinstalldirs) -m 755 $(DESTDIR)$(pkgdatadir)/contrib/xcos_toolbox_skeleton; \
+ for file in $(SKELETON_FILES) ; do \
+ filePath=`dirname $(DESTDIR)$(pkgdatadir)/contrib/$$file`; \
+ echo "$(mkinstalldirs) -m 755 $$filePath/"; \
+ $(mkinstalldirs) -m 755 $$filePath/; \
+ echo "$(INSTALL_DATA) $$file $$filePath" ; \
+ $(INSTALL_DATA) "$$file" $$filePath; \
+ done
+
+mostlyclean-local:
+ rm -rf archives \
+ toolbox_skeleton/cleaner.sce \
+ toolbox_skeleton/help/*/master_help.xml \
+ toolbox_skeleton/help/*/scilab_*_help \
+ toolbox_skeleton/jar \
+ toolbox_skeleton/loader.sce \
+ toolbox_skeleton/macros/lib \
+ toolbox_skeleton/macros/names \
+ toolbox_skeleton/sci_gateway/cpp/cleaner.sce \
+ toolbox_skeleton/sci_gateway/cpp/libskeleton_cpp.c \
+ toolbox_skeleton/sci_gateway/cpp/libskeleton_cpp.* \
+ toolbox_skeleton/sci_gateway/cpp/loader.sce \
+ toolbox_skeleton/sci_gateway/c/cleaner.sce \
+ toolbox_skeleton/sci_gateway/cleaner_gateway.sce \
+ toolbox_skeleton/sci_gateway/c/libskeleton_c.c \
+ toolbox_skeleton/sci_gateway/c/libskeleton_c.* \
+ toolbox_skeleton/sci_gateway/c/loader.sce \
+ toolbox_skeleton/sci_gateway/fortran/cleaner.sce \
+ toolbox_skeleton/sci_gateway/fortran/libskeleton_fortran.c \
+ toolbox_skeleton/sci_gateway/fortran/libskeleton_fortran.* \
+ toolbox_skeleton/sci_gateway/fortran/loader.sce \
+ toolbox_skeleton/sci_gateway/loader_gateway.sce \
+ toolbox_skeleton/src/c/cleaner.sce \
+ toolbox_skeleton/src/c/libcsum.* \
+ toolbox_skeleton/src/c/loader.sce \
+ toolbox_skeleton/src/fortran/cleaner.sce \
+ toolbox_skeleton/src/fortran/libfsum.* \
+ toolbox_skeleton/src/fortran/loader.sce \
+ toolbox_skeleton/unloader.sce \
+ xcos_toolbox_skeleton/cleaner.sce \
+ xcos_toolbox_skeleton/help/*/master_help.xml \
+ xcos_toolbox_skeleton/help/*/scilab_*_help \
+ xcos_toolbox_skeleton/jar \
+ xcos_toolbox_skeleton/loader.sce \
+ xcos_toolbox_skeleton/macros/lib \
+ xcos_toolbox_skeleton/macros/names \
+ xcos_toolbox_skeleton/sci_gateway/cleaner.sce \
+ xcos_toolbox_skeleton/sci_gateway/cleaner_gateway.sce \
+ xcos_toolbox_skeleton/sci_gateway/c/lib \
+ xcos_toolbox_skeleton/sci_gateway/c/libskeleton_c.c \
+ xcos_toolbox_skeleton/sci_gateway/c/loader.sce \
+ xcos_toolbox_skeleton/sci_gateway/c/cleaner.sce \
+ xcos_toolbox_skeleton/sci_gateway/c/libxcos_toolbox_skeleton_c.c \
+ xcos_toolbox_skeleton/sci_gateway/c/libxcos_toolbox_skeleton_c.* \
+ xcos_toolbox_skeleton/src/c/cleaner.sce \
+ xcos_toolbox_skeleton/src/c/libxcos_tbx_skel.* \
+ xcos_toolbox_skeleton/src/c/loader.sce \
+ xcos_toolbox_skeleton/unloader.sce
+
+# Tell versions [3.59,3.63) of GNU make to not export all variables.
+# Otherwise a system limit (for SysV at least) may be exceeded.
+.NOEXPORT:
diff --git a/contrib/loader.sce b/contrib/loader.sce
new file mode 100755
index 000000000..88b67f714
--- /dev/null
+++ b/contrib/loader.sce
@@ -0,0 +1,5 @@
+// search and add a toolbox menu
+toolboxes(SCI+"/contrib");
+clear toolboxes build distrib_clean distrib_zip
+
+
diff --git a/contrib/toolbox_skeleton.iss b/contrib/toolbox_skeleton.iss
new file mode 100755
index 000000000..9ff2bda10
--- /dev/null
+++ b/contrib/toolbox_skeleton.iss
@@ -0,0 +1,102 @@
+;##############################################################################################################
+; Script d'installation Inno Setup (5.2.2) pour scilab
+; Allan CORNET
+; Version TRUNK
+; This file is released under the 3-clause BSD license. See COPYING-BSD.
+;##############################################################################################################
+;--------------------------------------------------------------------------------------------------------------
+; toolbox_skeleton
+;--------------------------------------------------------------------------------------------------------------
+#define TOOLBOX_SKELETON "toolbox_skeleton"
+;
+Source: contrib\{#TOOLBOX_SKELETON}\builder.sce; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\toolbox_skeleton_redist.iss; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\changelog.txt; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\license.txt; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\readme.txt; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\DESCRIPTION; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\DESCRIPTION-FUNCTIONS; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}; Components: {#COMPN_TOOLBOX_SKELETON}
+;
+Source: contrib\{#TOOLBOX_SKELETON}\demos\*.*; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\demos; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\etc\toolbox_skeleton.quit; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\etc; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\etc\toolbox_skeleton.start; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\etc; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\etc\toolbox_skeleton_preferences.xml; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\etc; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\etc\toolbox_skeleton_preferences.xsl; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\etc; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\help\builder_help.sce; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\help; Components: {#COMPN_TOOLBOX_SKELETON}
+
+Source: contrib\{#TOOLBOX_SKELETON}\help\en_US\build_help.sce; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\help\en_US; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\help\en_US\*.xml; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\help\en_US; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\help\fr_FR\build_help.sce; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\help\fr_FR; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\help\fr_FR\*.xml; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\help\fr_FR; Components: {#COMPN_TOOLBOX_SKELETON}
+;
+;Source: contrib\{#TOOLBOX_SKELETON}\includes\*.h; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\includes
+;Source: contrib\{#TOOLBOX_SKELETON}\locales\*.*; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\locales
+;
+Source: contrib\{#TOOLBOX_SKELETON}\macros\buildmacros.sce; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\macros; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\macros\cleanmacros.sce; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\macros; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\macros\*.sci; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\macros; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\sci_gateway\builder_gateway.sce; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\sci_gateway; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\sci_gateway\c\builder_gateway_c.sce; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\sci_gateway\c; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\sci_gateway\c\sci_csum.c; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\sci_gateway\c; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\sci_gateway\c\sci_csub.c; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\sci_gateway\c; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\sci_gateway\c\sci_multiplybypi.c; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\sci_gateway\c; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\sci_gateway\c\sci_foo.c; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\sci_gateway\c; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\sci_gateway\c\sci_cerror.c; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\sci_gateway\c; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\sci_gateway\cpp\sci_cpp_find.cxx; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\sci_gateway\cpp; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\sci_gateway\cpp\builder_gateway_cpp.sce; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\sci_gateway\cpp; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\sci_gateway\fortran\builder_gateway_fortran.sce; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\sci_gateway\fortran; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\sci_gateway\fortran\sci_fsum.c; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\sci_gateway\fortran; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\src\builder_src.sce; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\src; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\src\c\builder_c.sce; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\src\c; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\src\c\csum.c; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\src\c; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\src\c\*.h; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\src\c; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\src\c\csub.c; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\src\c; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\src\c\multiplybypi.c; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\src\c; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\src\fortran\builder_fortran.sce; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\src\fortran; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\src\fortran\fsum.f; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\src\fortran; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\tests\*.*; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\tests; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\locales\*.*; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\locales; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\src\java\builder_java.sce; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\src\java; Components: {#COMPN_TOOLBOX_SKELETON}
+Source: contrib\{#TOOLBOX_SKELETON}\src\java\org\scilab\contrib\toolboxskeleton\Sum.java; DestDir: {app}\contrib\{#TOOLBOX_SKELETON}\src\java\org\scilab\contrib\toolboxskeleton; Components: {#COMPN_TOOLBOX_SKELETON}
+
+;--------------------------------------------------------------------------------------------------------------
+#define XCOS_TOOLBOX_SKELETON "xcos_toolbox_skeleton"
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\DESCRIPTION; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\DESCRIPTION-FUNCTIONS; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\license.txt; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\builder.sce; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\changelog.txt; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\demos\*.*; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}\demos; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\etc\{#XCOS_TOOLBOX_SKELETON}.quit; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}\etc; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\etc\{#XCOS_TOOLBOX_SKELETON}.start; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}\etc; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\examples\*.*; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}\examples; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\help\builder_help.sce; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}\help; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\help\en_US\*.xml; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}\help\en_US; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\help\en_US\build_help.sce; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}\help\en_US; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\help\fr_FR\build_help.sce; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}\help\fr_FR; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\images\gif\*.gif; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}\images\gif; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\images\svg\*.svg; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}\images\svg; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\macros\*.sci; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}\macros; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\macros\*.mo; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}\macros; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\macros\buildmacros.sce; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}\macros; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\macros\cleanmacros.sce; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}\macros; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\sci_gateway\builder_gateway.sce; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}\sci_gateway; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\sci_gateway\c\builder_gateway_c.sce; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}\sci_gateway\c; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\sci_gateway\c\sci_tbx_sum.c; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}\sci_gateway\c; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\sci_gateway\loader_gateway.sce; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}\sci_gateway; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\src\builder_src.sce; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}\src; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\src\c\block_sum.c; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}\src\c; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\src\c\builder_c.sce; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}\src\c; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\src\c\business.h; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}\src\c; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\src\c\business_sum.c; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}\src\c; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\src\c\tbx_block_noop.c; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}\src\c; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\src\cleaner_src.sce; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}\src; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\tests\unit_tests\tbx_sum.tst; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}\tests\unit_tests; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\tests\unit_tests\tbx_sum.dia.ref; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}\tests\unit_tests; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\tests\benchmark\noop_matrices.zcos; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}\tests\benchmark; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\tests\benchmark\noop_matrices_c.tst; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}\tests\benchmark; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\tests\benchmark\noop_matrices_scilab.tst; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}\tests\benchmark; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\tests\benchmark\noop_scalar.zcos; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}\tests\benchmark; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\tests\benchmark\noop_scalar_c.tst; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}\tests\benchmark; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+Source: contrib\{#XCOS_TOOLBOX_SKELETON}\tests\benchmark\noop_scalar_scilab.tst; DestDir: {app}\contrib\{#XCOS_TOOLBOX_SKELETON}\tests\benchmark; Flags: recursesubdirs; Components: {#COMPN_TOOLBOX_SKELETON} and {#COMPN_XCOS}
+;--------------------------------------------------------------------------------------------------------------
diff --git a/contrib/toolbox_skeleton/DESCRIPTION b/contrib/toolbox_skeleton/DESCRIPTION
new file mode 100755
index 000000000..63edfe898
--- /dev/null
+++ b/contrib/toolbox_skeleton/DESCRIPTION
@@ -0,0 +1,37 @@
+Toolbox: toolbox_skeleton
+
+Title: Toolbox Skeleton
+
+Summary: Skeleton of a valid atoms package
+
+Version: 1.3
+
+Author: Scilab Enterprises
+
+Maintainer: Scilab Enterprises
+
+Category: biology - Robotic_2
+ CatB - SScat2
+ biology - modelisation_III
+
+Entity: Scilab Enterprises
+
+WebSite: http://www.scilab.org
+
+License: CeCILL
+
+ScilabVersion: >= 5.4
+
+Depends:
+
+Date: 2013-07-18
+
+Description: files to the new Docbook based format.
+
+ install xmltodocbook
+ - linux : unzip xmltodocbook.zip and exec builder.sce
+ - windows : click on xmltodocbook-1.0.exe
+ load toolbox in scilab
+ exec loader.sce
+
+ help xmltodocbook
diff --git a/contrib/toolbox_skeleton/DESCRIPTION-FUNCTIONS b/contrib/toolbox_skeleton/DESCRIPTION-FUNCTIONS
new file mode 100755
index 000000000..f66ea45b5
--- /dev/null
+++ b/contrib/toolbox_skeleton/DESCRIPTION-FUNCTIONS
@@ -0,0 +1,5 @@
+scilab_sum - scilab_sum from scilab
+fortran_sum - sum from fortran
+c_sum - sum from C
+c_sub - subtraction from C
+org.scilab.contrib.toolboxskeleton.Sum - Sum from Java
diff --git a/contrib/toolbox_skeleton/builder.sce b/contrib/toolbox_skeleton/builder.sce
new file mode 100755
index 000000000..8aed84ec6
--- /dev/null
+++ b/contrib/toolbox_skeleton/builder.sce
@@ -0,0 +1,53 @@
+// Copyright (C) 2008 - INRIA
+// Copyright (C) 2009-2011 - DIGITEO
+
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+mode(-1);
+lines(0);
+
+function main_builder()
+
+ TOOLBOX_NAME = "toolbox_skeleton";
+ TOOLBOX_TITLE = "Toolbox Skeleton";
+ toolbox_dir = get_absolute_file_path("builder.sce");
+
+ // Check Scilab's version
+ // =============================================================================
+
+ try
+ v = getversion("scilab");
+ catch
+ error(gettext("Scilab 5.3 or more is required."));
+ end
+
+ if v(1) < 5 & v(2) < 3 then
+ // new API in scilab 5.3
+ error(gettext("Scilab 5.3 or more is required."));
+ end
+
+ // Check modules_manager module availability
+ // =============================================================================
+
+ if ~isdef("tbx_build_loader") then
+ error(msprintf(gettext("%s module not installed."), "modules_manager"));
+ end
+
+ // Action
+ // =============================================================================
+
+ tbx_builder_macros(toolbox_dir);
+ tbx_builder_src(toolbox_dir);
+ tbx_builder_gateway(toolbox_dir);
+ tbx_build_localization(TOOLBOX_NAME, toolbox_dir);
+ tbx_builder_help(toolbox_dir);
+ tbx_build_loader(TOOLBOX_NAME, toolbox_dir);
+ tbx_build_cleaner(TOOLBOX_NAME, toolbox_dir);
+
+endfunction
+// =============================================================================
+main_builder();
+clear main_builder; // remove main_builder on stack
+// =============================================================================
+
+
diff --git a/contrib/toolbox_skeleton/changelog.txt b/contrib/toolbox_skeleton/changelog.txt
new file mode 100755
index 000000000..1ebfa890e
--- /dev/null
+++ b/contrib/toolbox_skeleton/changelog.txt
@@ -0,0 +1,13 @@
+changelog of the toolbox_skeleton
+
+Please update this file to describe the modifications of your toolbox
+
+A format of change log could be:
+
+
+toolbox_skeleton (version)
+ * Change 1
+ * Change 2
+ * ...
+ -- Author <author@email.com> Tue, 18 Dec 2007 14:50:02 +0100
+
diff --git a/contrib/toolbox_skeleton/demos/c_sum.dem.sce b/contrib/toolbox_skeleton/demos/c_sum.dem.sce
new file mode 100755
index 000000000..68ea6d0a1
--- /dev/null
+++ b/contrib/toolbox_skeleton/demos/c_sum.dem.sce
@@ -0,0 +1,16 @@
+//
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+
+function demo_c_sum()
+
+ mode(-1);
+ lines(0);
+
+ disp("c_sum(3,4)");
+ disp(c_sum(3,4));
+
+endfunction
+
+demo_c_sum();
+clear demo_c_sum;
diff --git a/contrib/toolbox_skeleton/demos/cpp_find.dem.sce b/contrib/toolbox_skeleton/demos/cpp_find.dem.sce
new file mode 100755
index 000000000..56147370a
--- /dev/null
+++ b/contrib/toolbox_skeleton/demos/cpp_find.dem.sce
@@ -0,0 +1,18 @@
+//
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+
+function demo_cpp_find()
+ mode(-1);
+ lines(0);
+
+ disp("cpp_find(''Scilab is a numerical computational package'',''numerical'')");
+ disp("position : " + string(cpp_find("Scilab is a numerical computational package","numerical")));
+ disp("cpp_find(''Scilab is a numerical computational package'',''package'')");
+ disp("position: " + string(cpp_find("Scilab is a numerical computational package","package")));
+
+endfunction
+
+
+demo_cpp_find();
+clear demo_cpp_find; \ No newline at end of file
diff --git a/contrib/toolbox_skeleton/demos/fortran_sum.dem.sce b/contrib/toolbox_skeleton/demos/fortran_sum.dem.sce
new file mode 100755
index 000000000..de96506c3
--- /dev/null
+++ b/contrib/toolbox_skeleton/demos/fortran_sum.dem.sce
@@ -0,0 +1,16 @@
+//
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+function demo_fortran_sum()
+
+ mode(-1);
+ lines(0);
+
+ disp("fortran_sum(3,4)");
+ disp(fortran_sum(3,4));
+
+endfunction
+
+demo_fortran_sum();
+clear demo_fortran_sum;
+
diff --git a/contrib/toolbox_skeleton/demos/scilab_sum.dem.sce b/contrib/toolbox_skeleton/demos/scilab_sum.dem.sce
new file mode 100755
index 000000000..6e872aac8
--- /dev/null
+++ b/contrib/toolbox_skeleton/demos/scilab_sum.dem.sce
@@ -0,0 +1,15 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+function demo_scilab_sum()
+
+ mode(-1);
+ lines(0);
+
+ disp("scilab_sum(3,4)");
+ disp(scilab_sum(3,4));
+
+endfunction
+
+
+demo_scilab_sum();
+clear demo_scilab_sum; \ No newline at end of file
diff --git a/contrib/toolbox_skeleton/demos/toolbox_skeleton.dem.gateway.sce b/contrib/toolbox_skeleton/demos/toolbox_skeleton.dem.gateway.sce
new file mode 100755
index 000000000..09d6bf6a7
--- /dev/null
+++ b/contrib/toolbox_skeleton/demos/toolbox_skeleton.dem.gateway.sce
@@ -0,0 +1,17 @@
+//
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+function subdemolist = demo_gateway()
+ demopath = get_absolute_file_path("toolbox_skeleton.dem.gateway.sce");
+
+ subdemolist = ["sum with Scilab" ,"scilab_sum.dem.sce"; ..
+ "A c sum " ,"c_sum.dem.sce" ; ..
+ "The sum with fortran" ,"fortran_sum.dem.sce" ; ..
+ "A find in cpp" ,"cpp_find.dem.sce" ; ];
+
+ subdemolist(:,2) = demopath + subdemolist(:,2);
+
+endfunction
+
+subdemolist = demo_gateway();
+clear demo_gateway; // remove demo_gateway on stack
diff --git a/contrib/toolbox_skeleton/etc/toolbox_skeleton.quit b/contrib/toolbox_skeleton/etc/toolbox_skeleton.quit
new file mode 100755
index 000000000..6b6e1454c
--- /dev/null
+++ b/contrib/toolbox_skeleton/etc/toolbox_skeleton.quit
@@ -0,0 +1,21 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+// Some specific hooks can be specify here when the module is unloaded.
+
+function quitModule()
+
+ etc_tlbx = get_absolute_file_path("toolbox_skeleton.quit");
+ etc_tlbx = getshortpathname(etc_tlbx);
+ root_tlbx = strncpy( etc_tlbx, length(etc_tlbx)-length("\etc\") );
+
+ // Remove Preferences GUI
+ // =============================================================================
+ if getscilabmode() == "STD" then
+ removeModulePreferences(root_tlbx);
+ end
+
+endfunction
+
+
+quitModule();
+clear quitModule;
diff --git a/contrib/toolbox_skeleton/etc/toolbox_skeleton.start b/contrib/toolbox_skeleton/etc/toolbox_skeleton.start
new file mode 100755
index 000000000..6ad227ba2
--- /dev/null
+++ b/contrib/toolbox_skeleton/etc/toolbox_skeleton.start
@@ -0,0 +1,68 @@
+// Copyright (C) 2008 - INRIA
+// Copyright (C) 2009 - DIGITEO
+
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+function toolbox_skeletonlib = startModule()
+
+ TOOLBOX_NAME = "toolbox_skeleton";
+ TOOLBOX_TITLE = "Toolbox Skeleton";
+
+ mprintf("Start " + TOOLBOX_TITLE + "\n");
+
+ if isdef("toolbox_skeletonlib") then
+ warning("Toolbox skeleton library is already loaded");
+ return;
+ end
+
+ etc_tlbx = get_absolute_file_path("toolbox_skeleton.start");
+ etc_tlbx = getshortpathname(etc_tlbx);
+ root_tlbx = strncpy( etc_tlbx, length(etc_tlbx)-length("\etc\") );
+
+//Load functions library
+// =============================================================================
+ mprintf("\tLoad macros\n");
+ pathmacros = pathconvert( root_tlbx ) + "macros" + filesep();
+ toolbox_skeletonlib = lib(pathmacros);
+
+// load gateways and Java libraries
+// =============================================================================
+ verboseMode = ilib_verbose();
+ ilib_verbose(0);
+ mprintf("\tLoad gateways\n");
+ exec(pathconvert(root_tlbx+"/sci_gateway/loader_gateway.sce",%f));
+ mprintf("\tLoad Java libraries\n");
+ exec(pathconvert(root_tlbx+"/src/java/loader.sce",%f));
+ ilib_verbose(verboseMode);
+
+// load localization
+ addlocalizationdomain(TOOLBOX_NAME, root_tlbx + "/locales");
+
+// Load and add help chapter
+// =============================================================================
+ if or(getscilabmode() == ["NW";"STD"]) then
+ mprintf("\tLoad help\n");
+ path_addchapter = pathconvert(root_tlbx+"/jar");
+ if ( isdir(path_addchapter) <> [] ) then
+ add_help_chapter(TOOLBOX_NAME, path_addchapter, %F);
+ end
+ end
+
+// Load demos
+// =============================================================================
+ if or(getscilabmode() == ["NW";"STD"]) then
+ mprintf("\tLoad demos\n");
+ pathdemos = pathconvert(root_tlbx+"/demos/toolbox_skeleton.dem.gateway.sce", %F, %T);
+ add_demo(TOOLBOX_TITLE, pathdemos);
+ end
+
+// Load Preferences GUI
+// =============================================================================
+ if getscilabmode() == "STD" then
+ addModulePreferences(TOOLBOX_TITLE, root_tlbx, etc_tlbx + "toolbox_skeleton_preferences.xml");
+ end
+
+endfunction
+
+toolbox_skeletonlib = startModule();
+clear startModule; // remove startModule on stack
diff --git a/contrib/toolbox_skeleton/etc/toolbox_skeleton_preferences.xml b/contrib/toolbox_skeleton/etc/toolbox_skeleton_preferences.xml
new file mode 100755
index 000000000..f4f08c0e7
--- /dev/null
+++ b/contrib/toolbox_skeleton/etc/toolbox_skeleton_preferences.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<body>
+ <Form text="_d(toolbox_skeleton, Rectangle)">
+ <Entry text="_d(toolbox_skeleton, My Title)" value="exemple"/>
+ <Select text="_d(toolbox_skeleton, Height)" value="18">
+ <Option value="12"/>
+ <Option value="18"/>
+ <Option value="24"/>
+ </Select>
+ <Select text="_d(toolbox_skeleton, Width)" value="18">
+ <Option value="12"/>
+ <Option value="18"/>
+ <Option value="24"/>
+ </Select>
+ <Color text="_d(toolbox_skeleton, Color)" value="#0000ff"/>
+ <Checkbox text="_d(toolbox_skeleton, Outline)" value="yes"/>
+ </Form>
+</body>
diff --git a/contrib/toolbox_skeleton/etc/toolbox_skeleton_preferences.xsl b/contrib/toolbox_skeleton/etc/toolbox_skeleton_preferences.xsl
new file mode 100755
index 000000000..3d57d0dd0
--- /dev/null
+++ b/contrib/toolbox_skeleton/etc/toolbox_skeleton_preferences.xsl
@@ -0,0 +1,39 @@
+<?xml version='1.0' encoding='utf-8'?>
+<xsl:stylesheet version ="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+ <xsl:import href="$SCI/modules/preferences/src/xslt/XCommon.xsl"/>
+
+ <xsl:template match="toolbox_skeleton" mode="tooltip">Environment</xsl:template>
+ <xsl:template match="toolbox_skeleton">
+ <VSpace height="25"/>
+ <Title text="Environment">
+ <HBox>
+ Foo:
+ <xsl:call-template name="Select">
+ <xsl:with-param name="among">
+ <option foo="bar"/>
+ <option foo="barbar"/>
+ <option foo="barbarbar"/>
+ </xsl:with-param>
+ </xsl:call-template>
+ </HBox>
+ </Title>
+ </xsl:template>
+
+ <xsl:template match="save">
+ <VSpace height="25"/>
+ <Title text="Save">
+ <HBox>
+ <Checkbox listener="ActionListener">
+ <xsl:if test="@bar='true'">
+ <xsl:attribute name="checked">checked</xsl:attribute>
+ </xsl:if>
+ <actionPerformed set="bar" value="true">
+ <xsl:call-template name="context"/>
+ </actionPerformed>
+ </Checkbox>
+ Save:
+ </HBox>
+ </Title>
+ </xsl:template>
+</xsl:stylesheet> \ No newline at end of file
diff --git a/contrib/toolbox_skeleton/help/builder_help.sce b/contrib/toolbox_skeleton/help/builder_help.sce
new file mode 100755
index 000000000..41da81f40
--- /dev/null
+++ b/contrib/toolbox_skeleton/help/builder_help.sce
@@ -0,0 +1,4 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+tbx_builder_help_lang(["en_US","fr_FR"], ..
+get_absolute_file_path("builder_help.sce"));
diff --git a/contrib/toolbox_skeleton/help/cleaner_help.sce b/contrib/toolbox_skeleton/help/cleaner_help.sce
new file mode 100755
index 000000000..a2b5e7ef2
--- /dev/null
+++ b/contrib/toolbox_skeleton/help/cleaner_help.sce
@@ -0,0 +1,21 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+function cleaner_help()
+ path = get_absolute_file_path("cleaner_help.sce");
+ langdirs = dir(path);
+ langdirs = langdirs.name(langdirs.isdir);
+
+ for l = 1:size(langdirs, "*")
+ masterfile = fullpath(path + filesep() + langdirs(l) + "/master_help.xml");
+ mdelete(masterfile);
+
+ jarfile = fullpath(path + "/../jar/scilab_" + langdirs(l) + "_help.jar");
+ mdelete(jarfile);
+
+ tmphtmldir = fullpath(path + "/" + langdirs(l) + "/scilab_" + langdirs(l) + "_help");
+ rmdir(tmphtmldir, "s");
+ end
+endfunction
+
+cleaner_help();
+clear cleaner_help;
diff --git a/contrib/toolbox_skeleton/help/en_US/build_help.sce b/contrib/toolbox_skeleton/help/en_US/build_help.sce
new file mode 100755
index 000000000..70653160c
--- /dev/null
+++ b/contrib/toolbox_skeleton/help/en_US/build_help.sce
@@ -0,0 +1,3 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+tbx_build_help(TOOLBOX_TITLE,get_absolute_file_path("build_help.sce"));
diff --git a/contrib/toolbox_skeleton/help/en_US/c_multiplybypi.xml b/contrib/toolbox_skeleton/help/en_US/c_multiplybypi.xml
new file mode 100755
index 000000000..02ad85616
--- /dev/null
+++ b/contrib/toolbox_skeleton/help/en_US/c_multiplybypi.xml
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * This file is released under the 3-clause BSD license. See COPYING-BSD.
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="c_multiplybypi" xml:lang="en">
+ <refnamediv>
+ <refname>c_multiplybypi</refname>
+ <refpurpose>multiply by %pi a number</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Calling Sequence</title>
+ <synopsis>a = multiplybypi(b)</synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Arguments</title>
+ <variablelist>
+ <varlistentry>
+ <term>b</term>
+ <listitem>
+ <para>first input argument</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>a</term>
+ <listitem>
+ <para>output argument</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>Description</title>
+ <para>Do a special multiplication.</para>
+ <para>Add here a paragraph of the function description </para>
+ <para>
+ LaTeX can also be used to render equation: In this case, the rendering should <latex>$x*\pi$</latex>
+ </para>
+ </refsection>
+ <refsection>
+ <title>Examples</title>
+ <programlisting role="example">c_multiplybypi(3)</programlisting>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="c_sum">c_sum</link>
+ </member>
+ <member>
+ <link type="scilab" linkend="scilab.help/sum">Link to the Scilab help page</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/contrib/toolbox_skeleton/help/en_US/c_sub.xml b/contrib/toolbox_skeleton/help/en_US/c_sub.xml
new file mode 100755
index 000000000..aa5cca6fd
--- /dev/null
+++ b/contrib/toolbox_skeleton/help/en_US/c_sub.xml
@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * This file is released under the 3-clause BSD license. See COPYING-BSD.
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:scilab="http://www.scilab.org" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="c_sub" xml:lang="en">
+ <refnamediv>
+ <refname>c_sub</refname>
+ <refpurpose>subtraction from C</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Calling Sequence</title>
+ <synopsis>a = c_sub(b,c)</synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Arguments</title>
+ <variablelist>
+ <varlistentry>
+ <term>b</term>
+ <listitem>
+ <para>first input argument</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>c</term>
+ <listitem>
+ <para>second input argument</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>a</term>
+ <listitem>
+ <para>output argument</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>Description</title>
+ <para>Do a subtraction.</para>
+ <para>Add here a paragraph of the function description </para>
+ <para>
+ LaTeX can also be used to render equation: In this case, the rendering should <latex>$x-y$</latex>
+ </para>
+ <para>It is now possible to include an image in using Scilab code (this requires to declare the namespace xmlns:scilab="http://www.scilab.org"):</para>
+ <programlisting role="xml">
+ <![CDATA[
+ <scilab:image>
+ plot3d();
+ </scilab:image>
+ ]]>
+ </programlisting>
+ <scilab:image>
+ plot3d();
+ </scilab:image>
+ <para>If an image contains a localized string then the attribute scilab:localized="true" is required:</para>
+ <programlisting role="xml">
+ <![CDATA[
+ <scilab:image localized="true">
+ plot2d();
+ xtitle("My Beautiful 2D plots");
+ </scilab:image>
+ ]]>
+ </programlisting>
+ <scilab:image localized="true">
+ plot2d();
+ xtitle("My Beautiful 2D plots");
+ </scilab:image>
+ </refsection>
+ <refsection>
+ <title>Examples</title>
+ <programlisting role="example">c_sub(3,4)</programlisting>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="c_sum">c_sum</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/contrib/toolbox_skeleton/help/en_US/c_sum.xml b/contrib/toolbox_skeleton/help/en_US/c_sum.xml
new file mode 100755
index 000000000..5d869f66e
--- /dev/null
+++ b/contrib/toolbox_skeleton/help/en_US/c_sum.xml
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * This file is released under the 3-clause BSD license. See COPYING-BSD.
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="c_sum" xml:lang="en">
+ <refnamediv>
+ <refname>c_sum</refname>
+ <refpurpose>sum from C</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Calling Sequence</title>
+ <synopsis>a = c_sum(b,c)</synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Arguments</title>
+ <variablelist>
+ <varlistentry>
+ <term>b</term>
+ <listitem>
+ <para>first input argument</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>c</term>
+ <listitem>
+ <para>second input argument</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>a</term>
+ <listitem>
+ <para>output argument</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>Description</title>
+ <para>Do a sum.</para>
+ <para>Add here a paragraph of the function description </para>
+ <para>
+ LaTeX can also be used to render equation: In this case, the rendering should <latex>$x+y$</latex>
+ </para>
+ </refsection>
+ <refsection>
+ <title>Examples</title>
+ <programlisting role="example">c_sum(3,4)</programlisting>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="fortran_sum">fortran_sum</link>
+ </member>
+ <member>
+ <link type="scilab" linkend="scilab.help/sum">Link to the Scilab help page</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/contrib/toolbox_skeleton/help/en_US/fortran_sum.xml b/contrib/toolbox_skeleton/help/en_US/fortran_sum.xml
new file mode 100755
index 000000000..8a964277e
--- /dev/null
+++ b/contrib/toolbox_skeleton/help/en_US/fortran_sum.xml
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * This file is released under the 3-clause BSD license. See COPYING-BSD.
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="fortran_sum" xml:lang="en">
+ <refnamediv>
+ <refname>fortran_sum</refname>
+ <refpurpose>sum from fortran</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Calling Sequence</title>
+ <synopsis>a = fortran_sum(b,c)</synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Arguments</title>
+ <variablelist>
+ <varlistentry>
+ <term>b</term>
+ <listitem>
+ <para>first input argument</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>c</term>
+ <listitem>
+ <para>second input argument</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>a</term>
+ <listitem>
+ <para>output argument</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>Description</title>
+ <para>Do a sum.</para>
+ <para>Add here a paragraph of the function description</para>
+ <para>
+ LaTeX can also be used to render equation: In this case, the rendering should <latex>$x+y$</latex>
+ </para>
+ </refsection>
+ <refsection>
+ <title>Examples</title>
+ <programlisting role="example">fortran_sum(3,4)</programlisting>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="c_sum">c_sum</link>
+ </member>
+ <member>
+ <link type="scilab" linkend="scilab.help/sum">Link to the Scilab help page</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/contrib/toolbox_skeleton/help/en_US/scilab_sum.xml b/contrib/toolbox_skeleton/help/en_US/scilab_sum.xml
new file mode 100755
index 000000000..0b1937768
--- /dev/null
+++ b/contrib/toolbox_skeleton/help/en_US/scilab_sum.xml
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ *
+ * This file is released under the 3-clause BSD license. See COPYING-BSD.
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="scilab_sum" xml:lang="en">
+ <refnamediv>
+ <refname>scilab_sum</refname>
+ <refpurpose>sum from scilab</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Calling Sequence</title>
+ <synopsis>a = scilab_sum(b,c)</synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Arguments</title>
+ <variablelist>
+ <varlistentry>
+ <term>b</term>
+ <listitem>
+ <para>first input argument</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>c</term>
+ <listitem>
+ <para>second input argument</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>a</term>
+ <listitem>
+ <para>output argument</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>Description</title>
+ <para>Do a sum.</para>
+ <para>Add here a paragraph of the function description </para>
+ <para>
+ LaTeX can also be used to render equation: In this case, the rendering should <latex>$x+y$</latex>
+ </para>
+ </refsection>
+ <refsection>
+ <title>Examples</title>
+ <programlisting role="example">scilab_sum(3,4)</programlisting>
+ </refsection>
+ <refsection role="see also">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="c_sum">c_sum</link>
+ </member>
+ <member>
+ <link type="scilab" linkend="scilab.help/sum">Link to the Scilab help page</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/contrib/toolbox_skeleton/help/fr_FR/build_help.sce b/contrib/toolbox_skeleton/help/fr_FR/build_help.sce
new file mode 100755
index 000000000..70653160c
--- /dev/null
+++ b/contrib/toolbox_skeleton/help/fr_FR/build_help.sce
@@ -0,0 +1,3 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+tbx_build_help(TOOLBOX_TITLE,get_absolute_file_path("build_help.sce"));
diff --git a/contrib/toolbox_skeleton/help/fr_FR/c_multiplybypi.xml b/contrib/toolbox_skeleton/help/fr_FR/c_multiplybypi.xml
new file mode 100755
index 000000000..71c573c67
--- /dev/null
+++ b/contrib/toolbox_skeleton/help/fr_FR/c_multiplybypi.xml
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ *
+ * This file is released under the 3-clause BSD license. See COPYING-BSD.
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="c_multiplybypi" xml:lang="en">
+ <refnamediv>
+ <refname>c_multiplybypi</refname>
+ <refpurpose>Multiple par %pi un nombre</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Séquence d'appel</title>
+ <synopsis>a = multiplybypi(b)</synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Arguments</title>
+ <variablelist>
+ <varlistentry>
+ <term>b</term>
+ <listitem>
+ <para>Premier argument d'entrée</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>a</term>
+ <listitem>
+ <para>Argument de sortie</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>Description</title>
+ <para>Fait une multiplication particulière.</para>
+ <para>Ajoutez ici plus d'informations sur cette fonction </para>
+ <para>
+ LaTeX peut etre utilisé pour afficher l'équation: Dans ce cas, le rendu pourrait être <latex>$x*\pi$</latex>
+ </para>
+ </refsection>
+ <refsection>
+ <title>Exemples</title>
+ <programlisting role="example">c_multiplybypi(3)</programlisting>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="c_sum">c_sum</link>
+ </member>
+ <member>
+ <link type="scilab" linkend="scilab.help/sum">Lien vers la page d'aide sum de Scilab</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/contrib/toolbox_skeleton/help/fr_FR/c_sub.xml b/contrib/toolbox_skeleton/help/fr_FR/c_sub.xml
new file mode 100755
index 000000000..575dd0ad4
--- /dev/null
+++ b/contrib/toolbox_skeleton/help/fr_FR/c_sub.xml
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ *
+ * This file is released under the 3-clause BSD license. See COPYING-BSD.
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:scilab="http://www.scilab.org" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="c_sub" xml:lang="en">
+ <refnamediv>
+ <refname>c_sub</refname>
+ <refpurpose>calcule de la soustraction depuis du code C</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Séquence d'appel</title>
+ <synopsis>a = c_sub(b,c)</synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Arguments</title>
+ <variablelist>
+ <varlistentry>
+ <term>b</term>
+ <listitem>
+ <para>Premier argument d'entrée</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>c</term>
+ <listitem>
+ <para>Second argument d'entrée</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>a</term>
+ <listitem>
+ <para>Argument de sortie</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>Description</title>
+ <para>calcule la soustraction.</para>
+ <para>Ajoutez ici plus d'informations sur cette fonction </para>
+ <para>
+ LaTeX peut etre utilisé pour afficher l'équation: Dans ce cas, le rendu pourrait être <latex>$x-y$</latex>
+ </para>
+ <para>Il est possible d'inclure une image en utilisant du code Scilab (il faut déclarer au préalable le namespace xmlns:scilab="http://www.scilab.org"):</para>
+ <programlisting role="xml">
+ <![CDATA[
+ <scilab:image>
+ plot3d();
+ </scilab:image>
+ ]]>
+ </programlisting>
+ <scilab:image>
+ plot3d();
+ </scilab:image>
+ <para>Si une image contient une chaîne de caractères localisées, il faut alors ajouter l'attribut scilab:localized="true":</para>
+ <programlisting role="xml">
+ <![CDATA[
+ <scilab:image localized="true">
+ plot2d();
+ xtitle("Mes jolis plots 2D");
+ </scilab:image>
+ ]]>
+ </programlisting>
+ <scilab:image localized="true">
+ plot2d();
+ xtitle("Mes jolis plots 2D");
+ </scilab:image>
+ </refsection>
+ <refsection>
+ <title>Exemples</title>
+ <programlisting role="example">c_sub(3,4)</programlisting>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="c_sum">c_sum</link>
+ </member>
+ <member>
+ <link type="scilab" linkend="scilab.help/sum">Lien vers la page d'aide sum de Scilab</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/contrib/toolbox_skeleton/help/fr_FR/c_sum.xml b/contrib/toolbox_skeleton/help/fr_FR/c_sum.xml
new file mode 100755
index 000000000..99e0201ed
--- /dev/null
+++ b/contrib/toolbox_skeleton/help/fr_FR/c_sum.xml
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ *
+ * This file is released under the 3-clause BSD license. See COPYING-BSD.
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="c_sum" xml:lang="en">
+ <refnamediv>
+ <refname>c_sum</refname>
+ <refpurpose>calcule de la somme depuis du code C</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Séquence d'appel</title>
+ <synopsis>a = c_sum(b,c)</synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Arguments</title>
+ <variablelist>
+ <varlistentry>
+ <term>b</term>
+ <listitem>
+ <para>Premier argument d'entréee</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>c</term>
+ <listitem>
+ <para>Second argument d'entréee</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>a</term>
+ <listitem>
+ <para>Argument de sortie</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>Description</title>
+ <para>calcule la somme.</para>
+ <para>Ajoutez ici plus d'informations sur cette fonction </para>
+ <para>
+ LaTeX peut etre utilisé pour afficher l'équation: Dans ce cas, le rendu pourrait être <latex>$x+y$</latex>
+ </para>
+ </refsection>
+ <refsection>
+ <title>Exemples</title>
+ <programlisting role="example">c_sum(3,4)</programlisting>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="fortran_sum">fortran_sum</link>
+ </member>
+ <member>
+ <link type="scilab" linkend="scilab.help/sum">Lien vers la page d'aide sum de Scilab</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/contrib/toolbox_skeleton/help/fr_FR/fortran_sum.xml b/contrib/toolbox_skeleton/help/fr_FR/fortran_sum.xml
new file mode 100755
index 000000000..c55ffaf31
--- /dev/null
+++ b/contrib/toolbox_skeleton/help/fr_FR/fortran_sum.xml
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ *
+ * This file is released under the 3-clause BSD license. See COPYING-BSD.
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="fortran_sum" xml:lang="en">
+ <refnamediv>
+ <refname>fortran_sum</refname>
+ <refpurpose>calcule de la somme depuis du code fortran</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Séquence d'appel</title>
+ <synopsis>a = c_sum(b,c)</synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Arguments</title>
+ <variablelist>
+ <varlistentry>
+ <term>b</term>
+ <listitem>
+ <para>Premier argument d'entrée</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>c</term>
+ <listitem>
+ <para>Second argument d'entrée</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>a</term>
+ <listitem>
+ <para>Argument de sortie</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>Description</title>
+ <para>calcule la somme.</para>
+ <para>Ajoutez ici plus d'informations sur cette fonction </para>
+ <para>
+ LaTeX peut etre utilisé pour afficher l'équation: Dans ce cas, le rendu pourrait être <latex>$x+y$</latex>
+ </para>
+ </refsection>
+ <refsection>
+ <title>Exemples</title>
+ <programlisting role="example">fortran_sum(3,4)</programlisting>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="c_sum">c_sum</link>
+ </member>
+ <member>
+ <link type="scilab" linkend="scilab.help/sum">Lien vers la page d'aide sum de Scilab</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/contrib/toolbox_skeleton/help/fr_FR/scilab_sum.xml b/contrib/toolbox_skeleton/help/fr_FR/scilab_sum.xml
new file mode 100755
index 000000000..c19434bdd
--- /dev/null
+++ b/contrib/toolbox_skeleton/help/fr_FR/scilab_sum.xml
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+ *
+ * This file is released under the 3-clause BSD license. See COPYING-BSD.
+ *
+ -->
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="scilab_sum" xml:lang="en">
+ <refnamediv>
+ <refname>scilab_sum</refname>
+ <refpurpose>calcule de la somme depuis du code scilab</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Séquence d'appel</title>
+ <synopsis>a = scilab_sum(b,c)</synopsis>
+ </refsynopsisdiv>
+ <refsection>
+ <title>Arguments</title>
+ <variablelist>
+ <varlistentry>
+ <term>b</term>
+ <listitem>
+ <para>Premier argument d'entrée</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>c</term>
+ <listitem>
+ <para>Second argument d'entrée</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>a</term>
+ <listitem>
+ <para>Argument de sortie</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </refsection>
+ <refsection>
+ <title>Description</title>
+ <para>calcule la somme.</para>
+ <para>Ajoutez ici plus d'informations sur cette fonction </para>
+ <para>
+ LaTeX peut etre utilisé pour afficher l'équation: Dans ce cas, le rendu pourrait être <latex>$x+y$</latex>
+ </para>
+ </refsection>
+ <refsection>
+ <title>Exemples</title>
+ <programlisting role="example">scilab_sum(3,4)</programlisting>
+ </refsection>
+ <refsection role="see also">
+ <title>Voir aussi</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="c_sum">c_sum</link>
+ </member>
+ <member>
+ <link type="scilab" linkend="scilab.help/sum">Lien vers la page d'aide sum de Scilab</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/contrib/toolbox_skeleton/license.txt b/contrib/toolbox_skeleton/license.txt
new file mode 100755
index 000000000..c505c8b97
--- /dev/null
+++ b/contrib/toolbox_skeleton/license.txt
@@ -0,0 +1,9 @@
+Licence of the Toolbox_skeleton
+
+Please update this file with the license terms (Copy and paste the license agreement).
+Note that all the files of the toolbox_skeleton are released into the public domain.
+Therefor, there is no limitation on the use of these files.
+
+Please note that Scilab is released under the terms of the CeCILL license :
+http://www.cecill.info/index.en.html
+
diff --git a/contrib/toolbox_skeleton/locales/en_US.po b/contrib/toolbox_skeleton/locales/en_US.po
new file mode 100755
index 000000000..7ba878bf6
--- /dev/null
+++ b/contrib/toolbox_skeleton/locales/en_US.po
@@ -0,0 +1,35 @@
+msgid ""
+msgstr ""
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: sci_gateway\c\sci_cerror.c:17
+msgid "%s: I'm waiting only one argument.\n"
+msgstr ""
+
+#: sci_gateway\c\sci_cerror.c:22
+#: macros\scilab_error.sci:17
+msgid "%s: Yeah! %d is a good number of arguments but I prefer fail, sorry.\n"
+msgstr ""
+
+#: macros\scilab_error.sci:13
+msgid "%s: I''m waiting for only one argument.\n"
+msgstr ""
+
+msgid "Rectangle"
+msgstr ""
+
+msgid "My Title"
+msgstr ""
+
+msgid "Height"
+msgstr ""
+
+msgid "Width"
+msgstr ""
+
+msgid "Color"
+msgstr ""
+
+msgid "Outline"
+msgstr ""
diff --git a/contrib/toolbox_skeleton/locales/fr_FR.po b/contrib/toolbox_skeleton/locales/fr_FR.po
new file mode 100755
index 000000000..e585710e3
--- /dev/null
+++ b/contrib/toolbox_skeleton/locales/fr_FR.po
@@ -0,0 +1,32 @@
+msgid ""
+msgstr ""
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: sci_gateway\c\sci_cerror.c:17
+#: macros\scilab_error.sci:13
+msgid "%s: I'm waiting for only one argument.\n"
+msgstr "%s : Je n'attends qu'un seul argument.\n"
+
+#: sci_gateway\c\sci_cerror.c:22
+#: macros\scilab_error.sci:17
+msgid "%s: Yeah! %d is a good number of arguments but I prefer fail, sorry.\n"
+msgstr "%s : Oui ! %d est un bon nombre d'arguments mais je préfère échouer, désolé.\n"
+
+msgid "Rectangle"
+msgstr "Rectangle"
+
+msgid "My Title"
+msgstr "Mon Titre"
+
+msgid "Height"
+msgstr "Hauteur"
+
+msgid "Width"
+msgstr "Largeur"
+
+msgid "Color"
+msgstr "Couleur"
+
+msgid "Outline"
+msgstr "Contour"
diff --git a/contrib/toolbox_skeleton/macros/buildmacros.sce b/contrib/toolbox_skeleton/macros/buildmacros.sce
new file mode 100755
index 000000000..5a872bb27
--- /dev/null
+++ b/contrib/toolbox_skeleton/macros/buildmacros.sce
@@ -0,0 +1,10 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+function buildmacros()
+ macros_path = get_absolute_file_path("buildmacros.sce");
+ tbx_build_macros(TOOLBOX_NAME, macros_path);
+endfunction
+
+buildmacros();
+clear buildmacros; // remove buildmacros on stack
+
diff --git a/contrib/toolbox_skeleton/macros/cleanmacros.sce b/contrib/toolbox_skeleton/macros/cleanmacros.sce
new file mode 100755
index 000000000..a6428b2a8
--- /dev/null
+++ b/contrib/toolbox_skeleton/macros/cleanmacros.sce
@@ -0,0 +1,20 @@
+// ====================================================================
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+// ====================================================================
+function cleanmacros()
+
+ libpath = get_absolute_file_path("cleanmacros.sce");
+
+ binfiles = ls(libpath+"/*.bin");
+ for i = 1:size(binfiles,"*")
+ mdelete(binfiles(i));
+ end
+
+ mdelete(libpath+"/names");
+ mdelete(libpath+"/lib");
+endfunction
+
+cleanmacros();
+clear cleanmacros; // remove cleanmacros on stack
+
+// ====================================================================
diff --git a/contrib/toolbox_skeleton/macros/scilab_error.sci b/contrib/toolbox_skeleton/macros/scilab_error.sci
new file mode 100755
index 000000000..9eadde044
--- /dev/null
+++ b/contrib/toolbox_skeleton/macros/scilab_error.sci
@@ -0,0 +1,20 @@
+// ====================================================================
+// Template toolbox_skeleton
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+// ====================================================================
+//
+//
+function scilab_error(varargin)
+
+ argSize = size(varargin);
+
+ //in toolboxes, use "_d" or "dgettext" to your localized messages
+ if argSize <> 1 then
+ error(999, msprintf(_d("toolbox_skeleton", "%s: I''m waiting for only one argument.\n"), "scilab_error"));
+ end
+
+ if argSize == 1 then
+ error(999, msprintf(dgettext("toolbox_skeleton", "%s: Yeah! %d is a good number of arguments but I prefer fail, sorry.\n"), "scilab_error", 1));
+ end
+endfunction
+// ====================================================================
diff --git a/contrib/toolbox_skeleton/macros/scilab_sum.sci b/contrib/toolbox_skeleton/macros/scilab_sum.sci
new file mode 100755
index 000000000..b9c5fa0c4
--- /dev/null
+++ b/contrib/toolbox_skeleton/macros/scilab_sum.sci
@@ -0,0 +1,10 @@
+// ====================================================================
+// Template toolbox_skeleton
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+// ====================================================================
+//
+//
+function s = scilab_sum(valA,valB)
+ s = valA + valB;
+endfunction
+// ====================================================================
diff --git a/contrib/toolbox_skeleton/readme.txt b/contrib/toolbox_skeleton/readme.txt
new file mode 100755
index 000000000..ed1db5f88
--- /dev/null
+++ b/contrib/toolbox_skeleton/readme.txt
@@ -0,0 +1,7 @@
+readme.txt of the toolbox_skeleton
+
+Please update this file to provide information about your toolbox:
+* what it is doing
+* the author
+* a few words about the license
+
diff --git a/contrib/toolbox_skeleton/sci_gateway/builder_gateway.sce b/contrib/toolbox_skeleton/sci_gateway/builder_gateway.sce
new file mode 100755
index 000000000..5fceee274
--- /dev/null
+++ b/contrib/toolbox_skeleton/sci_gateway/builder_gateway.sce
@@ -0,0 +1,15 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+function builder_gateway()
+
+ sci_gateway_dir = get_absolute_file_path("builder_gateway.sce");
+ languages = ["fortran" "c" "cpp"];
+
+ tbx_builder_gateway_lang(languages,sci_gateway_dir);
+ tbx_build_gateway_loader(languages,sci_gateway_dir);
+ tbx_build_gateway_clean(languages,sci_gateway_dir);
+
+endfunction
+
+builder_gateway()
+clear builder_gateway; // remove builder_gateway on stack
diff --git a/contrib/toolbox_skeleton/sci_gateway/c/builder_gateway_c.sce b/contrib/toolbox_skeleton/sci_gateway/c/builder_gateway_c.sce
new file mode 100755
index 000000000..31121feb5
--- /dev/null
+++ b/contrib/toolbox_skeleton/sci_gateway/c/builder_gateway_c.sce
@@ -0,0 +1,23 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+function builder_gw_c()
+
+ includes_src_c = ilib_include_flag(get_absolute_file_path("builder_gateway_c.sce") + "../../src/c");
+
+ // PutLhsVar managed by user in sci_sum and in sci_sub
+ // if you do not this variable, PutLhsVar is added
+ // in gateway generated (default mode in scilab 4.x and 5.x)
+ WITHOUT_AUTO_PUTLHSVAR = %t;
+
+ tbx_build_gateway("skeleton_c", ..
+ ["c_sum","sci_csum";"c_sub","sci_csub";"c_multiplybypi","sci_multiplybypi";"foo","sci_foo";"c_error","sci_cerror"], ..
+ ["sci_csum.c","sci_csub.c","sci_multiplybypi.c","sci_foo.c","sci_cerror.c"], ..
+ get_absolute_file_path("builder_gateway_c.sce"), ..
+ ["../../src/c/libcsum"], ..
+ "", ..
+ includes_src_c);
+
+endfunction
+
+builder_gw_c();
+clear builder_gw_c; // remove builder_gw_c on stack
diff --git a/contrib/toolbox_skeleton/sci_gateway/c/sci_cerror.c b/contrib/toolbox_skeleton/sci_gateway/c/sci_cerror.c
new file mode 100755
index 000000000..c6071a856
--- /dev/null
+++ b/contrib/toolbox_skeleton/sci_gateway/c/sci_cerror.c
@@ -0,0 +1,26 @@
+/* ==================================================================== */
+/* Template toolbox_skeleton */
+/* This file is released under the 3-clause BSD license. See COPYING-BSD. */
+/* ==================================================================== */
+#include "api_scilab.h"
+#include "Scierror.h"
+#include "MALLOC.h"
+#include <localization.h>
+
+/* ==================================================================== */
+int sci_cerror(char *fname)
+{
+ int iRhs = nbInputArgument(pvApiCtx);
+
+ if (iRhs != 1)
+ {
+ Scierror(999, _d("toolbox_skeleton", "%s: I'm waiting for only one argument.\n"), fname);
+ return 0;
+ }
+ else
+ {
+ Scierror(999, _d("toolbox_skeleton", "%s: Yeah! %d is a good number of arguments but I prefer fail, sorry.\n"), fname, 1);
+ return 0;
+ }
+}
+/* ==================================================================== */
diff --git a/contrib/toolbox_skeleton/sci_gateway/c/sci_csub.c b/contrib/toolbox_skeleton/sci_gateway/c/sci_csub.c
new file mode 100755
index 000000000..a510be8e7
--- /dev/null
+++ b/contrib/toolbox_skeleton/sci_gateway/c/sci_csub.c
@@ -0,0 +1,119 @@
+/* ==================================================================== */
+/* Template toolbox_skeleton */
+/* This file is released under the 3-clause BSD license. See COPYING-BSD. */
+/* ==================================================================== */
+#include "api_scilab.h"
+#include "Scierror.h"
+#include "MALLOC.h"
+#include "csub.h"
+#include <localization.h>
+
+/* ==================================================================== */
+int sci_csub(char *fname)
+{
+ SciErr sciErr;
+
+ int m1 = 0, n1 = 0;
+ int *piAddressVarOne = NULL;
+ double *pdVarOne = NULL;
+ int iType1 = 0;
+
+ int m2 = 0, n2 = 0;
+ int *piAddressVarTwo = NULL;
+ double *pdVarTwo = NULL;
+ int iType2 = 0;
+
+ int m_out = 0, n_out = 0;
+ double dOut = 0.0;
+
+ /* --> result = csub(3,8)
+ /* check that we have only 2 input arguments */
+ /* check that we have only 1 output argument */
+ CheckInputArgument(pvApiCtx, 2, 2);
+ CheckOutputArgument(pvApiCtx, 1, 1);
+
+ /* get Address of inputs */
+ sciErr = getVarAddressFromPosition(pvApiCtx, 1, &piAddressVarOne);
+ if (sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ return 0;
+ }
+
+ sciErr = getVarAddressFromPosition(pvApiCtx, 2, &piAddressVarTwo);
+ if (sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ return 0;
+ }
+
+ /* check input type */
+ sciErr = getVarType(pvApiCtx, piAddressVarOne, &iType1);
+ if (sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ return 0;
+ }
+
+ if ( iType1 != sci_matrix )
+ {
+ Scierror(999, _("%s: Wrong type for input argument #%d: A scalar expected.\n"), fname, 1);
+ return 0;
+ }
+
+ sciErr = getVarType(pvApiCtx, piAddressVarTwo, &iType2);
+ if (sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ return 0;
+ }
+
+ if ( iType2 != sci_matrix )
+ {
+ Scierror(999, _("%s: Wrong type for input argument #%d: A scalar expected.\n"), fname, 2);
+ return 0;
+ }
+
+ /* get matrix */
+ sciErr = getMatrixOfDouble(pvApiCtx, piAddressVarOne, &m1, &n1, &pdVarOne);
+ if (sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ return 0;
+ }
+
+ sciErr = getMatrixOfDouble(pvApiCtx, piAddressVarTwo, &m2, &n2, &pdVarTwo);
+ if (sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ return 0;
+ }
+
+ /* check size */
+ if ( (m1 != n1) && (n1 != 1) )
+ {
+ Scierror(999, _("%s: Wrong size for input argument #%d: A scalar expected.\n"), fname, 1);
+ return 0;
+ }
+ if ( (m2 != n2) && (n2 != 1) )
+ {
+ Scierror(999, _("%s: Wrong size for input argument #%d: A scalar expected.\n"), fname, 2);
+ return 0;
+ }
+
+ /* call c function csub */
+ csub(&pdVarOne[0], &pdVarTwo[0], &dOut);
+
+ /* create result on stack */
+ m_out = 1;
+ n_out = 1;
+ createMatrixOfDouble(pvApiCtx, nbInputArgument(pvApiCtx) + 1, m_out, n_out, &dOut);
+
+ AssignOutputVariable(pvApiCtx, 1) = nbInputArgument(pvApiCtx) + 1;
+
+ ReturnArguments(pvApiCtx);
+
+ return 0;
+}
+/* ==================================================================== */
+
diff --git a/contrib/toolbox_skeleton/sci_gateway/c/sci_csum.c b/contrib/toolbox_skeleton/sci_gateway/c/sci_csum.c
new file mode 100755
index 000000000..a4729c56b
--- /dev/null
+++ b/contrib/toolbox_skeleton/sci_gateway/c/sci_csum.c
@@ -0,0 +1,83 @@
+/* ==================================================================== */
+/* Template toolbox_skeleton */
+/* This file is released under the 3-clause BSD license. See COPYING-BSD. */
+/* ==================================================================== */
+#include "api_scilab.h"
+#include "Scierror.h"
+#include "MALLOC.h"
+#include "csum.h"
+#include <localization.h>
+
+/* ==================================================================== */
+int sci_csum(char *fname)
+{
+ SciErr sciErr;
+
+ int *piAddressVarOne = NULL;
+ double dVarOne = 0.0;
+
+ int *piAddressVarTwo = NULL;
+ double dVarTwo = 0.0;
+
+ double dOut = 0.0;
+
+ /* --> result = csum(3,8)
+ /* check that we have only 2 input arguments */
+ /* check that we have only 1 output argument */
+ CheckInputArgument(pvApiCtx, 2, 2) ;
+ CheckOutputArgument(pvApiCtx, 1, 1) ;
+
+ /* get Address of inputs */
+ sciErr = getVarAddressFromPosition(pvApiCtx, 1, &piAddressVarOne);
+ if (sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ return 0;
+ }
+
+ sciErr = getVarAddressFromPosition(pvApiCtx, 2, &piAddressVarTwo);
+ if (sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ return 0;
+ }
+
+ /* check input type */
+ if ( !isDoubleType(pvApiCtx, piAddressVarOne) )
+ {
+ Scierror(999, _("%s: Wrong type for input argument #%d: A scalar expected.\n"), fname, 1);
+ return 0;
+ }
+
+ if ( !isDoubleType(pvApiCtx, piAddressVarTwo) )
+ {
+ Scierror(999, _("%s: Wrong type for input argument #%d: A scalar expected.\n"), fname, 2);
+ return 0;
+ }
+
+ if ( getScalarDouble(pvApiCtx, piAddressVarOne, &dVarOne) )
+ {
+ Scierror(999, _("%s: Wrong size for input argument #%d: A scalar expected.\n"), fname, 1);
+ return 0;
+ }
+
+ if ( getScalarDouble(pvApiCtx, piAddressVarTwo, &dVarTwo) )
+ {
+ Scierror(999, _("%s: Wrong size for input argument #%d: A scalar expected.\n"), fname, 2);
+ return 0;
+ }
+
+ /* call c function csum */
+ csum(&dVarOne, &dVarTwo, &dOut);
+
+ /* create result on stack */
+ createScalarDouble(pvApiCtx, nbInputArgument(pvApiCtx) + 1, dOut);
+
+ AssignOutputVariable(pvApiCtx, 1) = nbInputArgument(pvApiCtx) + 1;
+
+ ReturnArguments(pvApiCtx);
+
+ return 0;
+}
+/* ==================================================================== */
+
diff --git a/contrib/toolbox_skeleton/sci_gateway/c/sci_foo.c b/contrib/toolbox_skeleton/sci_gateway/c/sci_foo.c
new file mode 100755
index 000000000..976a9f7be
--- /dev/null
+++ b/contrib/toolbox_skeleton/sci_gateway/c/sci_foo.c
@@ -0,0 +1,139 @@
+/* ==================================================================== */
+/* Template toolbox_skeleton */
+/* Example detail in "API_scilab getting started" help page */
+/* This file is released under the 3-clause BSD license. See COPYING-BSD. */
+/* ==================================================================== */
+#include "api_scilab.h"
+#include "BOOL.h"
+#include <localization.h>
+
+/* ==================================================================== */
+int sci_foo(char *fname, unsigned long fname_len)
+{
+ // Error management variable
+ SciErr sciErr;
+
+ ////////// Variables declaration //////////
+ int m1 = 0, n1 = 0;
+ int *piAddressVarOne = NULL;
+ double *matrixOfDouble = NULL;
+ double *newMatrixOfDouble = NULL;
+
+ int m2 = 0, n2 = 0;
+ int *piAddressVarTwo = NULL;
+ int *matrixOfBoolean = NULL;
+ int *newMatrixOfBoolean = NULL;
+ int i = 0;
+
+
+ ////////// Check the number of input and output arguments //////////
+ /* --> [c, d] = foo(a, b) */
+ /* check that we have only 2 input arguments */
+ /* check that we have only 2 output argument */
+ CheckInputArgument(pvApiCtx, 2, 2) ;
+ CheckOutputArgument(pvApiCtx, 2, 2) ;
+
+
+ ////////// Manage the first input argument (double) //////////
+ /* get Address of inputs */
+ sciErr = getVarAddressFromPosition(pvApiCtx, 1, &piAddressVarOne);
+ if (sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ return 0;
+ }
+
+ /* Check that the first input argument is a real matrix (and not complex) */
+ if ( !isDoubleType(pvApiCtx, piAddressVarOne) || isVarComplex(pvApiCtx, piAddressVarOne) )
+ {
+ Scierror(999, _("%s: Wrong type for input argument #%d: A real matrix expected.\n"), fname, 1);
+ return 0;
+ }
+
+ /* get matrix */
+ sciErr = getMatrixOfDouble(pvApiCtx, piAddressVarOne, &m1, &n1, &matrixOfDouble);
+ if (sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ return 0;
+ }
+
+ ////////// Manage the second input argument (boolean) //////////
+
+ /* get Address of inputs */
+ sciErr = getVarAddressFromPosition(pvApiCtx, 2, &piAddressVarTwo);
+ if (sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ return 0;
+ }
+
+ if ( !isBooleanType(pvApiCtx, piAddressVarTwo) )
+ {
+ Scierror(999, _("%s: Wrong type for input argument #%d: A boolean matrix expected.\n"), fname, 2);
+ return 0;
+ }
+
+ /* get matrix */
+ sciErr = getMatrixOfBoolean(pvApiCtx, piAddressVarTwo, &m2, &n2, &matrixOfBoolean);
+ if (sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ return 0;
+ }
+
+ ////////// Check the consistency of the two input arguments //////////
+
+ if ((m1 != m2) | - (n1 != n2))
+ {
+ Scierror(999, _("%s: Wrong size for input arguments: Same size expected.\n"), fname, 1);
+ return 0;
+ }
+
+
+ newMatrixOfDouble = (double*)malloc(sizeof(double) * m1 * n1);
+ ////////// Application code //////////
+ // Could be replaced by a call to a library
+
+ for (i = 0; i < m1 * n1; i++)
+ {
+ /* For each element of the matrix, multiply by 2 */
+ newMatrixOfDouble[i] = matrixOfDouble[i] * 2;
+ }
+
+ newMatrixOfBoolean = (int*)malloc(sizeof(double) * m2 * n2);
+ for (i = 0; i < m2 * n2; i++)
+ {
+ /* For each element of the matrix, invert the value */
+ newMatrixOfBoolean[i] = matrixOfBoolean[i] == TRUE ? FALSE : TRUE;
+ }
+
+ ////////// Create the output arguments //////////
+
+ /* Create the matrix as return of the function */
+ sciErr = createMatrixOfDouble(pvApiCtx, nbInputArgument(pvApiCtx) + 1, m1, n1, newMatrixOfDouble);
+ if (sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ return 0;
+ }
+
+ /* Create the matrix as return of the function */
+ sciErr = createMatrixOfBoolean(pvApiCtx, nbInputArgument(pvApiCtx) + 2, m2, n2, newMatrixOfBoolean);
+ if (sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ return 0;
+ }
+
+ ////////// Return the output arguments to the Scilab engine //////////
+
+ AssignOutputVariable(pvApiCtx, 1) = nbInputArgument(pvApiCtx) + 1;
+ AssignOutputVariable(pvApiCtx, 2) = nbInputArgument(pvApiCtx) + 2;
+
+ ReturnArguments(pvApiCtx);
+
+ return 0;
+}
+/* ==================================================================== */
+
diff --git a/contrib/toolbox_skeleton/sci_gateway/c/sci_multiplybypi.c b/contrib/toolbox_skeleton/sci_gateway/c/sci_multiplybypi.c
new file mode 100755
index 000000000..edd5b70b7
--- /dev/null
+++ b/contrib/toolbox_skeleton/sci_gateway/c/sci_multiplybypi.c
@@ -0,0 +1,83 @@
+/* ==================================================================== */
+/* Template toolbox_skeleton */
+/* This file is released under the 3-clause BSD license. See COPYING-BSD. */
+/* ==================================================================== */
+#include "api_scilab.h"
+#include "Scierror.h"
+#include "MALLOC.h"
+#include "multiplybypi.h"
+#include <localization.h>
+
+/* ==================================================================== */
+int sci_multiplybypi(char *fname)
+{
+ SciErr sciErr;
+
+ int m1 = 0, n1 = 0;
+ int *piAddressVarOne = NULL;
+ double *matrixOfDouble = NULL;
+ int iType1 = 0;
+ int i = 0;
+
+ /* --> result = multiplybypi(8) */
+ /* --> result = multiplybypi([12, 42; 42, 12]) */
+ /* check that we have only 1 input argument */
+ /* check that we have only 1 output argument */
+ CheckInputArgument(pvApiCtx, 1, 1) ;
+ CheckOutputArgument(pvApiCtx, 1, 1) ;
+
+ /* get Address of inputs */
+ sciErr = getVarAddressFromPosition(pvApiCtx, 1, &piAddressVarOne);
+ if (sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ return 0;
+ }
+
+
+ /* check input type */
+ sciErr = getVarType(pvApiCtx, piAddressVarOne, &iType1);
+ if (sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ return 0;
+ }
+
+ if ( iType1 != sci_matrix )
+ {
+ Scierror(999, "%s: Wrong type for input argument #%d: A matrix expected.\n", fname, 1);
+ return 0;
+ }
+
+ /* get matrix */
+ sciErr = getMatrixOfDouble(pvApiCtx, piAddressVarOne, &m1, &n1, &matrixOfDouble);
+ if (sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ return 0;
+ }
+
+ /* The difference with the csum & csub is that we give the argument as copy
+ * and not as reference */
+ for (i = 0; i < m1 * n1; i++)
+ {
+ /* For each element of the matrix, multiply by pi */
+ matrixOfDouble[i] = multiplybypi(matrixOfDouble[i]);
+ }
+
+ /* Create the matrix as return of the function */
+ createMatrixOfDouble(pvApiCtx, nbInputArgument(pvApiCtx) + 1, m1, n1, matrixOfDouble);
+ if (sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ return 0;
+ }
+
+ AssignOutputVariable(pvApiCtx, 1) = nbInputArgument(pvApiCtx) + 1;
+
+ ReturnArguments(pvApiCtx);
+
+ return 0;
+}
+/* ==================================================================== */
+
diff --git a/contrib/toolbox_skeleton/sci_gateway/cpp/builder_gateway_cpp.sce b/contrib/toolbox_skeleton/sci_gateway/cpp/builder_gateway_cpp.sce
new file mode 100755
index 000000000..074304501
--- /dev/null
+++ b/contrib/toolbox_skeleton/sci_gateway/cpp/builder_gateway_cpp.sce
@@ -0,0 +1,13 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+function builder_gw_cpp()
+
+ tbx_build_gateway("skeleton_cpp", ..
+ ["cpp_find","sci_cpp_find"], ..
+ ["sci_cpp_find.cxx"], ..
+ get_absolute_file_path("builder_gateway_cpp.sce"));
+
+endfunction
+
+builder_gw_cpp();
+clear builder_gw_cpp; // remove builder_gw_cpp on stack
diff --git a/contrib/toolbox_skeleton/sci_gateway/cpp/sci_cpp_find.cxx b/contrib/toolbox_skeleton/sci_gateway/cpp/sci_cpp_find.cxx
new file mode 100755
index 000000000..b0e7179d4
--- /dev/null
+++ b/contrib/toolbox_skeleton/sci_gateway/cpp/sci_cpp_find.cxx
@@ -0,0 +1,165 @@
+/* ==================================================================== */
+/* Template toolbox_skeleton */
+/* This file is released under the 3-clause BSD license. See COPYING-BSD. */
+/* ==================================================================== */
+#include <string>
+/* ==================================================================== */
+extern "C"
+{
+/* ==================================================================== */
+ #include "api_scilab.h"
+ #include "Scierror.h"
+ #include "MALLOC.h"
+ #include <localization.h>
+
+/* ==================================================================== */
+ int sci_cpp_find(char *fname)
+ {
+ SciErr sciErr;
+
+ int m1 = 0, n1 = 0;
+ int *piAddressVarOne = NULL;
+ char *pStVarOne = NULL;
+ int lenStVarOne = 0;
+ int iType1 = 0;
+
+ int m2 = 0, n2 = 0;
+ int *piAddressVarTwo = NULL;
+ char *pStVarTwo = NULL;
+ int lenStVarTwo = 0;
+ int iType2 = 0;
+
+ /* Check the number of input argument */
+ CheckInputArgument(pvApiCtx, 2,2);
+
+ /* Check the number of output argument */
+ CheckOutputArgument(pvApiCtx, 1,1);
+
+ /* get Address of inputs */
+ sciErr = getVarAddressFromPosition(pvApiCtx, 1, &piAddressVarOne);
+ if(sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ return 0;
+ }
+ sciErr = getVarAddressFromPosition(pvApiCtx, 2, &piAddressVarTwo);
+ if(sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ return 0;
+ }
+
+ /* checks types */
+ sciErr = getVarType(pvApiCtx, piAddressVarOne, &iType1);
+ if(sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ return 0;
+ }
+
+ if ( iType1 != sci_strings )
+ {
+ Scierror(999,_("%s: Wrong type for input argument #%d: A string expected.\n"),fname,1);
+ return 0;
+ }
+
+ sciErr = getVarType(pvApiCtx, piAddressVarTwo, &iType2);
+ if(sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ return 0;
+ }
+
+ if ( iType2 != sci_strings )
+ {
+ Scierror(999,_("%s: Wrong type for input argument #%d: A string expected.\n"),fname,2);
+ return 0;
+ }
+
+ /* get strings */
+
+ sciErr = getMatrixOfString(pvApiCtx, piAddressVarOne,&m1,&n1,&lenStVarOne,&pStVarOne);
+ if(sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ return 0;
+ }
+
+ /* check size */
+ if ( (m1 != n1) && (n1 != 1) )
+ {
+ Scierror(999,_("%s: Wrong size for input argument #%d: A string expected.\n"),fname,1);
+ return 0;
+ }
+ /* alloc string */
+ pStVarOne = (char*)MALLOC(sizeof(char)*(lenStVarOne + 1));
+ /* get string One */
+ sciErr = getMatrixOfString(pvApiCtx, piAddressVarOne,&m1,&n1,&lenStVarOne,&pStVarOne);
+ if(sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ return 0;
+ }
+
+ sciErr = getMatrixOfString(pvApiCtx, piAddressVarTwo,&m2,&n2,&lenStVarTwo,&pStVarTwo);
+ if(sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ return 0;
+ }
+
+ if ( (m2 != n2) && (n2 != 1) )
+ {
+ Scierror(999,_("%s: Wrong size for input argument #%d: A string expected.\n"),fname,2);
+ return 0;
+ }
+ /* alloc string */
+ pStVarTwo = (char*)MALLOC(sizeof(char)*(lenStVarTwo + 1));
+ /* get string Two */
+ sciErr = getMatrixOfString(pvApiCtx, piAddressVarTwo,&m2,&n2,&lenStVarTwo,&pStVarTwo);
+ if(sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ return 0;
+ }
+
+
+ std::string myMessage (pStVarOne);
+ if (pStVarOne)
+ {
+ FREE(pStVarOne);
+ pStVarOne = NULL;
+ }
+
+ std::string search(pStVarTwo);
+ if (pStVarTwo)
+ {
+ FREE(pStVarTwo);
+ pStVarTwo = NULL;
+ }
+
+ /* Where we will store the position */
+ double dOut = 0.0;
+ if (myMessage.find(search) != std::string::npos)
+ {
+ /* The actual operation */
+ dOut = myMessage.find(search);
+ }
+ else
+ {
+ dOut = -1; /* Substring not found */
+ }
+
+ /* create result on stack */
+ int m_out = 1;
+ int n_out = 1;
+
+ createMatrixOfDouble(pvApiCtx, nbInputArgument(pvApiCtx) + 1, m_out, n_out, &dOut);
+
+ AssignOutputVariable(pvApiCtx, 1) = nbInputArgument(pvApiCtx) + 1;
+
+ return 0;
+ }
+/* ==================================================================== */
+} /* extern "C" */
+/* ==================================================================== */
diff --git a/contrib/toolbox_skeleton/sci_gateway/fortran/builder_gateway_fortran.sce b/contrib/toolbox_skeleton/sci_gateway/fortran/builder_gateway_fortran.sce
new file mode 100755
index 000000000..478320e86
--- /dev/null
+++ b/contrib/toolbox_skeleton/sci_gateway/fortran/builder_gateway_fortran.sce
@@ -0,0 +1,14 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+function builder_gw_fortran()
+
+ tbx_build_gateway("skeleton_fortran", ..
+ ["fortran_sum","sci_fsum"], ..
+ ["sci_fsum.c"], ..
+ get_absolute_file_path("builder_gateway_fortran.sce"), ..
+ ["../../src/fortran/libfsum"]);
+
+endfunction
+
+builder_gw_fortran();
+clear builder_gw_fortran; // remove builder_gw_fortran on stack
diff --git a/contrib/toolbox_skeleton/sci_gateway/fortran/sci_fsum.c b/contrib/toolbox_skeleton/sci_gateway/fortran/sci_fsum.c
new file mode 100755
index 000000000..afcbea083
--- /dev/null
+++ b/contrib/toolbox_skeleton/sci_gateway/fortran/sci_fsum.c
@@ -0,0 +1,124 @@
+/* ==================================================================== */
+/* Template toolbox_skeleton */
+/* This file is released under the 3-clause BSD license. See COPYING-BSD. */
+/* ==================================================================== */
+#include "api_scilab.h"
+#include "Scierror.h"
+#include "MALLOC.h"
+#include <localization.h>
+
+/* ==================================================================== */
+extern int F2C(fsum)(double *a, double *b, double *c);
+/* ==================================================================== */
+int sci_fsum(char *fname)
+{
+ SciErr sciErr;
+
+ int m1 = 0, n1 = 0;
+ int *piAddressVarOne = NULL;
+ double *pdVarOne = NULL;
+ int iType1 = 0;
+
+ int m2 = 0, n2 = 0;
+ int *piAddressVarTwo = NULL;
+ double *pdVarTwo = NULL;
+ int iType2 = 0;
+
+ int m_out = 0, n_out = 0;
+ double dOut = 0.0;
+
+ /* --> result = csum(3,8)
+ /* check that we have only 2 parameters input */
+ /* check that we have only 1 parameters output */
+ CheckInputArgument(pvApiCtx, 2, 2) ;
+ CheckOutputArgument(pvApiCtx, 1, 1) ;
+
+ /* get Address of inputs */
+ sciErr = getVarAddressFromPosition(pvApiCtx, 1, &piAddressVarOne);
+ if (sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ return 0;
+ }
+
+ sciErr = getVarAddressFromPosition(pvApiCtx, 2, &piAddressVarTwo);
+ if (sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ return 0;
+ }
+
+ /* check input type */
+ sciErr = getVarType(pvApiCtx, piAddressVarOne, &iType1);
+ if (sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ return 0;
+ }
+
+ if ( iType1 != sci_matrix )
+ {
+ Scierror(999, _("%s: Wrong type for input argument #%d: A scalar expected.\n"), fname, 1);
+ return 0;
+ }
+
+ sciErr = getVarType(pvApiCtx, piAddressVarTwo, &iType2);
+ if (sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ return 0;
+ }
+
+ if ( iType2 != sci_matrix )
+ {
+ Scierror(999, _("%s: Wrong type for input argument #%d: A scalar expected.\n"), fname, 2);
+ return 0;
+ }
+
+ /* get matrix */
+ sciErr = getMatrixOfDouble(pvApiCtx, piAddressVarOne, &m1, &n1, &pdVarOne);
+ if (sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ return 0;
+ }
+
+ sciErr = getMatrixOfDouble(pvApiCtx, piAddressVarTwo, &m2, &n2, &pdVarTwo);
+ if (sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ return 0;
+ }
+
+ /* check size */
+ if ( (m1 != n1) && (n1 != 1) )
+ {
+ Scierror(999, _("%s: Wrong size for input argument #%d: A scalar expected.\n"), fname, 1);
+ return 0;
+ }
+ if ( (m2 != n2) && (n2 != 1) )
+ {
+ Scierror(999, _("%s: Wrong size for input argument #%d: A scalar expected.\n"), fname, 2);
+ return 0;
+ }
+
+ /* call fortran subroutine fsum */
+ F2C(fsum)(&pdVarOne[0], &pdVarTwo[0], &dOut);
+
+ /* create result on stack */
+ m_out = 1;
+ n_out = 1;
+ sciErr = createMatrixOfDouble(pvApiCtx, nbInputArgument(pvApiCtx) + 1, m_out, n_out, &dOut);
+ if (sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ return 0;
+ }
+ AssignOutputVariable(pvApiCtx, 1) = nbInputArgument(pvApiCtx) + 1;
+
+ return 0;
+}
+/* ==================================================================== */
+
+
+
diff --git a/contrib/toolbox_skeleton/src/builder_src.sce b/contrib/toolbox_skeleton/src/builder_src.sce
new file mode 100755
index 000000000..db7ff7f1d
--- /dev/null
+++ b/contrib/toolbox_skeleton/src/builder_src.sce
@@ -0,0 +1,10 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+function builder_src()
+ langage_src = ["fortran" "c" "java"];
+ path_src = get_absolute_file_path("builder_src.sce");
+ tbx_builder_src_lang(langage_src, path_src);
+endfunction
+
+builder_src();
+clear builder_src; // remove builder_src on stack
diff --git a/contrib/toolbox_skeleton/src/c/builder_c.sce b/contrib/toolbox_skeleton/src/c/builder_c.sce
new file mode 100755
index 000000000..e1bb2ea44
--- /dev/null
+++ b/contrib/toolbox_skeleton/src/c/builder_c.sce
@@ -0,0 +1,22 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+// This macro compiles the files
+
+function builder_c()
+
+ src_c_path = get_absolute_file_path("builder_c.sce");
+
+ CFLAGS = ilib_include_flag(src_c_path);
+
+ tbx_build_src(["csum","csub","multiplybypi"], ..
+ ["csum.c","csub.c","multiplybypi.c"], ..
+ "c", ..
+ src_c_path, ..
+ "", ..
+ "", ..
+ CFLAGS);
+
+endfunction
+
+builder_c();
+clear builder_c; // remove builder_c on stack
diff --git a/contrib/toolbox_skeleton/src/c/csub.c b/contrib/toolbox_skeleton/src/c/csub.c
new file mode 100755
index 000000000..7892acd37
--- /dev/null
+++ b/contrib/toolbox_skeleton/src/c/csub.c
@@ -0,0 +1,12 @@
+/* ==================================================================== */
+/* Template toolbox_skeleton */
+/* This file is released under the 3-clause BSD license. See COPYING-BSD. */
+/* ==================================================================== */
+#include "csub.h"
+/* ==================================================================== */
+int csub(double *a, double *b, double *c)
+{
+ *c = *a - *b;
+ return 0;
+}
+/* ==================================================================== */
diff --git a/contrib/toolbox_skeleton/src/c/csub.h b/contrib/toolbox_skeleton/src/c/csub.h
new file mode 100755
index 000000000..50e3fa0ed
--- /dev/null
+++ b/contrib/toolbox_skeleton/src/c/csub.h
@@ -0,0 +1,18 @@
+/* ==================================================================== */
+/* Template toolbox_skeleton */
+/* This file is released under the 3-clause BSD license. See COPYING-BSD. */
+/* ==================================================================== */
+#ifndef __CSUB_H__
+#define __CSUB_H__
+
+/**
+* csub function
+* @param[in] a
+* @param[in] b
+* @param[in,out] c result of a - b
+* @return 0
+*/
+int csub(double *a, double *b, double *c);
+
+#endif /* __CSUB_H__ */
+
diff --git a/contrib/toolbox_skeleton/src/c/csum.c b/contrib/toolbox_skeleton/src/c/csum.c
new file mode 100755
index 000000000..738f2ae17
--- /dev/null
+++ b/contrib/toolbox_skeleton/src/c/csum.c
@@ -0,0 +1,12 @@
+/* ==================================================================== */
+/* Template toolbox_skeleton */
+/* This file is released under the 3-clause BSD license. See COPYING-BSD. */
+/* ==================================================================== */
+#include "csum.h"
+/* ==================================================================== */
+int csum(double *a, double *b, double *c)
+{
+ *c = *a + *b;
+ return 0;
+}
+/* ==================================================================== */
diff --git a/contrib/toolbox_skeleton/src/c/csum.h b/contrib/toolbox_skeleton/src/c/csum.h
new file mode 100755
index 000000000..151d72cac
--- /dev/null
+++ b/contrib/toolbox_skeleton/src/c/csum.h
@@ -0,0 +1,18 @@
+/* ==================================================================== */
+/* Template toolbox_skeleton */
+/* This file is released under the 3-clause BSD license. See COPYING-BSD. */
+/* ==================================================================== */
+#ifndef __CSUM_H__
+#define __CSUM_H__
+
+/**
+* csum function
+* @param[in] a
+* @param[in] b
+* @param[in,out] c result of a + b
+* @return 0
+*/
+int csum(double *a, double *b, double *c);
+
+#endif /* __CSUM_H__ */
+
diff --git a/contrib/toolbox_skeleton/src/c/multiplybypi.c b/contrib/toolbox_skeleton/src/c/multiplybypi.c
new file mode 100755
index 000000000..42a8c8d89
--- /dev/null
+++ b/contrib/toolbox_skeleton/src/c/multiplybypi.c
@@ -0,0 +1,16 @@
+/* ==================================================================== */
+/* Template toolbox_skeleton */
+/* This file is released under the 3-clause BSD license. See COPYING-BSD. */
+/* ==================================================================== */
+#include <math.h>
+#include "multiplybypi.h"
+/* ==================================================================== */
+#ifndef M_PI
+#define M_PI 3.14159265358979323846
+#endif
+/* ==================================================================== */
+double multiplybypi(double a)
+{
+ return a * M_PI;
+}
+/* ==================================================================== */
diff --git a/contrib/toolbox_skeleton/src/c/multiplybypi.h b/contrib/toolbox_skeleton/src/c/multiplybypi.h
new file mode 100755
index 000000000..c354b8843
--- /dev/null
+++ b/contrib/toolbox_skeleton/src/c/multiplybypi.h
@@ -0,0 +1,17 @@
+/* ==================================================================== */
+/* Template toolbox_skeleton */
+/* This file is released under the 3-clause BSD license. See COPYING-BSD. */
+/* ==================================================================== */
+#ifndef __MULTIPLYBYTWO_H__
+#define __MULTIPLYBYTWO_H__
+
+/**
+* multiplybypi function
+* @param[in] a a double
+* @return a multiplied by two
+*/
+double multiplybypi(double a);
+
+
+#endif /* __MULTIPLYBYTWO_H__ */
+
diff --git a/contrib/toolbox_skeleton/src/cleaner_src.sce b/contrib/toolbox_skeleton/src/cleaner_src.sce
new file mode 100755
index 000000000..5de6a02a0
--- /dev/null
+++ b/contrib/toolbox_skeleton/src/cleaner_src.sce
@@ -0,0 +1,16 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+function cleaner_src()
+ src_dir = get_absolute_file_path("cleaner_src.sce");
+
+ for language = ["c","cpp","fortran"]
+ cleaner_file = src_dir + filesep() + language + filesep() + "cleaner.sce";
+ if isfile(cleaner_file) then
+ exec(cleaner_file);
+ mdelete(cleaner_file);
+ end
+ end
+endfunction
+
+cleaner_src();
+clear cleaner_src; // remove cleaner_src on stack \ No newline at end of file
diff --git a/contrib/toolbox_skeleton/src/fortran/builder_fortran.sce b/contrib/toolbox_skeleton/src/fortran/builder_fortran.sce
new file mode 100755
index 000000000..6bc32857a
--- /dev/null
+++ b/contrib/toolbox_skeleton/src/fortran/builder_fortran.sce
@@ -0,0 +1,13 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+function builder_fortran()
+
+ tbx_build_src(["fsum"], ..
+ ["fsum.f"], ..
+ "f", ..
+ get_absolute_file_path("builder_fortran.sce"));
+
+endfunction
+
+builder_fortran();
+clear builder_fortran; // remove builder_fortran on stack
diff --git a/contrib/toolbox_skeleton/src/fortran/fsum.f b/contrib/toolbox_skeleton/src/fortran/fsum.f
new file mode 100755
index 000000000..b58ce28fd
--- /dev/null
+++ b/contrib/toolbox_skeleton/src/fortran/fsum.f
@@ -0,0 +1,12 @@
+c =================================
+c Template toolbox_skeleton
+c This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+c =================================
+ subroutine fsum(a,b,c)
+c =================================
+ double precision a,b,c
+ c = a + b
+ end
+c =================================
+
diff --git a/contrib/toolbox_skeleton/src/java/builder_java.sce b/contrib/toolbox_skeleton/src/java/builder_java.sce
new file mode 100755
index 000000000..f089090fb
--- /dev/null
+++ b/contrib/toolbox_skeleton/src/java/builder_java.sce
@@ -0,0 +1,25 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+// This macro compiles JAR from Java files
+
+function builder_java()
+ src_java_dir = get_absolute_file_path("builder_java.sce");
+
+ curdir = pwd();
+ cd(src_java_dir);
+
+ jar_dir = fullpath(fullfile(src_java_dir, "../../jar"));
+ if ~isdir(jar_dir)
+ mkdir(jar_dir);
+ end
+
+ package_name = "org.scilab.contrib.toolboxskeleton";
+ jar_file_path = fullfile(jar_dir, package_name + ".jar");
+ ilib_build_jar(jar_file_path, package_name, src_java_dir);
+
+ cd(curdir);
+endfunction
+
+builder_java();
+clear builder_java;
+
diff --git a/contrib/toolbox_skeleton/src/java/org/scilab/contrib/toolboxskeleton/Sum.java b/contrib/toolbox_skeleton/src/java/org/scilab/contrib/toolboxskeleton/Sum.java
new file mode 100755
index 000000000..aa7a7c3ec
--- /dev/null
+++ b/contrib/toolbox_skeleton/src/java/org/scilab/contrib/toolboxskeleton/Sum.java
@@ -0,0 +1,12 @@
+/* ====================================================================== */
+/* Template toolbox_skeleton */
+/* This file is released under the 3-clause BSD license. See COPYING-BSD. */
+/* ====================================================================== */
+
+package org.scilab.contrib.toolboxskeleton;
+
+public class Sum {
+ public static double sum(double a, double b) {
+ return a + b;
+ }
+}
diff --git a/contrib/toolbox_skeleton/tests/unit_tests/c_sum.dia.ref b/contrib/toolbox_skeleton/tests/unit_tests/c_sum.dia.ref
new file mode 100755
index 000000000..badd2efd4
--- /dev/null
+++ b/contrib/toolbox_skeleton/tests/unit_tests/c_sum.dia.ref
@@ -0,0 +1,4 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+//=================================
+assert_checkequal(c_sum(3,5), 8);
+//=================================
diff --git a/contrib/toolbox_skeleton/tests/unit_tests/c_sum.tst b/contrib/toolbox_skeleton/tests/unit_tests/c_sum.tst
new file mode 100755
index 000000000..badd2efd4
--- /dev/null
+++ b/contrib/toolbox_skeleton/tests/unit_tests/c_sum.tst
@@ -0,0 +1,4 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+//=================================
+assert_checkequal(c_sum(3,5), 8);
+//=================================
diff --git a/contrib/toolbox_skeleton/tests/unit_tests/fortran_sum.dia.ref b/contrib/toolbox_skeleton/tests/unit_tests/fortran_sum.dia.ref
new file mode 100755
index 000000000..d244f1f42
--- /dev/null
+++ b/contrib/toolbox_skeleton/tests/unit_tests/fortran_sum.dia.ref
@@ -0,0 +1,4 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+//=================================
+assert_checkequal(fortran_sum(3,5), 8);
+//=================================
diff --git a/contrib/toolbox_skeleton/tests/unit_tests/fortran_sum.tst b/contrib/toolbox_skeleton/tests/unit_tests/fortran_sum.tst
new file mode 100755
index 000000000..d244f1f42
--- /dev/null
+++ b/contrib/toolbox_skeleton/tests/unit_tests/fortran_sum.tst
@@ -0,0 +1,4 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+//=================================
+assert_checkequal(fortran_sum(3,5), 8);
+//=================================
diff --git a/contrib/toolbox_skeleton/tests/unit_tests/java_sum.dia.ref b/contrib/toolbox_skeleton/tests/unit_tests/java_sum.dia.ref
new file mode 100755
index 000000000..fac83d2de
--- /dev/null
+++ b/contrib/toolbox_skeleton/tests/unit_tests/java_sum.dia.ref
@@ -0,0 +1,5 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+//=================================
+jimport org.scilab.contrib.toolboxskeleton.Sum;
+assert_checkequal(Sum.sum(7.0, 5.0), 12.0);
+//=================================
diff --git a/contrib/toolbox_skeleton/tests/unit_tests/java_sum.tst b/contrib/toolbox_skeleton/tests/unit_tests/java_sum.tst
new file mode 100755
index 000000000..fac83d2de
--- /dev/null
+++ b/contrib/toolbox_skeleton/tests/unit_tests/java_sum.tst
@@ -0,0 +1,5 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+//=================================
+jimport org.scilab.contrib.toolboxskeleton.Sum;
+assert_checkequal(Sum.sum(7.0, 5.0), 12.0);
+//=================================
diff --git a/contrib/toolbox_skeleton/tests/unit_tests/scilab_sum.dia.ref b/contrib/toolbox_skeleton/tests/unit_tests/scilab_sum.dia.ref
new file mode 100755
index 000000000..17e7e4047
--- /dev/null
+++ b/contrib/toolbox_skeleton/tests/unit_tests/scilab_sum.dia.ref
@@ -0,0 +1,4 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+//=================================
+assert_checkequal(scilab_sum(3,5), 8);
+//=================================
diff --git a/contrib/toolbox_skeleton/tests/unit_tests/scilab_sum.tst b/contrib/toolbox_skeleton/tests/unit_tests/scilab_sum.tst
new file mode 100755
index 000000000..17e7e4047
--- /dev/null
+++ b/contrib/toolbox_skeleton/tests/unit_tests/scilab_sum.tst
@@ -0,0 +1,4 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+//=================================
+assert_checkequal(scilab_sum(3,5), 8);
+//=================================
diff --git a/contrib/toolbox_skeleton/toolbox_skeleton_redist.iss b/contrib/toolbox_skeleton/toolbox_skeleton_redist.iss
new file mode 100755
index 000000000..e92c9e5e7
--- /dev/null
+++ b/contrib/toolbox_skeleton/toolbox_skeleton_redist.iss
@@ -0,0 +1,57 @@
+;##############################################################################################################
+; Inno Setup Install script for Toolbox_skeleton
+; http://www.jrsoftware.org/isinfo.php
+; This file is released under the 3-clause BSD license. See COPYING-BSD.
+;##############################################################################################################
+; modify this path where is toolbox_skeleton directory
+#define BinariesSourcePath "C:\Programs files\scilab-5.0\contrib\toolbox_skeleton"
+;
+#define Toolbox_skeleton_version "0.1"
+#define CurrentYear "2008"
+#define Toolbox_skeletonDirFilename "toolbox_skeleton"
+;##############################################################################################################
+[Setup]
+; Debut Données de base à renseigner suivant version
+SourceDir={#BinariesSourcePath}
+AppName=Toolbox skeleton
+AppVerName=Toolbox skeleton version 0.1
+DefaultDirName={pf}\{#Toolbox_skeletonDirFilename}
+InfoAfterfile=readme.txt
+LicenseFile=license.txt
+WindowVisible=true
+AppPublisher=Your Company
+BackColorDirection=lefttoright
+AppCopyright=Copyright © {#CurrentYear}
+Compression=lzma/max
+InternalCompressLevel=normal
+SolidCompression=true
+VersionInfoVersion={#Toolbox_skeleton_version}
+VersionInfoCompany=Your Company
+;##############################################################################################################
+[Files]
+; Add here files that you want to add
+Source: loader.sce; DestDir: {app}
+Source: etc\toolbox_skeleton.quit; DestDir: {app}\etc
+Source: etc\toolbox_skeleton.start; DestDir: {app}\etc
+Source: macros\buildmacros.sce; DestDir: {app}\macros
+Source: macros\lib; DestDir: {app}\macros
+Source: macros\names; DestDir: {app}\macros
+Source: macros\*.sci; DestDir: {app}\macros
+Source: macros\*.bin; DestDir: {app}\macros
+Source: sci_gateway\loader_gateway.sce; DestDir: {app}\sci_gateway
+Source: sci_gateway\c\loader.sce; DestDir: {app}\sci_gateway\c
+Source: sci_gateway\c\skeleton_c.dll; DestDir: {app}\sci_gateway\c
+Source: sci_gateway\cpp\loader.sce; DestDir: {app}\sci_gateway\cpp
+Source: sci_gateway\cpp\skeleton_cpp.dll; DestDir: {app}\sci_gateway\cpp
+Source: sci_gateway\fortran\loader.sce; DestDir: {app}\sci_gateway\fortran
+Source: sci_gateway\fortran\skeleton_fortran.dll; DestDir: {app}\sci_gateway\fortran
+Source: src\c\libcsum.dll; DestDir: {app}\src\c
+Source: src\c\loader.sce; DestDir: {app}\src\c
+Source: src\fortran\libfsum.dll; DestDir: {app}\src\fortran
+Source: src\fortran\loader.sce; DestDir: {app}\src\fortran
+Source: tests\*.*; DestDir: {app}\tests; Flags: recursesubdirs
+;Source: includes\*.h; DestDir: {app}\includes; Flags: recursesubdirs
+;Source: locales\*.*; DestDir: {app}\locales; Flags: recursesubdirs
+Source: demos\*.*; DestDir: {app}\locales; Flags: recursesubdirs
+;
+;##############################################################################################################
diff --git a/contrib/xcos_toolbox_skeleton/DESCRIPTION b/contrib/xcos_toolbox_skeleton/DESCRIPTION
new file mode 100755
index 000000000..a41835dca
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/DESCRIPTION
@@ -0,0 +1,33 @@
+Toolbox: xcos_toolbox_skeleton
+
+Title: Xcos toolbox skeleton
+
+Summary: Add some blocks to a palette
+
+Version: 1.1
+
+Author: Clément DAVID <clement.david@scilab-enterprises.com>
+
+Maintainer: Clément DAVID <clement.david@scilab-enterprises.com>
+
+Category: Xcos
+
+Entity: Scilab Enterprises
+
+WebSite: http://www.scilab.org
+
+License: CeCILL
+
+ScilabVersion: >= 5.5
+
+Depends:
+
+Date: 2014-01-15
+
+Description: Example for an Xcos toolbox
+
+ exec builder.sce
+ exec loader.sce
+
+ help xcos_toolbox_skeleton
+
diff --git a/contrib/xcos_toolbox_skeleton/DESCRIPTION-FUNCTIONS b/contrib/xcos_toolbox_skeleton/DESCRIPTION-FUNCTIONS
new file mode 100755
index 000000000..df855fb44
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/DESCRIPTION-FUNCTIONS
@@ -0,0 +1,4 @@
+TBX_SUM_c - block which perform a basic sum of the inputs
+tbx_sum - Scilab native function which perform the same operation as TBX_SUM.
+TBX_NOOP - Scilab or C no-op with any number of inputs and outputs
+
diff --git a/contrib/xcos_toolbox_skeleton/builder.sce b/contrib/xcos_toolbox_skeleton/builder.sce
new file mode 100755
index 000000000..42b191d1a
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/builder.sce
@@ -0,0 +1,53 @@
+// Copyright (C) 2008 - INRIA
+// Copyright (C) 2009-2011 - DIGITEO
+
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+mode(-1);
+lines(0);
+
+function main_builder()
+
+ TOOLBOX_NAME = "xcos_toolbox_skeleton";
+ TOOLBOX_TITLE = "Xcos toolbox skeleton";
+ toolbox_dir = get_absolute_file_path("builder.sce");
+
+ // Check Scilab's version
+ // =============================================================================
+
+ // check minimal version (xcosPal required)
+ if ~isdef("xcosPal") then
+ // and xcos features required
+ error(gettext("Scilab 5.3.2 or more is required."));
+ end
+
+ // Check modules_manager module availability
+ // =============================================================================
+
+ if ~isdef("tbx_build_loader") then
+ error(msprintf(gettext("%s module not installed."), "modules_manager"));
+ end
+
+
+ if ~isdir(toolbox_dir+filesep()+"images"+filesep()+"h5")
+ [status, msg] = mkdir(toolbox_dir+filesep()+"images"+filesep()+"h5");
+ if and(status <> [1 2])
+ error(msg);
+ end
+ end
+
+ // Action
+ // =============================================================================
+
+ tbx_builder_macros(toolbox_dir);
+ tbx_builder_src(toolbox_dir);
+ tbx_builder_gateway(toolbox_dir);
+ tbx_builder_help(toolbox_dir);
+ tbx_build_loader(TOOLBOX_NAME, toolbox_dir);
+ tbx_build_cleaner(TOOLBOX_NAME, toolbox_dir);
+endfunction
+
+if with_module("xcos") then
+ main_builder();
+ clear main_builder; // remove main_builder on stack
+end
diff --git a/contrib/xcos_toolbox_skeleton/changelog.txt b/contrib/xcos_toolbox_skeleton/changelog.txt
new file mode 100755
index 000000000..e9a9d9fc9
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/changelog.txt
@@ -0,0 +1,6 @@
+changelog of the Xcos toolbox skeleton
+
+xcos_toolbox_skeleton (1.0)
+ * Default implementation
+ -- Clément DAVID <clement.david@scilab.org> Tue, 15 Mar 2011 13:34:06 +0100
+
diff --git a/contrib/xcos_toolbox_skeleton/demos/Blocks.zcos b/contrib/xcos_toolbox_skeleton/demos/Blocks.zcos
new file mode 100755
index 000000000..7676bee89
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/demos/Blocks.zcos
Binary files differ
diff --git a/contrib/xcos_toolbox_skeleton/demos/allSum.dem.sce b/contrib/xcos_toolbox_skeleton/demos/allSum.dem.sce
new file mode 100755
index 000000000..9cc980398
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/demos/allSum.dem.sce
@@ -0,0 +1,5 @@
+//
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+demopath = get_absolute_file_path("allSum.dem.sce");
+xcos(demopath+filesep()+".."+filesep()+"examples"+filesep()+"AllSum.zcos") \ No newline at end of file
diff --git a/contrib/xcos_toolbox_skeleton/demos/xcos_toolbox_skeleton.dem.gateway.sce b/contrib/xcos_toolbox_skeleton/demos/xcos_toolbox_skeleton.dem.gateway.sce
new file mode 100755
index 000000000..7b953c516
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/demos/xcos_toolbox_skeleton.dem.gateway.sce
@@ -0,0 +1,13 @@
+//
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+function subdemolist = demo_gateway()
+
+ demopath = get_absolute_file_path("xcos_toolbox_skeleton.dem.gateway.sce");
+ subdemolist = ["All Sum functions overview", "allSum.dem.sce"]; // add demos here
+ subdemolist(:,2) = demopath + subdemolist(:,2);
+
+endfunction
+
+subdemolist = demo_gateway();
+clear demo_gateway; // remove demo_gateway on stack
diff --git a/contrib/xcos_toolbox_skeleton/etc/xcos_toolbox_skeleton.quit b/contrib/xcos_toolbox_skeleton/etc/xcos_toolbox_skeleton.quit
new file mode 100755
index 000000000..4e3b3ef2b
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/etc/xcos_toolbox_skeleton.quit
@@ -0,0 +1 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
diff --git a/contrib/xcos_toolbox_skeleton/etc/xcos_toolbox_skeleton.start b/contrib/xcos_toolbox_skeleton/etc/xcos_toolbox_skeleton.start
new file mode 100755
index 000000000..027851ce1
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/etc/xcos_toolbox_skeleton.start
@@ -0,0 +1,83 @@
+// Copyright (C) 2011 - DIGITEO
+
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+function xcos_skeletonlib = startModule()
+
+ mprintf("Start Xcos toolbox skeleton\n");
+
+ if isdef("xcos_toolbox_skeletonlib") then
+ warning("Xcos toolbox skeleton library is already loaded");
+ return;
+ end
+
+// check minimal version (xcosPal required)
+// =============================================================================
+ if ~isdef('xcosPal') then
+ // and xcos features required
+ error(gettext('Scilab 5.3.2 or more is required.'));
+ end
+// =============================================================================
+// force to load some libraries (dependancies)
+ loadXcosLibs(); loadScicos();
+// =============================================================================
+ etc_tlbx = get_absolute_file_path("xcos_toolbox_skeleton.start");
+ etc_tlbx = getshortpathname(etc_tlbx);
+ root_tlbx = strncpy( etc_tlbx, length(etc_tlbx)-length("\etc\") );
+
+// Load functions library
+// =============================================================================
+ mprintf("\tLoad macros\n");
+ pathmacros = pathconvert( root_tlbx ) + "macros" + filesep();
+ xcos_skeletonlib = lib(pathmacros);
+
+// Add blocks to the Xcos palette
+// =============================================================================
+ mprintf("\tLoad palette\n");
+ exec(pathconvert(root_tlbx+"/macros/loader_pal.sce", %f));
+
+// Load simulation functions
+// =============================================================================
+ mprintf("\tLoad simulations functions\n");
+ verboseMode = ilib_verbose();
+ ilib_verbose(0);
+ exec(pathconvert(root_tlbx+"/src/c/loader.sce", %f));
+ ilib_verbose(verboseMode);
+
+// load gateways
+// =============================================================================
+ mprintf("\tLoad gateways\n");
+ verboseMode = ilib_verbose();
+ ilib_verbose(0);
+ exec(pathconvert(root_tlbx+"/sci_gateway/loader_gateway.sce", %f));
+ ilib_verbose(verboseMode);
+
+// Append Modelica functionnals
+// =============================================================================
+ global %MODELICA_USER_LIBS;
+ %MODELICA_USER_LIBS = [%MODELICA_USER_LIBS ; root_tlbx+"/macros"];
+
+// Load and add help chapter
+// =============================================================================
+ if or(getscilabmode() == ["NW";"STD"]) then
+ mprintf("\tLoad help\n");
+ path_addchapter = pathconvert(root_tlbx+"/jar");
+ if ( isdir(path_addchapter) <> [] ) then
+ add_help_chapter("Xcos toolbox skeleton", path_addchapter, %F);
+ end
+ end
+
+// Load demos
+// =============================================================================
+ if or(getscilabmode() == ["NW";"STD"]) then
+ mprintf("\tLoad demos\n");
+ pathdemos = pathconvert(root_tlbx+"/demos/xcos_toolbox_skeleton.dem.gateway.sce", %F, %T);
+ add_demo("Xcos toolbox skeleton", pathdemos);
+ end
+
+endfunction
+
+if with_module('xcos') then
+ xcos_skeletonlib = startModule();
+ clear startModule; // remove startModule on stack
+end
diff --git a/contrib/xcos_toolbox_skeleton/examples/AllSum.zcos b/contrib/xcos_toolbox_skeleton/examples/AllSum.zcos
new file mode 100755
index 000000000..15ad06662
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/examples/AllSum.zcos
Binary files differ
diff --git a/contrib/xcos_toolbox_skeleton/help/builder_help.sce b/contrib/xcos_toolbox_skeleton/help/builder_help.sce
new file mode 100755
index 000000000..42729d12b
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/help/builder_help.sce
@@ -0,0 +1,4 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+tbx_builder_help_lang(["en_US"], ..
+get_absolute_file_path("builder_help.sce"));
diff --git a/contrib/xcos_toolbox_skeleton/help/cleaner_help.sce b/contrib/xcos_toolbox_skeleton/help/cleaner_help.sce
new file mode 100755
index 000000000..a2b5e7ef2
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/help/cleaner_help.sce
@@ -0,0 +1,21 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+function cleaner_help()
+ path = get_absolute_file_path("cleaner_help.sce");
+ langdirs = dir(path);
+ langdirs = langdirs.name(langdirs.isdir);
+
+ for l = 1:size(langdirs, "*")
+ masterfile = fullpath(path + filesep() + langdirs(l) + "/master_help.xml");
+ mdelete(masterfile);
+
+ jarfile = fullpath(path + "/../jar/scilab_" + langdirs(l) + "_help.jar");
+ mdelete(jarfile);
+
+ tmphtmldir = fullpath(path + "/" + langdirs(l) + "/scilab_" + langdirs(l) + "_help");
+ rmdir(tmphtmldir, "s");
+ end
+endfunction
+
+cleaner_help();
+clear cleaner_help;
diff --git a/contrib/xcos_toolbox_skeleton/help/en_US/TBX_SUM_c.xml b/contrib/xcos_toolbox_skeleton/help/en_US/TBX_SUM_c.xml
new file mode 100755
index 000000000..ca66ca7ce
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/help/en_US/TBX_SUM_c.xml
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="TBX_SUM_c">
+ <refnamediv>
+ <refname>TBX_SUM_c</refname>
+ <refpurpose>Simple sum with 2 inputs and 1 output.</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Block Screenshot</title>
+ <para>
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata align="center" fileref="../../images/gif/TBX_SUM_c.gif" valign="middle"/>
+ </imageobject>
+ </inlinemediaobject>
+ </para>
+ </refsection>
+ <refsection id="Contents_TBX_SUM_c">
+ <title>Contents</title>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <link linkend="TBX_SUM_c">TBX_SUM_c block</link>
+ </para>
+ </listitem>
+ <listitem>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <xref linkend="Description_TBX_SUM_c">Description</xref>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <xref linkend="Interfacingfunction_TBX_SUM_c">Interfacing function</xref>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <xref linkend="Computationalfunction_TBX_SUM_c">Computational function</xref>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <xref linkend="SeeAlso_TBX_SUM_c">See also</xref>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+ </itemizedlist>
+ </refsection>
+ <refsection id="Description_TBX_SUM_c">
+ <title>Description</title>
+ <para>Perform the sum of the two inputs.</para>
+ </refsection>
+ <refsection id="Interfacingfunction_TBX_SUM_c">
+ <title>Interfacing function</title>
+ <itemizedlist>
+ <listitem>
+ <para>macros/TBX_SUM_c.sci</para>
+ </listitem>
+ </itemizedlist>
+ </refsection>
+ <refsection id="Computationalfunction_TBX_SUM_c">
+ <title>Computational function</title>
+ <itemizedlist>
+ <listitem>
+ <para>src/c/block_sum.c</para>
+ </listitem>
+ </itemizedlist>
+ </refsection>
+ <refsection id="SeeAlso_TBX_SUM_c">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="TBX_SUM_c">TBX_SUM_c</link> : corresponding scilab functionnality
+ </member>
+ <member>
+ <link type="scilab" linkend="scilab.help/sum">Link to the Scilab help page</link>
+ </member>
+ <member>
+ <link type="scilab" linkend="scilab.help/ABS_VALUE">Link to an Xcos help page</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/contrib/xcos_toolbox_skeleton/help/en_US/available_blocks.xml b/contrib/xcos_toolbox_skeleton/help/en_US/available_blocks.xml
new file mode 100755
index 000000000..2f02ea181
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/help/en_US/available_blocks.xml
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" version="5.0-subset Scilab" xml:id="xcos_toolbox_skeleton_available_blocks">
+ <refnamediv>
+ <refname>Available blocks</refname>
+ <refpurpose>Example page to document some fonctionnalities</refpurpose>
+ </refnamediv>
+ <refsection>
+ <title>Schema</title>
+ <link type="scilab" linkend="xcos_toolbox_skeleton.xcos/demos/Blocks.zcos">Open the schema</link>
+ <para>
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata align="center" fileref="../../demos/Blocks.zcos" valign="middle"/>
+ </imageobject>
+ </inlinemediaobject>
+ </para>
+ </refsection>
+ <refsection>
+ <title>Description</title>
+ <para>
+ This page describe how to use the Xcos specific helptools provided with Scilab. Using these tools you can automatically generate a diagram view and add a link to open it inside Xcos.
+ </para>
+ <para>
+ To add a link to an Xcos schema inside an help page, you should use the standard <literal>link</literal> element with a <literal>type="scilab"</literal> attribute and a toolbox specific <literal>linkend</literal> url.
+ </para>
+ <para>
+ Example for the <literal>xcos_toolbox_skeleton</literal> toolbox:
+
+ </para>
+ <programlisting role="xml"><![CDATA[
+...
+<link type="scilab" linkend="xcos_toolbox_skeleton.xcos/demos/Blocks.zcos">Open the schema</link>
+...
+]]></programlisting>
+ <para>
+ To render an Xcos schema inside an help page, you should use the standard <literal>imagedata</literal> element with a <literal>fileref</literal> attribute to an Xcos schema.
+ </para>
+ <para>
+ Example for the <literal>xcos_toolbox_skeleton</literal> toolbox and the <literal>demos/Blocks.zcos</literal>:
+ </para>
+ <programlisting role="xml"><![CDATA[
+...
+<inlinemediaobject>
+ <imageobject>
+ <imagedata align="center" fileref="../../demos/Blocks.zcos" valign="middle"/>
+ </imageobject>
+</inlinemediaobject>
+...
+]]></programlisting>
+ </refsection>
+</refentry>
diff --git a/contrib/xcos_toolbox_skeleton/help/en_US/build_help.sce b/contrib/xcos_toolbox_skeleton/help/en_US/build_help.sce
new file mode 100755
index 000000000..70653160c
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/help/en_US/build_help.sce
@@ -0,0 +1,3 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+tbx_build_help(TOOLBOX_TITLE,get_absolute_file_path("build_help.sce"));
diff --git a/contrib/xcos_toolbox_skeleton/help/en_US/tbx_sum.xml b/contrib/xcos_toolbox_skeleton/help/en_US/tbx_sum.xml
new file mode 100755
index 000000000..5ba551648
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/help/en_US/tbx_sum.xml
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="tbx_sum">
+ <refnamediv>
+ <refname>tbx_sum</refname>
+ <refpurpose>Simple sum with 2 inputs and 1 output</refpurpose>
+ </refnamediv>
+ <refsynopsisdiv>
+ <title>Calling Sequence</title>
+ <synopsis>
+ out = tbx_sum(in1, in2);
+ </synopsis>
+ </refsynopsisdiv>
+ <refsection id="Module_tbx_sum">
+ <title>Module</title>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <link linkend="tbx_sum">tbx_sum</link>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </refsection>
+ <refsection id="Parameters_tbx_sum">
+ <title>Arguments</title>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <emphasis role="bold">in1 : </emphasis> a double.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <emphasis role="bold">in2 : </emphasis> a double.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <emphasis role="bold">out : </emphasis> a double with value:
+ </para>
+ <para>
+ <latex>out=in1+in2</latex>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </refsection>
+ <refsection id="SeeAlso_tbx_sum">
+ <title>See Also</title>
+ <simplelist type="inline">
+ <member>
+ <link linkend="TBX_SUM_c">TBX_SUM_c</link> : corresponding <link type="scilab" linkend="scilab.help/xcos">Xcos</link> block.
+ </member>
+ <member>
+ <link type="scilab" linkend="scilab.help/sum">Link to the Scilab help page</link>
+ </member>
+ </simplelist>
+ </refsection>
+</refentry>
diff --git a/contrib/xcos_toolbox_skeleton/help/fr_FR/build_help.sce b/contrib/xcos_toolbox_skeleton/help/fr_FR/build_help.sce
new file mode 100755
index 000000000..70653160c
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/help/fr_FR/build_help.sce
@@ -0,0 +1,3 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+tbx_build_help(TOOLBOX_TITLE,get_absolute_file_path("build_help.sce"));
diff --git a/contrib/xcos_toolbox_skeleton/images/gif/TBX_MUT_STYLE.gif b/contrib/xcos_toolbox_skeleton/images/gif/TBX_MUT_STYLE.gif
new file mode 100755
index 000000000..21c795992
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/images/gif/TBX_MUT_STYLE.gif
Binary files differ
diff --git a/contrib/xcos_toolbox_skeleton/images/gif/TBX_NOOP.gif b/contrib/xcos_toolbox_skeleton/images/gif/TBX_NOOP.gif
new file mode 100755
index 000000000..31bad09ea
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/images/gif/TBX_NOOP.gif
Binary files differ
diff --git a/contrib/xcos_toolbox_skeleton/images/gif/TBX_SUM_c.gif b/contrib/xcos_toolbox_skeleton/images/gif/TBX_SUM_c.gif
new file mode 100755
index 000000000..959469d09
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/images/gif/TBX_SUM_c.gif
Binary files differ
diff --git a/contrib/xcos_toolbox_skeleton/images/gif/TBX_SUM_modelica.gif b/contrib/xcos_toolbox_skeleton/images/gif/TBX_SUM_modelica.gif
new file mode 100755
index 000000000..e7b590c30
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/images/gif/TBX_SUM_modelica.gif
Binary files differ
diff --git a/contrib/xcos_toolbox_skeleton/images/gif/TBX_SUM_sci.gif b/contrib/xcos_toolbox_skeleton/images/gif/TBX_SUM_sci.gif
new file mode 100755
index 000000000..83a4ed8ba
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/images/gif/TBX_SUM_sci.gif
Binary files differ
diff --git a/contrib/xcos_toolbox_skeleton/images/svg/TBX_MUT_STYLE.svg b/contrib/xcos_toolbox_skeleton/images/svg/TBX_MUT_STYLE.svg
new file mode 100755
index 000000000..e55da82e6
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/images/svg/TBX_MUT_STYLE.svg
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.0//EN'
+ 'http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd'>
+<svg xmlns:xlink="http://www.w3.org/1999/xlink" style="fill-opacity:1; color-rendering:auto; color-interpolation:auto; stroke:black; text-rendering:auto; stroke-linecap:square; stroke-miterlimit:10; stroke-opacity:1; shape-rendering:auto; fill:black; stroke-dasharray:none; font-weight:normal; stroke-width:1; font-family:&apos;Dialog&apos;; font-style:normal; stroke-linejoin:miter; font-size:12; stroke-dashoffset:0; image-rendering:auto;" width="610" height="460" xmlns="http://www.w3.org/2000/svg"
+><!--Generated by Scilab with Batik SVG Generator--><defs id="genericDefs"
+ /><g
+ ><g style="fill:white; text-rendering:optimizeLegibility; stroke:white;"
+ ><rect x="0" width="610" height="460" y="0" style="stroke:none;"
+ /></g
+ ></g
+></svg
+>
diff --git a/contrib/xcos_toolbox_skeleton/images/svg/TBX_NOOP.svg b/contrib/xcos_toolbox_skeleton/images/svg/TBX_NOOP.svg
new file mode 100755
index 000000000..b2848496c
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/images/svg/TBX_NOOP.svg
@@ -0,0 +1 @@
+<svg/>
diff --git a/contrib/xcos_toolbox_skeleton/images/svg/TBX_SUM_c.svg b/contrib/xcos_toolbox_skeleton/images/svg/TBX_SUM_c.svg
new file mode 100755
index 000000000..e55da82e6
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/images/svg/TBX_SUM_c.svg
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.0//EN'
+ 'http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd'>
+<svg xmlns:xlink="http://www.w3.org/1999/xlink" style="fill-opacity:1; color-rendering:auto; color-interpolation:auto; stroke:black; text-rendering:auto; stroke-linecap:square; stroke-miterlimit:10; stroke-opacity:1; shape-rendering:auto; fill:black; stroke-dasharray:none; font-weight:normal; stroke-width:1; font-family:&apos;Dialog&apos;; font-style:normal; stroke-linejoin:miter; font-size:12; stroke-dashoffset:0; image-rendering:auto;" width="610" height="460" xmlns="http://www.w3.org/2000/svg"
+><!--Generated by Scilab with Batik SVG Generator--><defs id="genericDefs"
+ /><g
+ ><g style="fill:white; text-rendering:optimizeLegibility; stroke:white;"
+ ><rect x="0" width="610" height="460" y="0" style="stroke:none;"
+ /></g
+ ></g
+></svg
+>
diff --git a/contrib/xcos_toolbox_skeleton/images/svg/TBX_SUM_modelica.svg b/contrib/xcos_toolbox_skeleton/images/svg/TBX_SUM_modelica.svg
new file mode 100755
index 000000000..b2848496c
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/images/svg/TBX_SUM_modelica.svg
@@ -0,0 +1 @@
+<svg/>
diff --git a/contrib/xcos_toolbox_skeleton/images/svg/TBX_SUM_sci.svg b/contrib/xcos_toolbox_skeleton/images/svg/TBX_SUM_sci.svg
new file mode 100755
index 000000000..e55da82e6
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/images/svg/TBX_SUM_sci.svg
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.0//EN'
+ 'http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd'>
+<svg xmlns:xlink="http://www.w3.org/1999/xlink" style="fill-opacity:1; color-rendering:auto; color-interpolation:auto; stroke:black; text-rendering:auto; stroke-linecap:square; stroke-miterlimit:10; stroke-opacity:1; shape-rendering:auto; fill:black; stroke-dasharray:none; font-weight:normal; stroke-width:1; font-family:&apos;Dialog&apos;; font-style:normal; stroke-linejoin:miter; font-size:12; stroke-dashoffset:0; image-rendering:auto;" width="610" height="460" xmlns="http://www.w3.org/2000/svg"
+><!--Generated by Scilab with Batik SVG Generator--><defs id="genericDefs"
+ /><g
+ ><g style="fill:white; text-rendering:optimizeLegibility; stroke:white;"
+ ><rect x="0" width="610" height="460" y="0" style="stroke:none;"
+ /></g
+ ></g
+></svg
+>
diff --git a/contrib/xcos_toolbox_skeleton/license.txt b/contrib/xcos_toolbox_skeleton/license.txt
new file mode 100755
index 000000000..c3809713b
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/license.txt
@@ -0,0 +1,9 @@
+Licence of the Xcos_Toolbox_skeleton
+
+Please update this file with the license terms (Copy and paste the license agreement).
+Note that all the files of the toolbox_skeleton are released into the public domain.
+Therefor, there is no limitation on the use of these files.
+
+Please note that Scilab is released under the terms of the CeCILL license :
+http://www.cecill.info/index.en.html
+
diff --git a/contrib/xcos_toolbox_skeleton/macros/TBX_MUT_STYLE.sci b/contrib/xcos_toolbox_skeleton/macros/TBX_MUT_STYLE.sci
new file mode 100755
index 000000000..e049d9d36
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/macros/TBX_MUT_STYLE.sci
@@ -0,0 +1,48 @@
+//
+// This file is part of the Xcos skeleton toolbox
+//
+// see license.txt for more licensing information
+
+function [x,y,typ]=TBX_MUT_STYLE(job,arg1,arg2)
+ x=[];y=[];typ=[]
+ select job
+ case "set" then
+ x=arg1;
+ model = x.model;
+ graphics = x.graphics;
+
+ // no parameters yet, just change the style of the block and the ports
+ hexa = [string(1:9) "A" "B" "C" "D" "E" "F"];
+ graphics.style = "BIGSOM_f;fillColor=#" + strcat(hexa(15 * rand(1,6) + 1));
+
+ port_styles = ["actor" "cloud" "connector" "cylinder" "curve" "doubleEllipse" "ellipse" "hexagon" "image" "label" "line" "rectangle" "rhombus" "triangle"];
+ graphics.in_style = "ExplicitInputPort;shape=" + port_styles(size(port_styles, "*") * rand(model.in) + ones(model.in));
+ graphics.out_style = "ExplicitOutputPort;shape=" + port_styles(size(port_styles, "*") * rand(model.out) + ones(model.out));
+
+ disp(graphics.style);
+ disp(graphics.in_style);
+ disp(graphics.out_style);
+
+ x.model = model;
+ x.graphics = graphics;
+
+ case "define" then
+ model=scicos_model()
+ model.sim=list("block_sum",4)
+ // n inputs with a single "double" element
+ model.in=ones(4, 1);
+ model.intyp=ones(model.in);
+ // one output with a single "double" element
+ model.out=1
+ model.outtyp=1
+
+ model.blocktype="c"
+ model.dep_ut=[%f %f]
+
+ exprs=string([]);
+ gr_i=[]
+ x=standard_define([2 2],model,exprs,gr_i);
+ x.graphics.style="BIGSOM_f";
+ end
+endfunction
+
diff --git a/contrib/xcos_toolbox_skeleton/macros/TBX_NOOP.sci b/contrib/xcos_toolbox_skeleton/macros/TBX_NOOP.sci
new file mode 100755
index 000000000..5616d7f8d
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/macros/TBX_NOOP.sci
@@ -0,0 +1,76 @@
+//
+// This file is part of the Xcos skeleton toolbox
+//
+// see license.txt for more licensing information
+
+function [x,y,typ]=TBX_NOOP(job,arg1,arg2)
+ x=[];y=[];typ=[]
+ select job
+ case "set" then
+ x=arg1;
+ model=arg1.model;
+ graphics=arg1.graphics;
+ exprs=graphics.exprs;
+
+ while %t do
+ [ok,sim,in1,in2,intyp,out1,out2,outyp,exprs]=scicos_getvalue(..
+ "Set no-operation parameters",..
+ ["(0=C, 1=Scilab)";
+ "Input rows sizes";
+ "Input columns sizes";
+ "Input types";
+ "Output rows sizes";
+ "Output columns sizes";
+ "Output types"],..
+ list("vec",1,"vec",-1,"vec",-1,"vec",-1,"vec",-2,"vec",-2,"vec",-2),..
+ exprs)
+ if ~ok then
+ break,
+ end //user cancel modification
+
+ if or(size(in1) <> size(in2)) | or(size(in1) <> size(intyp)) then
+ message(["Some specified values are inconsistent:";
+ " ";"All input parameters should have the same length"])
+ ok = %f;
+ end
+ if or(size(out1) <> size(out2)) | or(size(out1) <> size(outyp)) then
+ message(["Some specified values are inconsistent:";
+ " ";"All output parameters should have the same length"])
+ ok = %f;
+ end
+
+ if ok then
+ [model,graphics,ok]=set_io(model,graphics,list([in1,in2],intyp),list([out1,out2],outyp),1,[])
+ end
+
+ if ok then
+ if sim == 0 then
+ model.sim=list("tbx_block_noop",4);
+ graphics.style=["blockWithLabel;displayedLabel=""NOOP C"""]
+ else
+ model.sim=list("TBX_NOOP_sim",5);
+ graphics.style=["blockWithLabel;displayedLabel=""NOOP Scilab"""]
+ end
+
+ graphics.exprs=exprs;
+ x.graphics=graphics;
+ x.model=model;
+ break;
+ end
+ end
+
+ case "define" then
+ model=scicos_model()
+ model.sim=list("tbx_block_noop",4)
+
+ model.evtin=1
+ model.blocktype="d"
+ model.dep_ut=[%f %f]
+
+ exprs=["0";"";"";"";"";"";""];
+ gr_i=[]
+ x=standard_define([3 2],model,exprs,gr_i)
+ x.graphics.style=["blockWithLabel;displayedLabel=""NOOP C"""]
+ end
+endfunction
+
diff --git a/contrib/xcos_toolbox_skeleton/macros/TBX_NOOP_sci.sci b/contrib/xcos_toolbox_skeleton/macros/TBX_NOOP_sci.sci
new file mode 100755
index 000000000..9d2efc441
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/macros/TBX_NOOP_sci.sci
@@ -0,0 +1,61 @@
+//
+// This file is part of the Xcos skeleton toolbox
+//
+// see license.txt for more licensing information
+
+function [x,y,typ]=TBX_NOOP_sci(job,arg1,arg2)
+ x=[];y=[];typ=[]
+ select job
+ case "set" then
+ x=arg1;
+ model=arg1.model;
+ graphics=arg1.graphics;
+ exprs=graphics.exprs;
+
+ while %t do
+ [ok,in1,in2,intyp,exprs]=scicos_getvalue(..
+ "Set no-operation parameters",..
+ ["Input rows sizes";
+ "Input columns sizes";
+ "Input types"],..
+ list("vec",-1,"vec",-1,"vec",-1),..
+ exprs)
+ if ~ok then
+ break,
+ end //user cancel modification
+
+ if or(size(in1) <> size(in2)) | or(size(in1) <> size(in2)) then
+ message(["Some specified values are inconsistent:";
+ " ";"All parameters should have the same length"])
+ ok = %f;
+ end
+
+ if ok then
+ model.in1=in1;
+ model.in2=in2;
+ model.intyp=intyp;
+
+ graphics.pin=zeros(in1, 1);
+
+ graphics.exprs=exprs;
+ x.graphics=graphics;
+ x.model=model;
+ break;
+ end
+ end
+
+ case "define" then
+ model=scicos_model()
+ model.sim=list("TBX_NOOP_sim",5)
+
+ model.evtin=1
+ model.blocktype="d"
+ model.dep_ut=[%f %f]
+
+ exprs=["[]";"[]";"[]"];
+ gr_i=[]
+ x=standard_define([3 2],model,exprs,gr_i)
+ x.graphics.style=["blockWithLabel;displayedLabel=NOOP_sci"]
+ end
+endfunction
+
diff --git a/contrib/xcos_toolbox_skeleton/macros/TBX_NOOP_sim.sci b/contrib/xcos_toolbox_skeleton/macros/TBX_NOOP_sim.sci
new file mode 100755
index 000000000..fc1cf13ce
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/macros/TBX_NOOP_sim.sci
@@ -0,0 +1,9 @@
+//
+// This file is part of the Xcos skeleton toolbox
+//
+// see license.txt for more licensing information
+
+
+function block=TBX_NOOP_sim(block,flag)
+endfunction
+
diff --git a/contrib/xcos_toolbox_skeleton/macros/TBX_SUM_c.sci b/contrib/xcos_toolbox_skeleton/macros/TBX_SUM_c.sci
new file mode 100755
index 000000000..af49df65d
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/macros/TBX_SUM_c.sci
@@ -0,0 +1,32 @@
+//
+// This file is part of the Xcos skeleton toolbox
+//
+// see license.txt for more licensing information
+
+function [x,y,typ]=TBX_SUM_c(job,arg1,arg2)
+ x=[];y=[];typ=[]
+ select job
+ case "set" then
+ x=arg1;
+ // no parameters yet
+ case "define" then
+ model=scicos_model()
+ model.sim=list("block_sum",4)
+ // two inputs with a single "double" element
+ model.in=[1;1]
+ model.intyp=[1;1]
+ // one output with a single "double" element
+ model.out=1
+ model.outtyp=1
+
+ model.blocktype="c"
+ model.dep_ut=[%f %f]
+
+ exprs=string([]);
+ gr_i=[]
+
+ x=standard_define([4 4],model,exprs,gr_i)
+ x.graphics.style="blockWithLabel;displayedLabel=TBX_SUM_c"
+ end
+endfunction
+
diff --git a/contrib/xcos_toolbox_skeleton/macros/TBX_SUM_modelica.sci b/contrib/xcos_toolbox_skeleton/macros/TBX_SUM_modelica.sci
new file mode 100755
index 000000000..8a6ddda04
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/macros/TBX_SUM_modelica.sci
@@ -0,0 +1,40 @@
+//
+// This file is part of the Xcos skeleton toolbox
+//
+// see license.txt for more licensing information
+
+function [x,y,typ]=TBX_SUM_modelica(job,arg1,arg2)
+ x=[];y=[];typ=[]
+ select job
+ case "set" then
+ x=arg1;
+ // no parameters yet
+ case "define" then
+ model=scicos_model()
+ model.sim="XcosToolboxSkeleton.Sum"
+ // two inputs with a single "double" element
+ model.in=[1;1]
+ model.intyp=[1;1]
+ // one output with a single "double" element
+ model.out=1
+ model.outtyp=1
+
+ model.blocktype="c"
+ model.dep_ut=[%t %f]
+
+ mo=modelica();
+ mo.model="XcosToolboxSkeleton.Sum"
+ mo.inputs=["in1","in2"];
+ mo.outputs=["out"];
+ mo.parameters=list([],list())
+ model.equations=mo;
+
+ exprs=string([]);
+ gr_i=[]
+ x=standard_define([4 4],model,exprs,gr_i)
+ x.graphics.in_implicit=["E";"E"];
+ x.graphics.out_implicit=["E"];
+ x.graphics.style=["blockWithLabel;displayedLabel=TBX_SUM_modelica"]
+ end
+endfunction
+
diff --git a/contrib/xcos_toolbox_skeleton/macros/TBX_SUM_sci.sci b/contrib/xcos_toolbox_skeleton/macros/TBX_SUM_sci.sci
new file mode 100755
index 000000000..37f2b0d7b
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/macros/TBX_SUM_sci.sci
@@ -0,0 +1,31 @@
+//
+// This file is part of the Xcos skeleton toolbox
+//
+// see license.txt for more licensing information
+
+function [x,y,typ]=TBX_SUM_sci(job,arg1,arg2)
+ x=[];y=[];typ=[]
+ select job
+ case "set" then
+ x=arg1;
+ // no parameters yet
+ case "define" then
+ model=scicos_model()
+ model.sim=list("TBX_SUM_sim",5)
+ // one inputs with a variable size "double" element
+ model.in=[-1]
+ model.intyp=[1]
+ // one output with a single "double" element
+ model.out=1
+ model.outtyp=1
+
+ model.blocktype="c"
+ model.dep_ut=[%t %f]
+
+ exprs=string([]);
+ gr_i=[]
+ x=standard_define([4 4],model,exprs,gr_i)
+ x.graphics.style=["blockWithLabel;displayedLabel=TBX_SUM_sci"]
+ end
+endfunction
+
diff --git a/contrib/xcos_toolbox_skeleton/macros/TBX_SUM_sim.sci b/contrib/xcos_toolbox_skeleton/macros/TBX_SUM_sim.sci
new file mode 100755
index 000000000..fd698c8dc
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/macros/TBX_SUM_sim.sci
@@ -0,0 +1,49 @@
+//
+// This file is part of the Xcos skeleton toolbox
+//
+// see license.txt for more licensing information
+
+
+function block=TBX_SUM_sim(block,flag)
+ function verboseMessage(debugMessage)
+ disp("[verboseMessage] time = "+string(scicos_time())+"] {"+block.label+"} SUM Simulation: "+debugMessage);
+ endfunction
+
+ select flag
+ case -5 // Error
+ verboseMessage("Calling with flag Error(-5)")
+
+ case 0 // Derivative State Update
+ verboseMessage("Calling with flag DerivativeStare(0)")
+
+ case 1 // Output Update
+ verboseMessage("Calling with flag OutputUpdate(1)")
+ outptr = block.outptr;
+ inptr = block.inptr;
+ outptr(1) = sum(inptr(1));
+ block.outptr = outptr;
+
+
+ case 2 // State Update
+ verboseMessage("Calling with flag StateUpdate(2)")
+
+ case 3 // OutputEventTiming
+ verboseMessage("Calling with flag OutputEventTiming(3)")
+
+ case 4 // Initialization
+ verboseMessage("Calling with flag Initialization(4)")
+
+ case 5 // Ending
+ verboseMessage("Calling with flag Ending(5)")
+
+ case 6 // Reinitialization
+ verboseMessage("Calling with flag Reinitialization(6)")
+
+ case 9 // Zero-Crossing
+ verboseMessage("Calling with flag Zero-Crossing(9)")
+
+ else // Unknown flag
+ verboseMessage("Calling with unknonw flag("+string(flag)+")")
+
+ end
+endfunction
diff --git a/contrib/xcos_toolbox_skeleton/macros/XcosToolboxSkeleton.mo b/contrib/xcos_toolbox_skeleton/macros/XcosToolboxSkeleton.mo
new file mode 100755
index 000000000..0398697c7
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/macros/XcosToolboxSkeleton.mo
@@ -0,0 +1,18 @@
+//
+// This file is part of the Xcos skeleton toolbox
+//
+// see license.txt for more licensing information
+
+package XcosToolboxSkeleton
+
+ model Sum "Perfom the summation of the two inputs"
+ Real in1 "the first input";
+ Real in2 "the second input";
+ Real out "the output" ;
+ equation
+ out = in1 + in2;
+ end Sum;
+
+end XcosToolboxSkeleton;
+
+
diff --git a/contrib/xcos_toolbox_skeleton/macros/buildmacros.sce b/contrib/xcos_toolbox_skeleton/macros/buildmacros.sce
new file mode 100755
index 000000000..155410fae
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/macros/buildmacros.sce
@@ -0,0 +1,15 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+function buildmacros()
+ macros_path = get_absolute_file_path("buildmacros.sce");
+
+ blocks = ["TBX_SUM_c", "TBX_SUM_sci", "TBX_SUM_modelica", "TBX_MUT_STYLE", "TBX_NOOP"];
+
+ tbx_build_macros(TOOLBOX_NAME, macros_path);
+ tbx_build_blocks(toolbox_dir, blocks);
+ tbx_build_pal_loader(TOOLBOX_TITLE, blocks, toolbox_dir, macros_path)
+endfunction
+
+buildmacros();
+clear buildmacros; // remove buildmacros on stack
+
diff --git a/contrib/xcos_toolbox_skeleton/macros/cleanmacros.sce b/contrib/xcos_toolbox_skeleton/macros/cleanmacros.sce
new file mode 100755
index 000000000..eff1af0a8
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/macros/cleanmacros.sce
@@ -0,0 +1,23 @@
+// ====================================================================
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+// ====================================================================
+function cleanmacros()
+ libpath = get_absolute_file_path("cleanmacros.sce");
+
+ binfiles = ls(libpath+"/*.bin");
+ for i = 1:size(binfiles,"*")
+ mdelete(binfiles(i));
+ end
+
+ mdelete(libpath+"/names");
+ mdelete(libpath+"/lib");
+
+ blockfiles = ls(libpath+"../images/h5/*.h5");
+ for i = 1:size(blockfiles,"*")
+ mdelete(blockfiles(i));
+ end
+endfunction
+
+cleanmacros();
+clear cleanmacros; // remove cleanmacros on stack
+// ====================================================================
diff --git a/contrib/xcos_toolbox_skeleton/sci_gateway/builder_gateway.sce b/contrib/xcos_toolbox_skeleton/sci_gateway/builder_gateway.sce
new file mode 100755
index 000000000..93f8d6059
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/sci_gateway/builder_gateway.sce
@@ -0,0 +1,15 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+function builder_gateway()
+
+ sci_gateway_dir = get_absolute_file_path("builder_gateway.sce");
+ languages = ["c"];
+
+ tbx_builder_gateway_lang(languages, sci_gateway_dir);
+ tbx_build_gateway_loader(languages, sci_gateway_dir);
+ tbx_build_gateway_clean(languages, sci_gateway_dir);
+
+endfunction
+
+builder_gateway();
+clear builder_gateway; // remove builder_gateway on stack
diff --git a/contrib/xcos_toolbox_skeleton/sci_gateway/c/builder_gateway_c.sce b/contrib/xcos_toolbox_skeleton/sci_gateway/c/builder_gateway_c.sce
new file mode 100755
index 000000000..973fd1f4a
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/sci_gateway/c/builder_gateway_c.sce
@@ -0,0 +1,18 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+function builder_gw_c()
+
+ includes_src_c = ilib_include_flag(get_absolute_file_path("builder_gateway_c.sce") + "../../src/c");
+
+ tbx_build_gateway("xcos_toolbox_skeleton_c", ..
+ ["tbx_sum", "sci_tbx_sum"], ..
+ ["sci_tbx_sum.c"], ..
+ get_absolute_file_path("builder_gateway_c.sce"), ..
+ ["../../src/c/libxcos_tbx_skel"], ..
+ "", ..
+ includes_src_c);
+
+endfunction
+
+builder_gw_c();
+clear builder_gw_c; // remove builder_gw_c on stack
diff --git a/contrib/xcos_toolbox_skeleton/sci_gateway/c/sci_tbx_sum.c b/contrib/xcos_toolbox_skeleton/sci_gateway/c/sci_tbx_sum.c
new file mode 100755
index 000000000..bb1c41cbd
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/sci_gateway/c/sci_tbx_sum.c
@@ -0,0 +1,70 @@
+/* This file is released under the 3-clause BSD license. See COPYING-BSD. */
+
+#include "business.h"
+#include "api_scilab.h"
+#include "Scierror.h"
+
+int sci_tbx_sum(char *fname)
+{
+ SciErr sciErr;
+
+ int *piAddressVarOne = NULL;
+ double dVarOne = 0.0;
+
+ int *piAddressVarTwo = NULL;
+ double dVarTwo = 0.0;
+
+ double dOut = 0.0;
+
+ /* check that we have only 2 input arguments */
+ /* check that we have only 1 output argument */
+ CheckInputArgument(pvApiCtx, 2, 2);
+ CheckOutputArgument(pvApiCtx, 1, 1);
+
+ /* get Address of inputs */
+ sciErr = getVarAddressFromPosition(pvApiCtx, 1, &piAddressVarOne);
+ if (sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ return 0;
+ }
+
+ sciErr = getVarAddressFromPosition(pvApiCtx, 2, &piAddressVarTwo);
+ if (sciErr.iErr)
+ {
+ printError(&sciErr, 0);
+ return 0;
+ }
+
+ /* check input type */
+ if ( !isDoubleType(pvApiCtx, piAddressVarOne) )
+ {
+ Scierror(999, "%s: Wrong type for input argument #%d: A scalar expected.\n", fname, 1);
+ return 0;
+ }
+
+ if ( !isDoubleType(pvApiCtx, piAddressVarTwo) )
+ {
+ Scierror(999, "%s: Wrong type for input argument #%d: A scalar expected.\n", fname, 2);
+ return 0;
+ }
+
+ if ( getScalarDouble(pvApiCtx, piAddressVarOne, &dVarOne) )
+ {
+ Scierror(999, "%s: Wrong size for input argument #%d: A scalar expected.\n", fname, 1);
+ return 0;
+ }
+
+ if ( getScalarDouble(pvApiCtx, piAddressVarTwo, &dVarTwo) )
+ {
+ Scierror(999, "%s: Wrong size for input argument #%d: A scalar expected.\n", fname, 2);
+ return 0;
+ }
+
+ /* call c business function */
+ dOut = business_sum(dVarOne, dVarTwo);
+
+ createScalarDouble(pvApiCtx, nbInputArgument(pvApiCtx) + 1, dOut);
+ AssignOutputVariable(pvApiCtx, 1) = nbInputArgument(pvApiCtx) + 1;
+}
+
diff --git a/contrib/xcos_toolbox_skeleton/sci_gateway/loader_gateway.sce b/contrib/xcos_toolbox_skeleton/sci_gateway/loader_gateway.sce
new file mode 100755
index 000000000..77f69b759
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/sci_gateway/loader_gateway.sce
@@ -0,0 +1,24 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+// Generated by builder_gateway.sce: Please, do not edit this file
+
+try
+ v = getversion("scilab");
+catch
+ v = [ 5 0 ]; // or older
+end
+if (v(1) <= 5) & (v(2) < 3) then
+ // new API in scilab 5.3
+ error(gettext("Scilab 5.3 or more is required."));
+end
+
+sci_gateway_dir = get_absolute_file_path("loader_gateway.sce");
+current_dir = pwd();
+
+chdir(sci_gateway_dir);
+if ( isdir("c") ) then
+ chdir("c");
+ exec("loader.sce");
+end
+
+chdir(current_dir);
+clear sci_gateway_dir current_dir v;
diff --git a/contrib/xcos_toolbox_skeleton/src/builder_src.sce b/contrib/xcos_toolbox_skeleton/src/builder_src.sce
new file mode 100755
index 000000000..4994d2277
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/src/builder_src.sce
@@ -0,0 +1,11 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+function builder_src()
+ src_path = get_absolute_file_path("builder_src.sce");
+ tbx_builder_src_lang("c", src_path);
+endfunction
+
+builder_src();
+clear builder_src; // remove builder_src on stack
+
+
diff --git a/contrib/xcos_toolbox_skeleton/src/c/block_sum.c b/contrib/xcos_toolbox_skeleton/src/c/block_sum.c
new file mode 100755
index 000000000..e1e9cdb4d
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/src/c/block_sum.c
@@ -0,0 +1,25 @@
+/* This file is released under the 3-clause BSD license. See COPYING-BSD. */
+
+#include <business.h>
+#include <scicos_block4.h>
+
+void block_sum(scicos_block* block, scicos_flag flag)
+{
+ double* y;
+ double* u1;
+ double* u2;
+
+ if (flag == OutputUpdate)
+ {
+ // output
+ y = (double *) block->outptr[0];
+
+ // input are indexed in order
+ u1 = (double *) block->inptr[0];
+ u2 = (double *) block->inptr[1];
+
+ // call business layer
+ *y = business_sum(*u1, *u2);
+ }
+}
+
diff --git a/contrib/xcos_toolbox_skeleton/src/c/builder_c.sce b/contrib/xcos_toolbox_skeleton/src/c/builder_c.sce
new file mode 100755
index 000000000..747e36989
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/src/c/builder_c.sce
@@ -0,0 +1,44 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+// This macro compiles the files
+
+function builder_c()
+ src_c_path = get_absolute_file_path("builder_c.sce");
+
+ CFLAGS = ilib_include_flag(src_c_path);
+ LDFLAGS = "";
+ if (getos()<>"Windows") then
+ if ~isdir(SCI+"/../../share") then
+ // Source version
+ CFLAGS = CFLAGS + " -I" + SCI + "/modules/scicos_blocks/includes" ;
+ CFLAGS = CFLAGS + " -I" + SCI + "/modules/scicos/includes" ;
+ else
+ // Release version
+ CFLAGS = CFLAGS + " -I" + SCI + "/../../include/scilab/scicos_blocks";
+ CFLAGS = CFLAGS + " -I" + SCI + "/../../include/scilab/scicos";
+ end
+ else
+ CFLAGS = CFLAGS + " -I" + SCI + "/modules/scicos_blocks/includes";
+ CFLAGS = CFLAGS + " -I" + SCI + "/modules/scicos/includes";
+
+ // Getting symbols
+ if findmsvccompiler() <> "unknown" & haveacompiler() then
+ LDFLAGS = LDFLAGS + " """ + SCI + "/bin/scicos.lib""";
+ LDFLAGS = LDFLAGS + " """ + SCI + "/bin/scicos_f.lib""";
+ end
+ end
+
+ tbx_build_src(["block_sum", "business_sum", "tbx_block_noop"], ..
+ ["block_sum.c", "business_sum.c" "tbx_block_noop.c"], ..
+ "c", ..
+ src_c_path, ..
+ "", ..
+ LDFLAGS, ..
+ CFLAGS, ..
+ "", ..
+ "", ..
+ "xcos_tbx_skel");
+endfunction
+
+builder_c();
+clear builder_c; // remove builder_c on stack
diff --git a/contrib/xcos_toolbox_skeleton/src/c/business.h b/contrib/xcos_toolbox_skeleton/src/c/business.h
new file mode 100755
index 000000000..698c9a3b0
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/src/c/business.h
@@ -0,0 +1,7 @@
+/* This file is released under the 3-clause BSD license. See COPYING-BSD. */
+
+/**
+ * @return in1 + in2
+ */
+double business_sum(double in, double in2);
+
diff --git a/contrib/xcos_toolbox_skeleton/src/c/business_sum.c b/contrib/xcos_toolbox_skeleton/src/c/business_sum.c
new file mode 100755
index 000000000..b0f01e7f2
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/src/c/business_sum.c
@@ -0,0 +1,7 @@
+/* This file is released under the 3-clause BSD license. See COPYING-BSD. */
+
+double business_sum(double in, double in2)
+{
+ return in + in2;
+}
+
diff --git a/contrib/xcos_toolbox_skeleton/src/c/tbx_block_noop.c b/contrib/xcos_toolbox_skeleton/src/c/tbx_block_noop.c
new file mode 100755
index 000000000..94c32d6db
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/src/c/tbx_block_noop.c
@@ -0,0 +1,8 @@
+/* This file is released under the 3-clause BSD license. See COPYING-BSD. */
+
+#include <scicos_block4.h>
+
+void tbx_block_noop(scicos_block* block, scicos_flag flag)
+{
+}
+
diff --git a/contrib/xcos_toolbox_skeleton/src/cleaner_src.sce b/contrib/xcos_toolbox_skeleton/src/cleaner_src.sce
new file mode 100755
index 000000000..921530d93
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/src/cleaner_src.sce
@@ -0,0 +1,16 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+
+function cleaner_src()
+ src_dir = get_absolute_file_path("cleaner_src.sce");
+
+ for language = ["c","cpp","fortran"]
+ cleaner_file = src_dir + filesep() + language + filesep() + "cleaner.sce";
+ if isfile(cleaner_file) then
+ exec(cleaner_file);
+ mdelete(cleaner_file);
+ end
+ end
+endfunction
+
+cleaner_src();
+clear cleaner_src; // remove cleaner_src on stack
diff --git a/contrib/xcos_toolbox_skeleton/tests/benchmark/noop_matrices.zcos b/contrib/xcos_toolbox_skeleton/tests/benchmark/noop_matrices.zcos
new file mode 100755
index 000000000..520b8cf33
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/tests/benchmark/noop_matrices.zcos
Binary files differ
diff --git a/contrib/xcos_toolbox_skeleton/tests/benchmark/noop_matrices_c.tst b/contrib/xcos_toolbox_skeleton/tests/benchmark/noop_matrices_c.tst
new file mode 100755
index 000000000..604ea8aa2
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/tests/benchmark/noop_matrices_c.tst
@@ -0,0 +1,17 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+//=======================================================================
+
+loadXcosLibs();
+loadScicos();
+
+assert_checktrue(importXcosDiagram("tests/benchmark/noop_matrices.zcos"))
+
+context = struct();
+context.NOOP_mode = 0; // using a C simulation function
+
+// <-- BENCH START -->
+timer();
+scicos_simulate(scs_m, context);
+disp(timer());
+// <-- BENCH END -->
+
diff --git a/contrib/xcos_toolbox_skeleton/tests/benchmark/noop_matrices_scilab.tst b/contrib/xcos_toolbox_skeleton/tests/benchmark/noop_matrices_scilab.tst
new file mode 100755
index 000000000..91cb94116
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/tests/benchmark/noop_matrices_scilab.tst
@@ -0,0 +1,17 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+//=======================================================================
+
+loadXcosLibs();
+loadScicos();
+
+assert_checktrue(importXcosDiagram("tests/benchmark/noop_matrices.zcos"))
+
+context = struct();
+context.NOOP_mode = 1; // using a Scilab simulation function
+
+// <-- BENCH START -->
+timer();
+scicos_simulate(scs_m, context);
+disp(timer());
+// <-- BENCH END -->
+
diff --git a/contrib/xcos_toolbox_skeleton/tests/benchmark/noop_scalar.zcos b/contrib/xcos_toolbox_skeleton/tests/benchmark/noop_scalar.zcos
new file mode 100755
index 000000000..dd167c984
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/tests/benchmark/noop_scalar.zcos
Binary files differ
diff --git a/contrib/xcos_toolbox_skeleton/tests/benchmark/noop_scalar_c.tst b/contrib/xcos_toolbox_skeleton/tests/benchmark/noop_scalar_c.tst
new file mode 100755
index 000000000..377d271a7
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/tests/benchmark/noop_scalar_c.tst
@@ -0,0 +1,17 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+//=======================================================================
+
+loadXcosLibs();
+loadScicos();
+
+assert_checktrue(importXcosDiagram("tests/benchmark/noop_scalar.zcos"))
+
+context = struct();
+context.NOOP_mode = 0; // using a C simulation function
+
+// <-- BENCH START -->
+timer();
+scicos_simulate(scs_m, context);
+disp(timer());
+// <-- BENCH END -->
+
diff --git a/contrib/xcos_toolbox_skeleton/tests/benchmark/noop_scalar_scilab.tst b/contrib/xcos_toolbox_skeleton/tests/benchmark/noop_scalar_scilab.tst
new file mode 100755
index 000000000..3f3e877c5
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/tests/benchmark/noop_scalar_scilab.tst
@@ -0,0 +1,17 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+//=======================================================================
+
+loadXcosLibs();
+loadScicos();
+
+assert_checktrue(importXcosDiagram("tests/benchmark/noop_scalar.zcos"))
+
+context = struct();
+context.NOOP_mode = 1; // using a Scilab simulation function
+
+// <-- BENCH START -->
+timer();
+scicos_simulate(scs_m, context);
+disp(timer());
+// <-- BENCH END -->
+
diff --git a/contrib/xcos_toolbox_skeleton/tests/unit_tests/tbx_sum.dia.ref b/contrib/xcos_toolbox_skeleton/tests/unit_tests/tbx_sum.dia.ref
new file mode 100755
index 000000000..4634a932f
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/tests/unit_tests/tbx_sum.dia.ref
@@ -0,0 +1,3 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+//=================================
+assert_checkequal(tbx_sum(3,5), 8);
diff --git a/contrib/xcos_toolbox_skeleton/tests/unit_tests/tbx_sum.tst b/contrib/xcos_toolbox_skeleton/tests/unit_tests/tbx_sum.tst
new file mode 100755
index 000000000..4cdc6a4dd
--- /dev/null
+++ b/contrib/xcos_toolbox_skeleton/tests/unit_tests/tbx_sum.tst
@@ -0,0 +1,5 @@
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+//=================================
+assert_checkequal(tbx_sum(3,5), 8);
+
+