summaryrefslogtreecommitdiffstats
path: root/scilab
diff options
context:
space:
mode:
authorAllan CORNET <allan.cornet@scilab.org>2010-06-15 10:35:11 +0200
committerAllan CORNET <allan.cornet@scilab.org>2010-06-15 10:47:24 +0200
commit91cbf69719a32de781ddfce9771661a16fdd514b (patch)
tree7051528a5a78b1a7201db757d68035d52576dff1 /scilab
parent36e34be6662f3d4469c10985ea6fa5f10bf10bc8 (diff)
downloadscilab-91cbf69719a32de781ddfce9771661a16fdd514b.zip
scilab-91cbf69719a32de781ddfce9771661a16fdd514b.tar.gz
modules_manager module
Change-Id: I2b48b8aaa42fa15d7f6e7ffa05f2867fd813d339
Diffstat (limited to 'scilab')
-rwxr-xr-xscilab/configure3
-rw-r--r--scilab/configure.ac1
-rw-r--r--scilab/contrib/toolbox_skeleton/builder.sce16
-rw-r--r--scilab/etc/modules.xml.in1
-rw-r--r--scilab/etc/modules.xml.vc1
-rw-r--r--scilab/modules/Makefile.am4
-rw-r--r--scilab/modules/Makefile.in6
-rw-r--r--scilab/modules/development_tools/macros/tbx_build_cleaner.sci56
-rw-r--r--scilab/modules/development_tools/macros/tbx_build_gateway_clean.sci50
-rw-r--r--scilab/modules/development_tools/macros/tbx_build_gateway_loader.sci61
-rw-r--r--scilab/modules/development_tools/macros/tbx_build_help_loader.sci31
-rw-r--r--scilab/modules/development_tools/macros/tbx_build_src.sci32
-rw-r--r--scilab/modules/modules_manager/Makefile.am18
-rw-r--r--scilab/modules/modules_manager/Makefile.in863
-rw-r--r--scilab/modules/modules_manager/changelog.txt1
-rw-r--r--scilab/modules/modules_manager/etc/modules_manager.quit10
-rw-r--r--scilab/modules/modules_manager/etc/modules_manager.start13
-rw-r--r--scilab/modules/modules_manager/help/en_US/addchapter.sce11
-rw-r--r--scilab/modules/modules_manager/help/en_US/tbx_build_cleaner.xml (renamed from scilab/modules/development_tools/help/en_US/tbx_build_cleaner.xml)0
-rw-r--r--scilab/modules/modules_manager/help/en_US/tbx_build_gateway.xml (renamed from scilab/modules/development_tools/help/en_US/tbx_build_gateway.xml)0
-rw-r--r--scilab/modules/modules_manager/help/en_US/tbx_build_gateway_clean.xml (renamed from scilab/modules/development_tools/help/en_US/tbx_build_gateway_clean.xml)0
-rw-r--r--scilab/modules/modules_manager/help/en_US/tbx_build_gateway_loader.xml (renamed from scilab/modules/development_tools/help/en_US/tbx_build_gateway_loader.xml)0
-rw-r--r--scilab/modules/modules_manager/help/en_US/tbx_build_help.xml (renamed from scilab/modules/development_tools/help/en_US/tbx_build_help.xml)0
-rw-r--r--scilab/modules/modules_manager/help/en_US/tbx_build_help_loader.xml (renamed from scilab/modules/development_tools/help/en_US/tbx_build_help_loader.xml)0
-rw-r--r--scilab/modules/modules_manager/help/en_US/tbx_build_loader.xml (renamed from scilab/modules/development_tools/help/en_US/tbx_build_loader.xml)0
-rw-r--r--scilab/modules/modules_manager/help/en_US/tbx_build_macros.xml (renamed from scilab/modules/development_tools/help/en_US/tbx_build_macros.xml)0
-rw-r--r--scilab/modules/modules_manager/help/en_US/tbx_build_src.xml (renamed from scilab/modules/development_tools/help/en_US/tbx_build_src.xml)0
-rw-r--r--scilab/modules/modules_manager/help/en_US/tbx_builder_gateway.xml (renamed from scilab/modules/development_tools/help/en_US/tbx_builder_gateway.xml)0
-rw-r--r--scilab/modules/modules_manager/help/en_US/tbx_builder_gateway_lang.xml (renamed from scilab/modules/development_tools/help/en_US/tbx_builder_gateway_lang.xml)0
-rw-r--r--scilab/modules/modules_manager/help/en_US/tbx_builder_help.xml (renamed from scilab/modules/development_tools/help/en_US/tbx_builder_help.xml)0
-rw-r--r--scilab/modules/modules_manager/help/en_US/tbx_builder_help_lang.xml (renamed from scilab/modules/development_tools/help/en_US/tbx_builder_help_lang.xml)0
-rw-r--r--scilab/modules/modules_manager/help/en_US/tbx_builder_macros.xml (renamed from scilab/modules/development_tools/help/en_US/tbx_builder_macros.xml)0
-rw-r--r--scilab/modules/modules_manager/help/en_US/tbx_builder_src.xml (renamed from scilab/modules/development_tools/help/en_US/tbx_builder_src.xml)0
-rw-r--r--scilab/modules/modules_manager/help/en_US/tbx_builder_src_lang.xml (renamed from scilab/modules/development_tools/help/en_US/tbx_builder_src_lang.xml)0
-rw-r--r--scilab/modules/modules_manager/help/fr_FR/addchapter.sce11
-rw-r--r--scilab/modules/modules_manager/help/pt_BR/addchapter.sce11
-rw-r--r--scilab/modules/modules_manager/license.txt10
-rw-r--r--scilab/modules/modules_manager/macros/buildmacros.bat11
-rw-r--r--scilab/modules/modules_manager/macros/buildmacros.sce15
-rw-r--r--scilab/modules/modules_manager/macros/cleanmacros.bat13
-rw-r--r--scilab/modules/modules_manager/macros/tbx_build_cleaner.sci59
-rw-r--r--scilab/modules/modules_manager/macros/tbx_build_gateway.sci (renamed from scilab/modules/development_tools/macros/tbx_build_gateway.sci)18
-rw-r--r--scilab/modules/modules_manager/macros/tbx_build_gateway_clean.sci50
-rw-r--r--scilab/modules/modules_manager/macros/tbx_build_gateway_loader.sci61
-rw-r--r--scilab/modules/modules_manager/macros/tbx_build_help.sci (renamed from scilab/modules/development_tools/macros/tbx_build_help.sci)6
-rw-r--r--scilab/modules/modules_manager/macros/tbx_build_help_loader.sci31
-rw-r--r--scilab/modules/modules_manager/macros/tbx_build_loader.sci (renamed from scilab/modules/development_tools/macros/tbx_build_loader.sci)10
-rw-r--r--scilab/modules/modules_manager/macros/tbx_build_macros.sci (renamed from scilab/modules/development_tools/macros/tbx_build_macros.sci)2
-rw-r--r--scilab/modules/modules_manager/macros/tbx_build_src.sci32
-rw-r--r--scilab/modules/modules_manager/macros/tbx_builder_gateway.sci (renamed from scilab/modules/development_tools/macros/tbx_builder_gateway.sci)10
-rw-r--r--scilab/modules/modules_manager/macros/tbx_builder_gateway_lang.sci (renamed from scilab/modules/development_tools/macros/tbx_builder_gateway_lang.sci)24
-rw-r--r--scilab/modules/modules_manager/macros/tbx_builder_help.sci (renamed from scilab/modules/development_tools/macros/tbx_builder_help.sci)4
-rw-r--r--scilab/modules/modules_manager/macros/tbx_builder_help_lang.sci (renamed from scilab/modules/development_tools/macros/tbx_builder_help_lang.sci)26
-rw-r--r--scilab/modules/modules_manager/macros/tbx_builder_macros.sci (renamed from scilab/modules/development_tools/macros/tbx_builder_macros.sci)4
-rw-r--r--scilab/modules/modules_manager/macros/tbx_builder_src.sci (renamed from scilab/modules/development_tools/macros/tbx_builder_src.sci)10
-rw-r--r--scilab/modules/modules_manager/macros/tbx_builder_src_lang.sci (renamed from scilab/modules/development_tools/macros/tbx_builder_src_lang.sci)0
-rw-r--r--scilab/modules/modules_manager/modules_manager.iss44
-rw-r--r--scilab/modules/modules_manager/readme.txt1
-rw-r--r--scilab/modules/modules_manager/tests/nonreg_test/bug_6831.tst (renamed from scilab/modules/development_tools/tests/nonreg_tests/bug_6831.tst)0
-rw-r--r--scilab/modules/modules_manager/tests/nonreg_test/bug_6971.tst (renamed from scilab/modules/development_tools/tests/nonreg_tests/bug_6971.tst)0
-rw-r--r--scilab/modules/modules_manager/tests/nonreg_test/bug_7014.tst (renamed from scilab/modules/development_tools/tests/nonreg_tests/bug_7014.tst)0
-rw-r--r--scilab/modules/modules_manager/version.xml11
62 files changed, 1352 insertions, 300 deletions
diff --git a/scilab/configure b/scilab/configure
index e9f2d81..ac03fdb 100755
--- a/scilab/configure
+++ b/scilab/configure
@@ -36753,7 +36753,7 @@ if test "$enable_stop_on_warning" = yes; then
36753 CPPFLAGS="$CPPFLAGS -Werror -O0" 36753 CPPFLAGS="$CPPFLAGS -Werror -O0"
36754fi 36754fi
36755 36755
36756ac_config_files="$ac_config_files libs/MALLOC/Makefile libs/dynamiclibrary/Makefile libs/doublylinkedlist/Makefile libs/hashtable/Makefile libs/libst/Makefile contrib/Makefile modules/helptools/Makefile modules/helptools/macros/xmlfiletohtml.sci modules/data_structures/Makefile modules/differential_equations/Makefile modules/optimization/Makefile modules/elementary_functions/Makefile modules/special_functions/Makefile modules/io/Makefile modules/shell/Makefile modules/completion/Makefile modules/history_manager/Makefile modules/jvm/Makefile modules/sound/Makefile modules/statistics/Makefile modules/mexlib/Makefile modules/sparse/Makefile modules/linear_algebra/Makefile modules/polynomials/Makefile modules/symbolic/Makefile modules/signal_processing/Makefile modules/arnoldi/Makefile modules/interpolation/Makefile modules/intersci/Makefile modules/localization/Makefile modules/cacsd/Makefile modules/boolean/Makefile modules/integer/Makefile modules/double/Makefile modules/fileio/Makefile modules/spreadsheet/Makefile modules/string/Makefile modules/time/Makefile modules/graphics/Makefile modules/graphic_export/Makefile modules/renderer/Makefile modules/action_binding/Makefile modules/gui/Makefile modules/pvm/Makefile modules/randlib/Makefile modules/tclsci/Makefile modules/windows_tools/Makefile modules/core/Makefile modules/api_scilab/Makefile modules/call_scilab/Makefile modules/types/Makefile modules/hdf5/Makefile modules/fftw/Makefile modules/umfpack/Makefile modules/scicos/Makefile modules/scicos_blocks/Makefile modules/functions/Makefile modules/dynamic_link/Makefile modules/overloading/Makefile modules/javasci/Makefile modules/maple2scilab/Makefile modules/m2sci/Makefile modules/compatibility_functions/Makefile modules/texmacs/Makefile modules/development_tools/Makefile modules/output_stream/Makefile modules/console/Makefile modules/demo_tools/Makefile modules/genetic_algorithms/Makefile modules/simulated_annealing/Makefile modules/parameters/Makefile modules/matio/Makefile modules/atoms/Makefile modules/xcos/Makefile modules/xpad/Makefile modules/graph/Makefile modules/parallel/Makefile modules/Makefile libs/Makefile Makefile scilab.pc etc/modules.xml etc/classpath.xml etc/jvm_options.xml scilab-lib.properties scilab-lib-doc.properties" 36756ac_config_files="$ac_config_files libs/MALLOC/Makefile libs/dynamiclibrary/Makefile libs/doublylinkedlist/Makefile libs/hashtable/Makefile libs/libst/Makefile contrib/Makefile modules/helptools/Makefile modules/helptools/macros/xmlfiletohtml.sci modules/data_structures/Makefile modules/differential_equations/Makefile modules/optimization/Makefile modules/elementary_functions/Makefile modules/special_functions/Makefile modules/io/Makefile modules/shell/Makefile modules/completion/Makefile modules/history_manager/Makefile modules/jvm/Makefile modules/sound/Makefile modules/statistics/Makefile modules/mexlib/Makefile modules/sparse/Makefile modules/linear_algebra/Makefile modules/polynomials/Makefile modules/symbolic/Makefile modules/signal_processing/Makefile modules/arnoldi/Makefile modules/interpolation/Makefile modules/intersci/Makefile modules/localization/Makefile modules/cacsd/Makefile modules/boolean/Makefile modules/integer/Makefile modules/double/Makefile modules/fileio/Makefile modules/spreadsheet/Makefile modules/string/Makefile modules/time/Makefile modules/graphics/Makefile modules/graphic_export/Makefile modules/renderer/Makefile modules/action_binding/Makefile modules/gui/Makefile modules/pvm/Makefile modules/randlib/Makefile modules/tclsci/Makefile modules/windows_tools/Makefile modules/core/Makefile modules/api_scilab/Makefile modules/call_scilab/Makefile modules/types/Makefile modules/hdf5/Makefile modules/fftw/Makefile modules/umfpack/Makefile modules/scicos/Makefile modules/scicos_blocks/Makefile modules/functions/Makefile modules/dynamic_link/Makefile modules/overloading/Makefile modules/javasci/Makefile modules/maple2scilab/Makefile modules/m2sci/Makefile modules/compatibility_functions/Makefile modules/texmacs/Makefile modules/development_tools/Makefile modules/output_stream/Makefile modules/console/Makefile modules/demo_tools/Makefile modules/genetic_algorithms/Makefile modules/simulated_annealing/Makefile modules/parameters/Makefile modules/matio/Makefile modules/atoms/Makefile modules/xcos/Makefile modules/xpad/Makefile modules/graph/Makefile modules/parallel/Makefile modules/modules_manager/Makefile modules/Makefile libs/Makefile Makefile scilab.pc etc/modules.xml etc/classpath.xml etc/jvm_options.xml scilab-lib.properties scilab-lib-doc.properties"
36757 36757
36758 36758
36759# Detection of the module for the future version of Scilab 6 36759# Detection of the module for the future version of Scilab 6
@@ -38155,6 +38155,7 @@ do
38155 "modules/xpad/Makefile") CONFIG_FILES="$CONFIG_FILES modules/xpad/Makefile" ;; 38155 "modules/xpad/Makefile") CONFIG_FILES="$CONFIG_FILES modules/xpad/Makefile" ;;
38156 "modules/graph/Makefile") CONFIG_FILES="$CONFIG_FILES modules/graph/Makefile" ;; 38156 "modules/graph/Makefile") CONFIG_FILES="$CONFIG_FILES modules/graph/Makefile" ;;
38157 "modules/parallel/Makefile") CONFIG_FILES="$CONFIG_FILES modules/parallel/Makefile" ;; 38157 "modules/parallel/Makefile") CONFIG_FILES="$CONFIG_FILES modules/parallel/Makefile" ;;
38158 "modules/modules_manager/Makefile") CONFIG_FILES="$CONFIG_FILES modules/modules_manager/Makefile" ;;
38158 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; 38159 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
38159 "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;; 38160 "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
38160 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 38161 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
diff --git a/scilab/configure.ac b/scilab/configure.ac
index 852a513..82836d6 100644
--- a/scilab/configure.ac
+++ b/scilab/configure.ac
@@ -1709,6 +1709,7 @@ modules/xcos/Makefile
1709modules/xpad/Makefile 1709modules/xpad/Makefile
1710modules/graph/Makefile 1710modules/graph/Makefile
1711modules/parallel/Makefile 1711modules/parallel/Makefile
1712modules/modules_manager/Makefile
1712modules/Makefile 1713modules/Makefile
1713libs/Makefile 1714libs/Makefile
1714Makefile 1715Makefile
diff --git a/scilab/contrib/toolbox_skeleton/builder.sce b/scilab/contrib/toolbox_skeleton/builder.sce
index f0d7693..1c7c297 100644
--- a/scilab/contrib/toolbox_skeleton/builder.sce
+++ b/scilab/contrib/toolbox_skeleton/builder.sce
@@ -1,5 +1,5 @@
1// Copyright (C) 2008 - INRIA 1// Copyright (C) 2008 - INRIA
2// Copyright (C) 2009 - DIGITEO 2// Copyright (C) 2009-2010 - DIGITEO
3 3
4// This file is released into the public domain 4// This file is released into the public domain
5 5
@@ -16,20 +16,20 @@ toolbox_dir = get_absolute_file_path("builder.sce");
16try 16try
17 v = getversion("scilab"); 17 v = getversion("scilab");
18catch 18catch
19 error(gettext("Scilab 5.2 or more is required.")); 19 error(gettext("Scilab 5.3 or more is required."));
20end 20end
21 21
22if v(2) < 2 then 22if v(2) < 3 then
23 // new API in scilab 5.2 23 // new API in scilab 5.3
24 error(gettext('Scilab 5.2 or more is required.')); 24 error(gettext('Scilab 5.3 or more is required.'));
25end 25end
26clear v; 26clear v;
27 27
28// Check development_tools module avaibility 28// Check modules_manager module availability
29// ============================================================================= 29// =============================================================================
30 30
31if ~with_module('development_tools') then 31if ~isdef('tbx_build_loader') then
32 error(msprintf(gettext('%s module not installed."),'development_tools')); 32 error(msprintf(gettext('%s module not installed."), 'modules_manager'));
33end 33end
34 34
35// Action 35// Action
diff --git a/scilab/etc/modules.xml.in b/scilab/etc/modules.xml.in
index d03283c..6fcee53 100644
--- a/scilab/etc/modules.xml.in
+++ b/scilab/etc/modules.xml.in
@@ -86,5 +86,6 @@
86<module name="helptools" activate="@HELP_ENABLE@"/> 86<module name="helptools" activate="@HELP_ENABLE@"/>
87<module name="graph" activate="@JAVA_ENABLE@"/> 87<module name="graph" activate="@JAVA_ENABLE@"/>
88<module name="parallel" activate="yes"/> 88<module name="parallel" activate="yes"/>
89<module name="modules_manager" activate="yes"/>
89</modules> 90</modules>
90 91
diff --git a/scilab/etc/modules.xml.vc b/scilab/etc/modules.xml.vc
index 85f8fe1..8fa650c 100644
--- a/scilab/etc/modules.xml.vc
+++ b/scilab/etc/modules.xml.vc
@@ -88,5 +88,6 @@
88<module name="helptools" activate="yes"/> 88<module name="helptools" activate="yes"/>
89<module name="graph" activate="yes"/> 89<module name="graph" activate="yes"/>
90<module name="parallel" activate="yes"/> 90<module name="parallel" activate="yes"/>
91<module name="modules_manager" activate="yes"/>
91<!-- comments --> 92<!-- comments -->
92</modules> 93</modules>
diff --git a/scilab/modules/Makefile.am b/scilab/modules/Makefile.am
index 51773a7..fc71786 100644
--- a/scilab/modules/Makefile.am
+++ b/scilab/modules/Makefile.am
@@ -85,7 +85,9 @@ hdf5 \
85graph\ 85graph\
86xcos \ 86xcos \
87xpad \ 87xpad \
88parallel 88parallel \
89modules_manager
90
89 91
90#umfpack 92#umfpack
91 93
diff --git a/scilab/modules/Makefile.in b/scilab/modules/Makefile.in
index 268f908..894a77c 100644
--- a/scilab/modules/Makefile.in
+++ b/scilab/modules/Makefile.in
@@ -163,7 +163,7 @@ DIST_SUBDIRS = core output_stream arnoldi elementary_functions string \
163 development_tools compatibility_functions helptools fftw \ 163 development_tools compatibility_functions helptools fftw \
164 umfpack demo_tools genetic_algorithms simulated_annealing \ 164 umfpack demo_tools genetic_algorithms simulated_annealing \
165 parameters matio atoms types hdf5 graph xcos xpad parallel \ 165 parameters matio atoms types hdf5 graph xcos xpad parallel \
166 scicos_blocks scicos . javasci 166 modules_manager scicos_blocks scicos . javasci
167DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 167DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
168am__relativize = \ 168am__relativize = \
169 dir0=`pwd`; \ 169 dir0=`pwd`; \
@@ -449,8 +449,8 @@ SUBDIRS = core output_stream arnoldi elementary_functions string \
449 maple2scilab m2sci texmacs development_tools \ 449 maple2scilab m2sci texmacs development_tools \
450 compatibility_functions helptools fftw umfpack demo_tools \ 450 compatibility_functions helptools fftw umfpack demo_tools \
451 genetic_algorithms simulated_annealing parameters matio atoms \ 451 genetic_algorithms simulated_annealing parameters matio atoms \
452 types hdf5 graph xcos xpad parallel $(am__append_1) scicos . \ 452 types hdf5 graph xcos xpad parallel modules_manager \
453 $(am__append_2) 453 $(am__append_1) scicos . $(am__append_2)
454 454
455#### Basic files #### 455#### Basic files ####
456libscilab_la_rootdir = $(mydatadir) 456libscilab_la_rootdir = $(mydatadir)
diff --git a/scilab/modules/development_tools/macros/tbx_build_cleaner.sci b/scilab/modules/development_tools/macros/tbx_build_cleaner.sci
deleted file mode 100644
index 4f71f74..0000000
--- a/scilab/modules/development_tools/macros/tbx_build_cleaner.sci
+++ /dev/null
@@ -1,56 +0,0 @@
1// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2// Copyright (C) 2009 - DIGITEO - Allan CORNET
3//
4// This file must be used under the terms of the CeCILL.
5// This source file is licensed as described in the file COPYING, which
6// you should have received as part of this distribution. The terms
7// are also available at
8// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
9
10// Generate a cleaner.sce script for the toolbox
11function tbx_build_cleaner(toolbox_name, toolbox_path)
12 oldpath = pwd();
13
14 if(exists('toolbox_path', 'local')) then
15 chdir(toolbox_path);
16 end
17
18 mprintf(gettext('Generating cleaner.sce...\n'));
19 cleaner = [
20 "// ====================================================================",
21 "// generated by builder.sce",
22 "// Copyright DIGITEO 2009",
23 "// ====================================================================",
24 "try",
25 " getversion(''scilab'');",
26 "catch",
27 " warning(''Scilab 5.0 or more is required.'');",
28 " return;",
29 "end;",
30 "// ====================================================================",
31 "root_tlbx = get_absolute_file_path(''cleaner.sce'');",
32 "",
33 "if isfile(root_tlbx+''/macros/cleanmacros.sce'') then",
34 " exec(root_tlbx+''/macros/cleanmacros.sce'');",
35 "end",
36 "",
37 "if isfile(root_tlbx+''/src/cleaner_src.sce'') then",
38 " exec(root_tlbx+''/src/cleaner_src.sce'');",
39 "end",
40 "",
41 "if isfile(root_tlbx+''/sci_gateway/cleaner_gateway.sce'') then",
42 " exec(root_tlbx+''/sci_gateway/cleaner_gateway.sce'');",
43 " mdelete(root_tlbx+''/sci_gateway/cleaner_gateway.sce'');",
44 "end",
45 "",
46 "if isfile(root_tlbx+''/loader.sce'') then",
47 " mdelete(root_tlbx+''/loader.sce'');",
48 "end",
49 "// ====================================================================",
50 "clear root_tlbx;",
51 "// ===================================================================="
52 ];
53 mputl(cleaner,'cleaner.sce');
54
55 chdir(oldpath);
56endfunction
diff --git a/scilab/modules/development_tools/macros/tbx_build_gateway_clean.sci b/scilab/modules/development_tools/macros/tbx_build_gateway_clean.sci
deleted file mode 100644
index 13ae5cc..0000000
--- a/scilab/modules/development_tools/macros/tbx_build_gateway_clean.sci
+++ /dev/null
@@ -1,50 +0,0 @@
1// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2// Copyright (C) 2009 - DIGITEO - Allan CORNET
3//
4// This file must be used under the terms of the CeCILL.
5// This source file is licensed as described in the file COPYING, which
6// you should have received as part of this distribution. The terms
7// are also available at
8// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
9
10// Generate a cleaner_gateway.sce script for the gateway
11function tbx_build_gateway_clean(langs, gateway_path)
12 oldpath = pwd();
13
14 if(exists('gateway_path', 'local')) then
15 chdir(gateway_path);
16 end
17
18 mprintf(gettext('Generating cleaner_gateway.sce...\n'));
19 cleaner = [
20 "// This file is released into the public domain",
21 "// Generated by builder_gateway.sce: Please, do not edit this file",
22 "//",
23 "sci_gateway_dir = get_absolute_file_path(''cleaner_gateway.sce'');",
24 "current_dir = pwd();",
25 ""];
26
27 for i = 1:size(langs, "*")
28 cleaner = [cleaner,
29 "chdir(sci_gateway_dir);",
30 "if ( isdir(''"+langs(i)+"'') ) then",
31 " chdir(''"+langs(i)+"'');",
32 " exec(''cleaner.sce'');",
33 " mdelete(''cleaner.sce'');",
34 "end",
35 ""
36 ];
37 end
38
39 cleaner = [cleaner,
40 "chdir(current_dir);",
41 "// ====================================================================",
42 "clear sci_gateway_dir;",
43 "clear current_dir;",
44 "// ===================================================================="
45 ];
46
47 mputl(cleaner,'cleaner_gateway.sce');
48
49 chdir(oldpath);
50endfunction
diff --git a/scilab/modules/development_tools/macros/tbx_build_gateway_loader.sci b/scilab/modules/development_tools/macros/tbx_build_gateway_loader.sci
deleted file mode 100644
index b363a91..0000000
--- a/scilab/modules/development_tools/macros/tbx_build_gateway_loader.sci
+++ /dev/null
@@ -1,61 +0,0 @@
1// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2// Copyright (C) 2008 - INRIA - Simon LIPP <simon.lipp@scilab.org>
3//
4// This file must be used under the terms of the CeCILL.
5// This source file is licensed as described in the file COPYING, which
6// you should have received as part of this distribution. The terms
7// are also available at
8// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
9
10// Generate a loader_gateway.sce script for the gateway
11function tbx_build_gateway_loader(langs, gateway_path)
12 oldpath = pwd();
13
14 if(exists('gateway_path', 'local')) then
15 chdir(gateway_path);
16 end
17
18 mprintf(gettext('Generating loader_gateway.sce...\n'));
19 loader = [
20 "// This file is released into the public domain",
21 "// Generated by builder_gateway.sce: Please, do not edit this file",
22 "//",
23 "",
24 "try"
25 " v = getversion(''scilab'');",
26 "catch",
27 " v = [ 5 0 ]; // or older ",
28 "end",
29 "if (v(1) <= 5) & (v(2) < 2) then",
30 " // new API in scilab 5.2",
31 " error(gettext(''Scilab 5.2 or more is required.''));",
32 "end",
33 "",
34 "sci_gateway_dir = get_absolute_file_path(''loader_gateway.sce'');",
35 "current_dir = pwd();",
36 ""];
37
38 for i = 1:size(langs, "*")
39 loader = [loader,
40 "chdir(sci_gateway_dir);",
41 "if ( isdir(''"+langs(i)+"'') ) then",
42 " chdir(''"+langs(i)+"'');",
43 " exec(''loader.sce'');",
44 "end",
45 ""
46 ];
47 end
48
49 loader = [loader,
50 "chdir(current_dir);",
51 "// ====================================================================",
52 "clear sci_gateway_dir;",
53 "clear current_dir;",
54 "clear v;",
55 "// ===================================================================="
56 ];
57
58 mputl(loader,'loader_gateway.sce');
59
60 chdir(oldpath);
61endfunction
diff --git a/scilab/modules/development_tools/macros/tbx_build_help_loader.sci b/scilab/modules/development_tools/macros/tbx_build_help_loader.sci
deleted file mode 100644
index 6dbe3fe..0000000
--- a/scilab/modules/development_tools/macros/tbx_build_help_loader.sci
+++ /dev/null
@@ -1,31 +0,0 @@
1// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2// Copyright (C) 2008 - INRIA - Simon LIPP <simon.lipp@scilab.org>
3//
4// This file must be used under the terms of the CeCILL.
5// This source file is licensed as described in the file COPYING, which
6// you should have received as part of this distribution. The terms
7// are also available at
8// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
9
10// Generate a loader file for the help
11function tbx_build_help_loader(toolbox_title, help_lang_path)
12 oldpath = pwd();
13
14 if(exists('help_lang_path', 'local')) then
15 chdir(help_lang_path);
16 end
17
18 loader = [
19 "// ====================================================================",
20 "// Copyright INRIA 2008",
21 "// Allan CORNET",
22 "// ====================================================================",
23 "path = get_absolute_file_path(''addchapter.sce'');",
24 "add_help_chapter(''"+toolbox_title+"'',path,%F);",
25 "clear path add_help_chapter;",
26 "// ===================================================================="
27 ];
28
29 mputl(loader, 'addchapter.sce');
30 chdir(oldpath);
31endfunction
diff --git a/scilab/modules/development_tools/macros/tbx_build_src.sci b/scilab/modules/development_tools/macros/tbx_build_src.sci
deleted file mode 100644
index a20c8b0..0000000
--- a/scilab/modules/development_tools/macros/tbx_build_src.sci
+++ /dev/null
@@ -1,32 +0,0 @@
1// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2// Copyright (C) 2008 - INRIA - Simon LIPP <simon.lipp@scilab.org>
3//
4// This file must be used under the terms of the CeCILL.
5// This source file is licensed as described in the file COPYING, which
6// you should have received as part of this distribution. The terms
7// are also available at
8// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
9
10// Simple wrapper around ilib_for_link
11function tbx_build_src(names, files, flag, src_path, libs, ldflags, cflags, ..
12 fflags, cc, libname, loadername, makename)
13 oldpath = pwd();
14
15 if exists('src_path', 'local') then
16 chdir(src_path);
17 end
18
19 if ~exists('libs', 'local') then libs = []; end
20 if ~exists('ldflags', 'local') then ldflags = ""; end
21 if ~exists('cflags', 'local') then cflags = ""; end
22 if ~exists('fflags', 'local') then fflags = ""; end
23 if ~exists('cc', 'local') then cc = ""; end
24 if ~exists('libname', 'local') then libname = ""; end
25 if ~exists('loadername', 'local') then loadername = "loader.sce"; end
26 if ~exists('makename', 'local') then makename = ""; end
27
28 ilib_for_link(names, files, libs, flag, makename, loadername, ..
29 libname, ldflags, cflags, fflags, cc);
30
31 chdir(oldpath);
32endfunction
diff --git a/scilab/modules/modules_manager/Makefile.am b/scilab/modules/modules_manager/Makefile.am
new file mode 100644
index 0000000..f843a4c
--- /dev/null
+++ b/scilab/modules/modules_manager/Makefile.am
@@ -0,0 +1,18 @@
1# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2# Copyright (C) 2010 - DIGITEO - Allan CORNET
3#
4# This file is distributed under the same license as the Scilab package.
5
6
7#### Target ######
8modulename=modules_manager
9
10
11#### modules_manager : Conf files ####
12libmodules_manager_la_rootdir = $(mydatadir)
13libmodules_manager_la_root_DATA = changelog.txt license.txt readme.txt version.xml
14####modules_manager : init scripts ####
15libmodules_manager_la_etcdir = $(mydatadir)/etc
16libmodules_manager_la_etc_DATA = etc/modules_manager.quit etc/modules_manager.start
17
18include $(top_srcdir)/Makefile.incl.am
diff --git a/scilab/modules/modules_manager/Makefile.in b/scilab/modules/modules_manager/Makefile.in
new file mode 100644
index 0000000..bdbee33
--- /dev/null
+++ b/scilab/modules/modules_manager/Makefile.in
@@ -0,0 +1,863 @@
1# Makefile.in generated by automake 1.11.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
6# Inc.
7# This Makefile.in is free software; the Free Software Foundation
8# gives unlimited permission to copy and/or distribute it,
9# with or without modifications, as long as this notice is preserved.
10
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
13# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14# PARTICULAR PURPOSE.
15
16@SET_MAKE@
17
18# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
19# Copyright (C) 2010 - DIGITEO - Allan CORNET
20#
21# This file is distributed under the same license as the Scilab package.
22
23# Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
24# Copyright (C) 2006-2008 - INRIA - Sylvestre LEDRU <sylvestre.ledru@inria.fr>
25# Copyright (C) 2008 - INRIA - Pierre MARECHAL <pierre.marechal@inria.fr>
26#
27# This file must be used under the terms of the CeCILL.
28# This source file is licensed as described in the file COPYING, which
29# you should have received as part of this distribution. The terms
30# are also available at
31# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
32#
33
34##########
35### Makefile included stuff
36### Target, variable, suffixes which are supposed to be usefull in every makefile.am
37##########
38
39VPATH = @srcdir@
40pkgdatadir = $(datadir)/@PACKAGE@
41pkgincludedir = $(includedir)/@PACKAGE@
42pkglibdir = $(libdir)/@PACKAGE@
43pkglibexecdir = $(libexecdir)/@PACKAGE@
44am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
45install_sh_DATA = $(install_sh) -c -m 644
46install_sh_PROGRAM = $(install_sh) -c
47install_sh_SCRIPT = $(install_sh) -c
48INSTALL_HEADER = $(INSTALL_DATA)
49transform = $(program_transform_name)
50NORMAL_INSTALL = :
51PRE_INSTALL = :
52POST_INSTALL = :
53NORMAL_UNINSTALL = :
54PRE_UNINSTALL = :
55POST_UNINSTALL = :
56build_triplet = @build@
57host_triplet = @host@
58DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
59 $(top_srcdir)/Makefile.incl.am
60@NEED_JAVA_TRUE@am__append_1 = java
61
62# With --enable-compilation-tests, launch java unitary tests
63@COMPILATION_TESTS_TRUE@am__append_2 = test
64subdir = modules/modules_manager
65ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
66am__aclocal_m4_deps = $(top_srcdir)/m4/docbook.m4 \
67 $(top_srcdir)/m4/fftw.m4 $(top_srcdir)/m4/fortran.m4 \
68 $(top_srcdir)/m4/giws.m4 $(top_srcdir)/m4/hdf5.m4 \
69 $(top_srcdir)/m4/intel_compiler.m4 \
70 $(top_srcdir)/m4/java-thirdparty.m4 $(top_srcdir)/m4/java.m4 \
71 $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/libsmath.m4 \
72 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/libxml2.m4 \
73 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
74 $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
75 $(top_srcdir)/m4/ocaml.m4 $(top_srcdir)/m4/pcre.m4 \
76 $(top_srcdir)/m4/pkg.m4 $(top_srcdir)/m4/pvm.m4 \
77 $(top_srcdir)/m4/relocatable.m4 $(top_srcdir)/m4/swig.m4 \
78 $(top_srcdir)/m4/symlinks.m4 $(top_srcdir)/m4/tcltk.m4 \
79 $(top_srcdir)/m4/umfpack.m4 $(top_srcdir)/configure.ac
80am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
81 $(ACLOCAL_M4)
82mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
83CONFIG_HEADER = $(top_builddir)/modules/core/includes/machine.h
84CONFIG_CLEAN_FILES =
85CONFIG_CLEAN_VPATH_FILES =
86SOURCES =
87DIST_SOURCES =
88am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
89am__vpath_adj = case $$p in \
90 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
91 *) f=$$p;; \
92 esac;
93am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
94am__install_max = 40
95am__nobase_strip_setup = \
96 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
97am__nobase_strip = \
98 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
99am__nobase_list = $(am__nobase_strip_setup); \
100 for p in $$list; do echo "$$p $$p"; done | \
101 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
102 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
103 if (++n[$$2] == $(am__install_max)) \
104 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
105 END { for (dir in files) print dir, files[dir] }'
106am__base_list = \
107 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
108 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
109am__installdirs = "$(DESTDIR)$(libmodules_manager_la_etcdir)" \
110 "$(DESTDIR)$(libmodules_manager_la_rootdir)"
111DATA = $(libmodules_manager_la_etc_DATA) \
112 $(libmodules_manager_la_root_DATA)
113DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
114ACLOCAL = @ACLOCAL@
115ALL_LINGUAS = @ALL_LINGUAS@
116AMTAR = @AMTAR@
117ANT = @ANT@
118ANTLR = @ANTLR@
119AR = @AR@
120AUTOCONF = @AUTOCONF@
121AUTOHEADER = @AUTOHEADER@
122AUTOMAKE = @AUTOMAKE@
123AVALON_FRAMEWORK = @AVALON_FRAMEWORK@
124AWK = @AWK@
125BATIK = @BATIK@
126BLAS_LIBS = @BLAS_LIBS@
127BSH = @BSH@
128CC = @CC@
129CCDEPMODE = @CCDEPMODE@
130CFLAGS = @CFLAGS@
131CHECKSTYLE = @CHECKSTYLE@
132COMMONS_BEANUTILS = @COMMONS_BEANUTILS@
133COMMONS_IO = @COMMONS_IO@
134COMMONS_LOGGING = @COMMONS_LOGGING@
135CPP = @CPP@
136CPPFLAGS = @CPPFLAGS@
137CXX = @CXX@
138CXXCPP = @CXXCPP@
139CXXDEPMODE = @CXXDEPMODE@
140CXXFLAGS = @CXXFLAGS@
141CYGPATH_W = @CYGPATH_W@
142DEFS = @DEFS@
143DEMOTOOLS_ENABLE = @DEMOTOOLS_ENABLE@
144DEPDIR = @DEPDIR@
145DOCBOOK_ROOT = @DOCBOOK_ROOT@
146DSYMUTIL = @DSYMUTIL@
147DUMPBIN = @DUMPBIN@
148ECHO_C = @ECHO_C@
149ECHO_N = @ECHO_N@
150ECHO_T = @ECHO_T@
151EGREP = @EGREP@
152EXEEXT = @EXEEXT@
153F77 = @F77@
154FFLAGS = @FFLAGS@
155FFTW3_LIB = @FFTW3_LIB@
156FFTW_ENABLE = @FFTW_ENABLE@
157FGREP = @FGREP@
158FLEXDOCK = @FLEXDOCK@
159FLIBS = @FLIBS@
160FOP = @FOP@
161GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@
162GIWS_BIN = @GIWS_BIN@
163GLUEGEN_RT = @GLUEGEN_RT@
164GMSGFMT = @GMSGFMT@
165GMSGFMT_015 = @GMSGFMT_015@
166GRAPHICS_ENABLE = @GRAPHICS_ENABLE@
167GREP = @GREP@
168GUI_ENABLE = @GUI_ENABLE@
169HDF5_CFLAGS = @HDF5_CFLAGS@
170HDF5_ENABLE = @HDF5_ENABLE@
171HDF5_LIBS = @HDF5_LIBS@
172HELP_ENABLE = @HELP_ENABLE@
173INSTALL = @INSTALL@
174INSTALL_DATA = @INSTALL_DATA@
175INSTALL_PROGRAM = @INSTALL_PROGRAM@
176INSTALL_SCRIPT = @INSTALL_SCRIPT@
177INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
178INTLLIBS = @INTLLIBS@
179INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
180JAR = @JAR@
181JAVA = @JAVA@
182JAVAC = @JAVAC@
183JAVAH = @JAVAH@
184JAVASCI_ENABLE = @JAVASCI_ENABLE@
185JAVA_DEBUG_OPTIONS = @JAVA_DEBUG_OPTIONS@
186JAVA_ENABLE = @JAVA_ENABLE@
187JAVA_G = @JAVA_G@
188JAVA_HOME = @JAVA_HOME@
189JAVA_JNI_INCLUDE = @JAVA_JNI_INCLUDE@
190JAVA_JNI_LIBS = @JAVA_JNI_LIBS@
191JDB = @JDB@
192JEUCLID_CORE = @JEUCLID_CORE@
193JGRAPHX = @JGRAPHX@
194JHALL = @JHALL@
195JHDF5 = @JHDF5@
196JLATEXMATH = @JLATEXMATH@
197JLATEXMATH_FOP = @JLATEXMATH_FOP@
198JOGL = @JOGL@
199JROSETTA_API = @JROSETTA_API@
200JROSETTA_ENGINE = @JROSETTA_ENGINE@
201JUNIT = @JUNIT@
202LAPACK_LIBS = @LAPACK_LIBS@
203LD = @LD@
204LDFLAGS = @LDFLAGS@
205LIBICONV = @LIBICONV@
206LIBINTL = @LIBINTL@
207LIBM = @LIBM@
208LIBOBJS = @LIBOBJS@
209LIBS = @LIBS@
210LIBTOOL = @LIBTOOL@
211LIPO = @LIPO@
212LN_S = @LN_S@
213LOOKS = @LOOKS@
214LTLIBICONV = @LTLIBICONV@
215LTLIBINTL = @LTLIBINTL@
216LTLIBOBJS = @LTLIBOBJS@
217MAINT = @MAINT@
218MAKEINFO = @MAKEINFO@
219MATIO_CFLAGS = @MATIO_CFLAGS@
220MATIO_ENABLE = @MATIO_ENABLE@
221MATIO_LIBS = @MATIO_LIBS@
222MKDIR_P = @MKDIR_P@
223MSGCAT = @MSGCAT@
224MSGFMT = @MSGFMT@
225MSGFMT_015 = @MSGFMT_015@
226MSGMERGE = @MSGMERGE@
227NM = @NM@
228NMEDIT = @NMEDIT@
229OBJDUMP = @OBJDUMP@
230OBJEXT = @OBJEXT@
231OCAMLC = @OCAMLC@
232OCAMLDEP = @OCAMLDEP@
233OCAMLLEX = @OCAMLLEX@
234OCAMLOPT = @OCAMLOPT@
235OCAMLYACC = @OCAMLYACC@
236OPENMP_CFLAGS = @OPENMP_CFLAGS@
237OPENMP_CXXFLAGS = @OPENMP_CXXFLAGS@
238OPENMP_ENABLE = @OPENMP_ENABLE@
239OPENMP_LIBS = @OPENMP_LIBS@
240OTOOL = @OTOOL@
241OTOOL64 = @OTOOL64@
242PACKAGE = @PACKAGE@
243PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
244PACKAGE_NAME = @PACKAGE_NAME@
245PACKAGE_STRING = @PACKAGE_STRING@
246PACKAGE_TARNAME = @PACKAGE_TARNAME@
247PACKAGE_URL = @PACKAGE_URL@
248PACKAGE_VERSION = @PACKAGE_VERSION@
249PATH_SEPARATOR = @PATH_SEPARATOR@
250PCRE_CFLAGS = @PCRE_CFLAGS@
251PCRE_CONFIG = @PCRE_CONFIG@
252PCRE_LIBS = @PCRE_LIBS@
253PCRE_VERSION = @PCRE_VERSION@
254PKG_CONFIG = @PKG_CONFIG@
255POSUB = @POSUB@
256POW_LIB = @POW_LIB@
257PVMGETARCH = @PVMGETARCH@
258PVM_ARCH = @PVM_ARCH@
259PVM_ENABLE = @PVM_ENABLE@
260PVM_INCLUDE = @PVM_INCLUDE@
261PVM_LIB = @PVM_LIB@
262PYTHON = @PYTHON@
263QDOX = @QDOX@
264RANLIB = @RANLIB@
265RELOCATABLE = @RELOCATABLE@
266RT_LIB = @RT_LIB@
267SAXON = @SAXON@
268SCICOS_ENABLE = @SCICOS_ENABLE@
269SCILAB_LIBRARY_VERSION = @SCILAB_LIBRARY_VERSION@
270SED = @SED@
271SET_MAKE = @SET_MAKE@
272SET_RELOCATABLE = @SET_RELOCATABLE@
273SHELL = @SHELL@
274SKINLF = @SKINLF@
275SPLINT = @SPLINT@
276STRIP = @STRIP@
277SWIG_BIN = @SWIG_BIN@
278SWIG_JAVA = @SWIG_JAVA@
279SWIG_RUNTIME_LIBS_DIR = @SWIG_RUNTIME_LIBS_DIR@
280TCLTK_LIBS = @TCLTK_LIBS@
281TCL_INC_PATH = @TCL_INC_PATH@
282TESTNG = @TESTNG@
283TK_INC_PATH = @TK_INC_PATH@
284UMFPACK_ENABLE = @UMFPACK_ENABLE@
285UMFPACK_LIB = @UMFPACK_LIB@
286USE_NLS = @USE_NLS@
287VERSION = @VERSION@
288WITH_OCAML = @WITH_OCAML@
289WITH_TKSCI = @WITH_TKSCI@
290XGETTEXT = @XGETTEXT@
291XGETTEXT_015 = @XGETTEXT_015@
292XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
293XMKMF = @XMKMF@
294XMLGRAPHICS_COMMONS = @XMLGRAPHICS_COMMONS@
295XML_APIS_EXT = @XML_APIS_EXT@
296XML_CONFIG = @XML_CONFIG@
297XML_FLAGS = @XML_FLAGS@
298XML_LIBS = @XML_LIBS@
299XML_VERSION = @XML_VERSION@
300X_CFLAGS = @X_CFLAGS@
301X_EXTRA_LIBS = @X_EXTRA_LIBS@
302X_LIBS = @X_LIBS@
303X_PRE_LIBS = @X_PRE_LIBS@
304abs_builddir = @abs_builddir@
305abs_srcdir = @abs_srcdir@
306abs_top_builddir = @abs_top_builddir@
307abs_top_srcdir = @abs_top_srcdir@
308ac_ct_CC = @ac_ct_CC@
309ac_ct_CXX = @ac_ct_CXX@
310ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
311ac_ct_F77 = @ac_ct_F77@
312am__include = @am__include@
313am__leading_dot = @am__leading_dot@
314am__quote = @am__quote@
315am__tar = @am__tar@
316am__untar = @am__untar@
317bindir = @bindir@
318build = @build@
319build_alias = @build_alias@
320build_cpu = @build_cpu@
321build_os = @build_os@
322build_vendor = @build_vendor@
323builddir = @builddir@
324cxx_present = @cxx_present@
325datadir = @datadir@
326datarootdir = @datarootdir@
327docdir = @docdir@
328dvidir = @dvidir@
329exec_prefix = @exec_prefix@
330host = @host@
331host_alias = @host_alias@
332host_cpu = @host_cpu@
333host_os = @host_os@
334host_vendor = @host_vendor@
335htmldir = @htmldir@
336includedir = @includedir@
337infodir = @infodir@
338install_sh = @install_sh@
339libdir = @libdir@
340libexecdir = @libexecdir@
341localedir = @localedir@
342localstatedir = @localstatedir@
343mandir = @mandir@
344mkdir_p = @mkdir_p@
345oldincludedir = @oldincludedir@
346pdfdir = @pdfdir@
347prefix = @prefix@
348program_transform_name = @program_transform_name@
349psdir = @psdir@
350sbindir = @sbindir@
351sharedstatedir = @sharedstatedir@
352srcdir = @srcdir@
353sysconfdir = @sysconfdir@
354target_alias = @target_alias@
355top_build_prefix = @top_build_prefix@
356top_builddir = @top_builddir@
357top_srcdir = @top_srcdir@
358
359#### Target ######
360modulename = modules_manager
361
362#### modules_manager : Conf files ####
363libmodules_manager_la_rootdir = $(mydatadir)
364libmodules_manager_la_root_DATA = changelog.txt license.txt readme.txt version.xml
365####modules_manager : init scripts ####
366libmodules_manager_la_etcdir = $(mydatadir)/etc
367libmodules_manager_la_etc_DATA = etc/modules_manager.quit etc/modules_manager.start
368
369# Where all the Scilab stuff is installed (macros, help, ...)
370mydatadir = $(pkgdatadir)/modules/$(modulename)
371
372# splint options
373SPLINT_OPTIONS = -weak -booltype BOOL
374
375########################### JAVA ######################################
376#### We are delegating java compilation to ant... Thanks to that
377#### the procedure will be the same with Microsoft Windows (C)
378#### and Linux/Unix
379#######################################################################
380TARGETS_ALL = $(am__append_1) $(am__append_2)
381
382################ MACROS ######################
383# Rule to build a macro
384# NOT USED AT THE MOMENT
385SUFFIXES = .sci
386
387########### INSTALL DOCUMENTATION ###################
388
389# Install documentation files into the right target
390# We do not use the automake mechanism (libxxxx_la_help_fr_DATA) because
391# automake needs the html files to be present which is not the case when
392# we are building Scilab
393
394# Where it should be installed
395pkgdocdir = $(mydatadir)
396
397# What is the mask of the help source
398DOCMASKXML = *.xml
399
400# What is the mask of the MathML sources
401DOCMASKMML = *.mml
402
403########### INSTALL DATA ###################
404# Install macros, help & demos
405# Where it should be installed
406pkgmacrosdir = $(mydatadir)
407# Which directory we process
408MACRODIRS = macros/
409# Mask of the Scilab sources macros
410MACROMASK = *.sci
411# Mask of the Scilab executable sources macros
412MACROBUILDMASK = *.sce
413# Mask of the Scilab compiled macros
414MACROBINMASK = *.bin
415# List of the standard directory for tests
416TESTS_DIR = tests/benchmarks tests/nonreg_tests tests/unit_tests
417# Where the demos should be installed
418pkgdemosdir = $(mydatadir)
419# List of the standard directory for demos
420DEMOS_DIR = demos
421# List of the standard directory for examples
422EXAMPLES_DIR = examples
423# Where to export JAVA archives (.jar)
424JARDIR = jar/
425# JAR files mask
426JARMASK = *.jar
427# Chapter file
428HELP_CHAPTERDIR = help/
429HELP_CHAPTERFILE = addchapter.sce
430HELP_CHAPTERLANG = en_US fr_FR pt_BR
431all: all-am
432
433.SUFFIXES:
434.SUFFIXES: .sci .bin
435$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.incl.am $(am__configure_deps)
436 @for dep in $?; do \
437 case '$(am__configure_deps)' in \
438 *$$dep*) \
439 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
440 && { if test -f $@; then exit 0; else break; fi; }; \
441 exit 1;; \
442 esac; \
443 done; \
444 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign modules/modules_manager/Makefile'; \
445 $(am__cd) $(top_srcdir) && \
446 $(AUTOMAKE) --foreign modules/modules_manager/Makefile
447.PRECIOUS: Makefile
448Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
449 @case '$?' in \
450 *config.status*) \
451 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
452 *) \
453 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
454 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
455 esac;
456
457$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
458 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
459
460$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
461 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
462$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
463 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
464$(am__aclocal_m4_deps):
465
466mostlyclean-libtool:
467 -rm -f *.lo
468
469clean-libtool:
470 -rm -rf .libs _libs
471install-libmodules_manager_la_etcDATA: $(libmodules_manager_la_etc_DATA)
472 @$(NORMAL_INSTALL)
473 test -z "$(libmodules_manager_la_etcdir)" || $(MKDIR_P) "$(DESTDIR)$(libmodules_manager_la_etcdir)"
474 @list='$(libmodules_manager_la_etc_DATA)'; test -n "$(libmodules_manager_la_etcdir)" || list=; \
475 for p in $$list; do \
476 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
477 echo "$$d$$p"; \
478 done | $(am__base_list) | \
479 while read files; do \
480 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libmodules_manager_la_etcdir)'"; \
481 $(INSTALL_DATA) $$files "$(DESTDIR)$(libmodules_manager_la_etcdir)" || exit $$?; \
482 done
483
484uninstall-libmodules_manager_la_etcDATA:
485 @$(NORMAL_UNINSTALL)
486 @list='$(libmodules_manager_la_etc_DATA)'; test -n "$(libmodules_manager_la_etcdir)" || list=; \
487 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
488 test -n "$$files" || exit 0; \
489 echo " ( cd '$(DESTDIR)$(libmodules_manager_la_etcdir)' && rm -f" $$files ")"; \
490 cd "$(DESTDIR)$(libmodules_manager_la_etcdir)" && rm -f $$files
491install-libmodules_manager_la_rootDATA: $(libmodules_manager_la_root_DATA)
492 @$(NORMAL_INSTALL)
493 test -z "$(libmodules_manager_la_rootdir)" || $(MKDIR_P) "$(DESTDIR)$(libmodules_manager_la_rootdir)"
494 @list='$(libmodules_manager_la_root_DATA)'; test -n "$(libmodules_manager_la_rootdir)" || list=; \
495 for p in $$list; do \
496 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
497 echo "$$d$$p"; \
498 done | $(am__base_list) | \
499 while read files; do \
500 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(libmodules_manager_la_rootdir)'"; \
501 $(INSTALL_DATA) $$files "$(DESTDIR)$(libmodules_manager_la_rootdir)" || exit $$?; \
502 done
503
504uninstall-libmodules_manager_la_rootDATA:
505 @$(NORMAL_UNINSTALL)
506 @list='$(libmodules_manager_la_root_DATA)'; test -n "$(libmodules_manager_la_rootdir)" || list=; \
507 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
508 test -n "$$files" || exit 0; \
509 echo " ( cd '$(DESTDIR)$(libmodules_manager_la_rootdir)' && rm -f" $$files ")"; \
510 cd "$(DESTDIR)$(libmodules_manager_la_rootdir)" && rm -f $$files
511tags: TAGS
512TAGS:
513
514ctags: CTAGS
515CTAGS:
516
517
518distdir: $(DISTFILES)
519 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
520 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
521 list='$(DISTFILES)'; \
522 dist_files=`for file in $$list; do echo $$file; done | \
523 sed -e "s|^$$srcdirstrip/||;t" \
524 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
525 case $$dist_files in \
526 */*) $(MKDIR_P) `echo "$$dist_files" | \
527 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
528 sort -u` ;; \
529 esac; \
530 for file in $$dist_files; do \
531 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
532 if test -d $$d/$$file; then \
533 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
534 if test -d "$(distdir)/$$file"; then \
535 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
536 fi; \
537 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
538 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
539 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
540 fi; \
541 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
542 else \
543 test -f "$(distdir)/$$file" \
544 || cp -p $$d/$$file "$(distdir)/$$file" \
545 || exit 1; \
546 fi; \
547 done
548check-am: all-am
549 $(MAKE) $(AM_MAKEFLAGS) check-local
550check: check-am
551all-am: Makefile $(DATA) all-local
552installdirs:
553 for dir in "$(DESTDIR)$(libmodules_manager_la_etcdir)" "$(DESTDIR)$(libmodules_manager_la_rootdir)"; do \
554 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
555 done
556install: install-am
557install-exec: install-exec-am
558install-data: install-data-am
559uninstall: uninstall-am
560
561install-am: all-am
562 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
563
564installcheck: installcheck-am
565install-strip:
566 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
567 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
568 `test -z '$(STRIP)' || \
569 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
570mostlyclean-generic:
571
572clean-generic:
573
574distclean-generic:
575 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
576 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
577
578maintainer-clean-generic:
579 @echo "This command is intended for maintainers to use"
580 @echo "it deletes files that may require special tools to rebuild."
581clean: clean-am
582
583clean-am: clean-generic clean-libtool clean-local mostlyclean-am
584
585distclean: distclean-am
586 -rm -f Makefile
587distclean-am: clean-am distclean-generic distclean-local
588
589dvi: dvi-am
590
591dvi-am:
592
593html: html-am
594
595html-am:
596
597info: info-am
598
599info-am:
600
601install-data-am: install-data-local \
602 install-libmodules_manager_la_etcDATA \
603 install-libmodules_manager_la_rootDATA
604
605install-dvi: install-dvi-am
606
607install-dvi-am:
608
609install-exec-am:
610
611install-html: install-html-am
612
613install-html-am: install-html-local
614
615install-info: install-info-am
616
617install-info-am:
618
619install-man:
620
621install-pdf: install-pdf-am
622
623install-pdf-am:
624
625install-ps: install-ps-am
626
627install-ps-am:
628
629installcheck-am:
630
631maintainer-clean: maintainer-clean-am
632 -rm -f Makefile
633maintainer-clean-am: distclean-am maintainer-clean-generic
634
635mostlyclean: mostlyclean-am
636
637mostlyclean-am: mostlyclean-generic mostlyclean-libtool
638
639pdf: pdf-am
640
641pdf-am:
642
643ps: ps-am
644
645ps-am:
646
647uninstall-am: uninstall-libmodules_manager_la_etcDATA \
648 uninstall-libmodules_manager_la_rootDATA
649
650.MAKE: check-am install-am install-strip
651
652.PHONY: all all-am all-local check check-am check-local clean \
653 clean-generic clean-libtool clean-local distclean \
654 distclean-generic distclean-libtool distclean-local distdir \
655 dvi dvi-am html html-am info info-am install install-am \
656 install-data install-data-am install-data-local install-dvi \
657 install-dvi-am install-exec install-exec-am install-html \
658 install-html-am install-html-local install-info \
659 install-info-am install-libmodules_manager_la_etcDATA \
660 install-libmodules_manager_la_rootDATA install-man install-pdf \
661 install-pdf-am install-ps install-ps-am install-strip \
662 installcheck installcheck-am installdirs maintainer-clean \
663 maintainer-clean-generic mostlyclean mostlyclean-generic \
664 mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
665 uninstall-libmodules_manager_la_etcDATA \
666 uninstall-libmodules_manager_la_rootDATA
667
668
669# This target enables tests for Scilab
670check-local: $(top_builddir)/scilab-bin test
671 @COMMAND="test_run('$(modulename)');quit";\
672 export LANG=C;\
673 $(top_builddir)/bin/scilab -nwni -nb -e "$$COMMAND"
674check-code:
675 if test -f build.xml; then \
676 $(ANT) checkstyle; \
677 fi
678 if test -x "$(SPLINT)"; then \
679 $(SPLINT) $(SPLINT_OPTIONS) -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ $(INCLUDE_FLAGS) $(CHECK_SRC); \
680 fi
681@NEED_JAVA_TRUE@java:
682# Some configurations needs to export JAVA_HOME in the current env
683@NEED_JAVA_TRUE@ @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
684@NEED_JAVA_TRUE@ if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \
685@NEED_JAVA_TRUE@ if test -f build.xml -a $$USEANT -eq 1; then \
686@NEED_JAVA_TRUE@ $(ANT); \
687@NEED_JAVA_TRUE@ fi
688
689@NEED_JAVA_TRUE@clean-java:
690# Some configurations needs to export JAVA_HOME in the current env
691@NEED_JAVA_TRUE@ @if test "$(JAVA_HOME)"; then export JAVA_HOME=$(JAVA_HOME); fi; \
692@NEED_JAVA_TRUE@ if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \
693@NEED_JAVA_TRUE@ if test -f build.xml -a $$USEANT -eq 1; then \
694@NEED_JAVA_TRUE@ $(ANT) clean; \
695@NEED_JAVA_TRUE@ fi;
696
697# If the user request for the SWIG generation of the wrappers Java => C/C++
698# We call the target swig-build on the variable SWIG_WRAPPERS
699
700@SWIG_TRUE@swig: $(SWIG_WRAPPERS)
701@SWIG_TRUE@ @SWIG_PACKAGENAME=org.scilab.modules.$(modulename); \
702@SWIG_TRUE@ SWIG_OUTDIR=src/java/org/scilab/modules/$(modulename)/; \
703@SWIG_TRUE@ if test -n "$(SWIG_WRAPPERS)"; then \
704@SWIG_TRUE@ for file in $(SWIG_WRAPPERS) ; do \
705@SWIG_TRUE@ echo "Swig process of $$file ..."; \
706@SWIG_TRUE@ $(SWIG_BIN) $(SWIG_JAVA) -package $$SWIG_PACKAGENAME -outdir $$SWIG_OUTDIR $$file; \
707@SWIG_TRUE@ done; \
708@SWIG_TRUE@ fi
709
710# If the user request for the SWIG generation of the wrappers Java => C/C++
711# We call the target swig-build on the variable SWIG_WRAPPERS
712
713@GIWS_TRUE@giws: $(GIWS_WRAPPERS)
714@GIWS_TRUE@ @GIWS_OUTPUTDIR=src/jni/;\
715@GIWS_TRUE@ if test -n "$(GIWS_WRAPPERS)"; then \
716@GIWS_TRUE@ for file in $(GIWS_WRAPPERS) ; do \
717@GIWS_TRUE@ echo "GIWS process of $$file ..."; \
718@GIWS_TRUE@ $(GIWS_BIN) --disable-return-size-array --output-dir $$GIWS_OUTPUTDIR --throws-exception-on-error --description-file $$file; \
719@GIWS_TRUE@ done; \
720@GIWS_TRUE@ fi
721
722macros:
723 -@( if test ! -x $(top_builddir)/scilab-bin; then \
724 echo "Error : Cannot build $< : Scilab has not been built"; \
725 else \
726 $(top_builddir)/bin/scilab -ns -nwni -e "exec('macros/buildmacros.sce');quit;";\
727 fi)
728
729# Removes the macros
730clean-macros:
731# Removes macros (*.bin generated from .sci)
732 @for dir in $(MACRODIRS) $(MACROSDIRSEXT) ; do \
733 echo "rm -f $(builddir)/$$dir/$(MACROBINMASK)"; \
734 rm -f $(builddir)/$$dir/$(MACROBINMASK); \
735 done
736
737test:
738# More tests could be added here
739 @if test -z "$(USEANT)"; then USEANT=0; else USEANT=1; fi; \
740 if test -f build.xml -a $$USEANT -eq 1; then \
741 $(ANT) test; \
742 fi
743
744all-local: $(TARGETS_ALL)
745
746.sci.bin:
747 -@( if test ! -x $(top_builddir)/scilab-bin; then \
748 echo "Error : Cannot build $< : Scilab has not been build"; \
749 else \
750 echo "Creating $@"; \
751 $(top_builddir)/bin/scilab -ns -nwni -e "exec('$(abs_srcdir)/$<');save('$(abs_srcdir)/$@');exit;"; \
752 fi )
753
754install-html-local:
755# If the user wants the help sources to be installed
756@INSTALL_HELP_XML_TRUE@ @echo "-------- Install of XML sources of help files --------"; \
757@INSTALL_HELP_XML_TRUE@ for lang in $(ALL_LINGUAS); do \
758@INSTALL_HELP_XML_TRUE@ if test -d $(srcdir)/help/$$lang; then \
759@INSTALL_HELP_XML_TRUE@ $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/help/$$lang && \
760@INSTALL_HELP_XML_TRUE@ if ls -lLd $(srcdir)/help/$$lang/$(DOCMASKXML) >/dev/null 2>&1; then \
761@INSTALL_HELP_XML_TRUE@ for file in $(srcdir)/help/$$lang/$(DOCMASKXML) ; do \
762@INSTALL_HELP_XML_TRUE@ echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/help/$$lang" ; \
763@INSTALL_HELP_XML_TRUE@ $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/help/$$lang ; \
764@INSTALL_HELP_XML_TRUE@ done ; \
765@INSTALL_HELP_XML_TRUE@ fi; \
766@INSTALL_HELP_XML_TRUE@ fi; \
767@INSTALL_HELP_XML_TRUE@ done; \
768@INSTALL_HELP_XML_TRUE@ @echo "-------- Install of MathML sources --------"; \
769@INSTALL_HELP_XML_TRUE@ if test -d $(srcdir)/help/mml/; then \
770@INSTALL_HELP_XML_TRUE@ $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/help/mml/ && \
771@INSTALL_HELP_XML_TRUE@ if ls -lLd $(srcdir)/help/mml/$(DOCMASKMML) >/dev/null 2>&1; then \
772@INSTALL_HELP_XML_TRUE@ for file in $(srcdir)/help/mml/$(DOCMASKMML) ; do \
773@INSTALL_HELP_XML_TRUE@ echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/help/mml" ; \
774@INSTALL_HELP_XML_TRUE@ $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/help/mml ; \
775@INSTALL_HELP_XML_TRUE@ done ; \
776@INSTALL_HELP_XML_TRUE@ fi; \
777@INSTALL_HELP_XML_TRUE@ fi
778install-data-local:
779# Install the tests
780 @echo "-------- Install tests (if any) --------"; \
781 for dir in $(TESTS_DIR) $(TESTS_DIREXT) ; do \
782 if test -d $(srcdir)/$$dir/; then \
783 $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir && \
784 for file in `find $(srcdir)/$$dir | sed "s|^$(srcdir)/$$dir||" 2>/dev/null`; do \
785 if test -d "$(srcdir)/$$dir/$$file"; then \
786 echo $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir/$$file; \
787 $(mkinstalldirs) "$(DESTDIR)$(pkgmacrosdir)/$$dir/$$file"; \
788 else \
789 echo "$(INSTALL_DATA) $(srcdir)/$$dir/$$file $(DESTDIR)$(pkgmacrosdir)/`dirname $$dir/$$file`" ; \
790 $(INSTALL_DATA) "$(srcdir)/$$dir/$$file" "$(DESTDIR)$(pkgmacrosdir)/`dirname $$dir/$$file`" ; \
791 fi \
792 done; \
793 fi; \
794 done
795# Install the help chapter
796 @echo "-------- Install the help chapter (if any) --------"; \
797 for lang in $(HELP_CHAPTERLANG); do \
798 HELPFILE=$(srcdir)/$(HELP_CHAPTERDIR)$$lang/$(HELP_CHAPTERFILE); \
799 if test -f $$HELPFILE; then \
800 echo $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(HELP_CHAPTERDIR)/$$lang/; \
801 $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(HELP_CHAPTERDIR)/$$lang/; \
802 echo $(INSTALL_DATA) $$HELPFILE $(DESTDIR)$(pkgdocdir)/$$HELPFILE; \
803 $(INSTALL_DATA) $$HELPFILE $(DESTDIR)$(pkgdocdir)/$$HELPFILE; \
804 fi; \
805 done
806# Install the demos & examples
807 @echo "-------- Install demos & examples (if any) --------"; \
808 for dir in $(DEMOS_DIR) $(DEMOS_DIREXT) $(EXAMPLES_DIR) $(EXAMPLES_DIREXT) ; do \
809 if test -d $(srcdir)/$$dir/; then \
810 $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$$dir && \
811 for file in `find $(srcdir)/$$dir | sed "s|^$(srcdir)/$$dir||" 2>/dev/null`; do \
812 if test -d "$(srcdir)/$$dir/$$file"; then \
813 echo $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$$dir/$$file; \
814 $(mkinstalldirs) "$(DESTDIR)$(pkgdocdir)/$$dir/$$file"; \
815 else \
816 echo "$(INSTALL_DATA) $(srcdir)/$$dir/$$file $(DESTDIR)$(pkgdocdir)/`dirname $$dir/$$file`" ; \
817 $(INSTALL_DATA) "$(srcdir)/$$dir/$$file" "$(DESTDIR)$(pkgdocdir)/`dirname $$dir/$$file`" ; \
818 fi \
819 done; \
820 fi; \
821 done
822# Install the macros
823 @echo "-------- Install macros (if any) --------"; \
824 for dir in $(MACRODIRS) $(MACROSDIRSEXT) ; do \
825 $(mkinstalldirs) $(DESTDIR)$(pkgmacrosdir)/$$dir && \
826 if test -d $(srcdir)/$$dir/; then \
827 FILELIST="$(srcdir)/$$dir/$(MACROMASK) $(srcdir)/$$dir/$(MACROBINMASK) $(srcdir)/$$dir/$(MACROBUILDMASK) $(srcdir)/$$dir/names $(srcdir)/$$dir/lib";\
828 if test -n "$(MACROSSPECIALEXT)"; then \
829 specialExtDir=""; \
830 for specialExt in $(MACROSSPECIALEXT); do \
831 specialExtDir="$$specialExtDir $(srcdir)/$$dir/$$specialExt"; \
832 done; \
833 FILELIST="$$FILELIST $$specialExtDir"; \
834 fi; \
835 for file in `ls -1 $$FILELIST 2>/dev/null`; do \
836 echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgmacrosdir)/$$dir" ; \
837 $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgmacrosdir)/$$dir ; \
838 done; \
839 fi; \
840 done
841# Install java files (.jar)
842 @if ls -lLd $(srcdir)/$(JARDIR)$(JARMASK) >/dev/null 2>&1; then \
843 echo "-------- Install jar files --------"; \
844 $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/$(JARDIR); \
845 for file in $(srcdir)/$(JARDIR)$(JARMASK); do\
846 echo "$(INSTALL_DATA) $$file $(DESTDIR)$(pkgdocdir)/$(JARDIR)" ; \
847 $(INSTALL_DATA) "$$file" $(DESTDIR)$(pkgdocdir)/$(JARDIR) ; \
848 done ; \
849 fi
850
851########### CLEAN ###################
852# Clean macros and help (generated automatically by Scilab)
853@NEED_JAVA_TRUE@clean-local: clean-java clean-macros
854@NEED_JAVA_FALSE@clean-local: clean-macros
855
856distclean-local:
857 rm -f $(builddir)/help/*/.last_successful_build_javaHelp $(builddir)/help/*/.list_*
858
859.PHONY: macros java swig giws
860
861# Tell versions [3.59,3.63) of GNU make to not export all variables.
862# Otherwise a system limit (for SysV at least) may be exceeded.
863.NOEXPORT:
diff --git a/scilab/modules/modules_manager/changelog.txt b/scilab/modules/modules_manager/changelog.txt
new file mode 100644
index 0000000..3fa0863
--- /dev/null
+++ b/scilab/modules/modules_manager/changelog.txt
@@ -0,0 +1 @@
changelog modules_manager module
diff --git a/scilab/modules/modules_manager/etc/modules_manager.quit b/scilab/modules/modules_manager/etc/modules_manager.quit
new file mode 100644
index 0000000..93b6cdb
--- /dev/null
+++ b/scilab/modules/modules_manager/etc/modules_manager.quit
@@ -0,0 +1,10 @@
1// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2// Copyright (C) 2010 - DIGITEO - Allan CORNET
3//
4// This file must be used under the terms of the CeCILL.
5// This source file is licensed as described in the file COPYING, which
6// you should have received as part of this distribution. The terms
7// are also available at
8// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
9
10// =============================================================================
diff --git a/scilab/modules/modules_manager/etc/modules_manager.start b/scilab/modules/modules_manager/etc/modules_manager.start
new file mode 100644
index 0000000..0f9287d
--- /dev/null
+++ b/scilab/modules/modules_manager/etc/modules_manager.start
@@ -0,0 +1,13 @@
1// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2// Copyright (C) 2010 - DIGITEO - Allan CORNET
3//
4// This file must be used under the terms of the CeCILL.
5// This source file is licensed as described in the file COPYING, which
6// you should have received as part of this distribution. The terms
7// are also available at
8// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
9
10// Load functions libraries
11// =============================================================================
12load("SCI/modules/modules_manager/macros/lib");
13
diff --git a/scilab/modules/modules_manager/help/en_US/addchapter.sce b/scilab/modules/modules_manager/help/en_US/addchapter.sce
new file mode 100644
index 0000000..f03dd4a
--- /dev/null
+++ b/scilab/modules/modules_manager/help/en_US/addchapter.sce
@@ -0,0 +1,11 @@
1// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2// Copyright (C) 2009 - DIGITEO
3//
4// This file must be used under the terms of the CeCILL.
5// This source file is licensed as described in the file COPYING, which
6// you should have received as part of this distribution. The terms
7// are also available at
8// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
9
10add_help_chapter("Modules manager",SCI+"/modules/modules_manager/help/en_US",%T);
11
diff --git a/scilab/modules/development_tools/help/en_US/tbx_build_cleaner.xml b/scilab/modules/modules_manager/help/en_US/tbx_build_cleaner.xml
index 8a0668f..8a0668f 100644
--- a/scilab/modules/development_tools/help/en_US/tbx_build_cleaner.xml
+++ b/scilab/modules/modules_manager/help/en_US/tbx_build_cleaner.xml
diff --git a/scilab/modules/development_tools/help/en_US/tbx_build_gateway.xml b/scilab/modules/modules_manager/help/en_US/tbx_build_gateway.xml
index f48f982..f48f982 100644
--- a/scilab/modules/development_tools/help/en_US/tbx_build_gateway.xml
+++ b/scilab/modules/modules_manager/help/en_US/tbx_build_gateway.xml
diff --git a/scilab/modules/development_tools/help/en_US/tbx_build_gateway_clean.xml b/scilab/modules/modules_manager/help/en_US/tbx_build_gateway_clean.xml
index f837f49..f837f49 100644
--- a/scilab/modules/development_tools/help/en_US/tbx_build_gateway_clean.xml
+++ b/scilab/modules/modules_manager/help/en_US/tbx_build_gateway_clean.xml
diff --git a/scilab/modules/development_tools/help/en_US/tbx_build_gateway_loader.xml b/scilab/modules/modules_manager/help/en_US/tbx_build_gateway_loader.xml
index 05c1b62..05c1b62 100644
--- a/scilab/modules/development_tools/help/en_US/tbx_build_gateway_loader.xml
+++ b/scilab/modules/modules_manager/help/en_US/tbx_build_gateway_loader.xml
diff --git a/scilab/modules/development_tools/help/en_US/tbx_build_help.xml b/scilab/modules/modules_manager/help/en_US/tbx_build_help.xml
index 47b216f..47b216f 100644
--- a/scilab/modules/development_tools/help/en_US/tbx_build_help.xml
+++ b/scilab/modules/modules_manager/help/en_US/tbx_build_help.xml
diff --git a/scilab/modules/development_tools/help/en_US/tbx_build_help_loader.xml b/scilab/modules/modules_manager/help/en_US/tbx_build_help_loader.xml
index eb8533a..eb8533a 100644
--- a/scilab/modules/development_tools/help/en_US/tbx_build_help_loader.xml
+++ b/scilab/modules/modules_manager/help/en_US/tbx_build_help_loader.xml
diff --git a/scilab/modules/development_tools/help/en_US/tbx_build_loader.xml b/scilab/modules/modules_manager/help/en_US/tbx_build_loader.xml
index 78f5003..78f5003 100644
--- a/scilab/modules/development_tools/help/en_US/tbx_build_loader.xml
+++ b/scilab/modules/modules_manager/help/en_US/tbx_build_loader.xml
diff --git a/scilab/modules/development_tools/help/en_US/tbx_build_macros.xml b/scilab/modules/modules_manager/help/en_US/tbx_build_macros.xml
index 2e370c8..2e370c8 100644
--- a/scilab/modules/development_tools/help/en_US/tbx_build_macros.xml
+++ b/scilab/modules/modules_manager/help/en_US/tbx_build_macros.xml
diff --git a/scilab/modules/development_tools/help/en_US/tbx_build_src.xml b/scilab/modules/modules_manager/help/en_US/tbx_build_src.xml
index c234fe7..c234fe7 100644
--- a/scilab/modules/development_tools/help/en_US/tbx_build_src.xml
+++ b/scilab/modules/modules_manager/help/en_US/tbx_build_src.xml
diff --git a/scilab/modules/development_tools/help/en_US/tbx_builder_gateway.xml b/scilab/modules/modules_manager/help/en_US/tbx_builder_gateway.xml
index 9a85c81..9a85c81 100644
--- a/scilab/modules/development_tools/help/en_US/tbx_builder_gateway.xml
+++ b/scilab/modules/modules_manager/help/en_US/tbx_builder_gateway.xml
diff --git a/scilab/modules/development_tools/help/en_US/tbx_builder_gateway_lang.xml b/scilab/modules/modules_manager/help/en_US/tbx_builder_gateway_lang.xml
index 511bde9..511bde9 100644
--- a/scilab/modules/development_tools/help/en_US/tbx_builder_gateway_lang.xml
+++ b/scilab/modules/modules_manager/help/en_US/tbx_builder_gateway_lang.xml
diff --git a/scilab/modules/development_tools/help/en_US/tbx_builder_help.xml b/scilab/modules/modules_manager/help/en_US/tbx_builder_help.xml
index a5d7a63..a5d7a63 100644
--- a/scilab/modules/development_tools/help/en_US/tbx_builder_help.xml
+++ b/scilab/modules/modules_manager/help/en_US/tbx_builder_help.xml
diff --git a/scilab/modules/development_tools/help/en_US/tbx_builder_help_lang.xml b/scilab/modules/modules_manager/help/en_US/tbx_builder_help_lang.xml
index e22898f..e22898f 100644
--- a/scilab/modules/development_tools/help/en_US/tbx_builder_help_lang.xml
+++ b/scilab/modules/modules_manager/help/en_US/tbx_builder_help_lang.xml
diff --git a/scilab/modules/development_tools/help/en_US/tbx_builder_macros.xml b/scilab/modules/modules_manager/help/en_US/tbx_builder_macros.xml
index e4bb1d8..e4bb1d8 100644
--- a/scilab/modules/development_tools/help/en_US/tbx_builder_macros.xml
+++ b/scilab/modules/modules_manager/help/en_US/tbx_builder_macros.xml
diff --git a/scilab/modules/development_tools/help/en_US/tbx_builder_src.xml b/scilab/modules/modules_manager/help/en_US/tbx_builder_src.xml
index c407028..c407028 100644
--- a/scilab/modules/development_tools/help/en_US/tbx_builder_src.xml
+++ b/scilab/modules/modules_manager/help/en_US/tbx_builder_src.xml
diff --git a/scilab/modules/development_tools/help/en_US/tbx_builder_src_lang.xml b/scilab/modules/modules_manager/help/en_US/tbx_builder_src_lang.xml
index 5123db2..5123db2 100644
--- a/scilab/modules/development_tools/help/en_US/tbx_builder_src_lang.xml
+++ b/scilab/modules/modules_manager/help/en_US/tbx_builder_src_lang.xml
diff --git a/scilab/modules/modules_manager/help/fr_FR/addchapter.sce b/scilab/modules/modules_manager/help/fr_FR/addchapter.sce
new file mode 100644
index 0000000..53df1ab
--- /dev/null
+++ b/scilab/modules/modules_manager/help/fr_FR/addchapter.sce
@@ -0,0 +1,11 @@
1// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2// Copyright (C) 2010 - DIGITEO - Allan CORNET
3//
4// This file must be used under the terms of the CeCILL.
5// This source file is licensed as described in the file COPYING, which
6// you should have received as part of this distribution. The terms
7// are also available at
8// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
9
10add_help_chapter("Gestionnaire de modules externe", SCI+"/modules/development_tools/help/fr_FR", %T);
11
diff --git a/scilab/modules/modules_manager/help/pt_BR/addchapter.sce b/scilab/modules/modules_manager/help/pt_BR/addchapter.sce
new file mode 100644
index 0000000..926bdec
--- /dev/null
+++ b/scilab/modules/modules_manager/help/pt_BR/addchapter.sce
@@ -0,0 +1,11 @@
1// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2// Copyright (C) 2010 - DIGITEO - Allan CORNET
3//
4// This file must be used under the terms of the CeCILL.
5// This source file is licensed as described in the file COPYING, which
6// you should have received as part of this distribution. The terms
7// are also available at
8// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
9
10add_help_chapter("Modules manager", SCI+"/modules/modules_manager/help/pt_BR", %T);
11
diff --git a/scilab/modules/modules_manager/license.txt b/scilab/modules/modules_manager/license.txt
new file mode 100644
index 0000000..145a50f
--- /dev/null
+++ b/scilab/modules/modules_manager/license.txt
@@ -0,0 +1,10 @@
1Copyright:
2Copyright (c) 2010 - DIGITEO
3
4
5License:
6This module must be used under the terms of the CeCILL.
7This module file is licensed as described in the file COPYING, which
8you should have received as part of this distribution. The terms
9are also available at
10http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
diff --git a/scilab/modules/modules_manager/macros/buildmacros.bat b/scilab/modules/modules_manager/macros/buildmacros.bat
new file mode 100644
index 0000000..01395af
--- /dev/null
+++ b/scilab/modules/modules_manager/macros/buildmacros.bat
@@ -0,0 +1,11 @@
1
2rem Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3rem Copyright (C) 2010 - DIGITEO - Allan CORNET
4rem
5rem This file must be used under the terms of the CeCILL.
6rem This source file is licensed as described in the file COPYING, which
7rem you should have received as part of this distribution. The terms
8rem are also available at
9rem http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
10
11@..\..\..\bin\scilex -nwni -ns -e exec('buildmacros.sce');quit;
diff --git a/scilab/modules/modules_manager/macros/buildmacros.sce b/scilab/modules/modules_manager/macros/buildmacros.sce
new file mode 100644
index 0000000..2cdaa4f
--- /dev/null
+++ b/scilab/modules/modules_manager/macros/buildmacros.sce
@@ -0,0 +1,15 @@
1
2// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3// Copyright (C) 2010 - DIGITEO - Allan CORNET
4//
5// This file must be used under the terms of the CeCILL.
6// This source file is licensed as described in the file COPYING, which
7// you should have received as part of this distribution. The terms
8// are also available at
9// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
10
11if (isdef('genlib') == %f) then
12 exec(SCI+'/modules/functions/scripts/buildmacros/loadgenlib.sce');
13end
14
15genlib('modules_managerlib','SCI/modules/modules_manager/macros',%f,%t);
diff --git a/scilab/modules/modules_manager/macros/cleanmacros.bat b/scilab/modules/modules_manager/macros/cleanmacros.bat
new file mode 100644
index 0000000..9291fc5
--- /dev/null
+++ b/scilab/modules/modules_manager/macros/cleanmacros.bat
@@ -0,0 +1,13 @@
1
2rem Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3rem Copyright (C) 2010 - DIGITEO
4rem
5rem This file must be used under the terms of the CeCILL.
6rem This source file is licensed as described in the file COPYING, which
7rem you should have received as part of this distribution. The terms
8rem are also available at
9rem http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
10
11@del *.bin 2>NUL
12@del lib 2>NUL
13@del names 2>NUL
diff --git a/scilab/modules/modules_manager/macros/tbx_build_cleaner.sci b/scilab/modules/modules_manager/macros/tbx_build_cleaner.sci
new file mode 100644
index 0000000..2cab10a
--- /dev/null
+++ b/scilab/modules/modules_manager/macros/tbx_build_cleaner.sci
@@ -0,0 +1,59 @@
1// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2// Copyright (C) 2009-2010 - DIGITEO - Allan CORNET
3//
4// This file must be used under the terms of the CeCILL.
5// This source file is licensed as described in the file COPYING, which
6// you should have received as part of this distribution. The terms
7// are also available at
8// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
9
10// Generate a cleaner.sce script for the toolbox
11function tbx_build_cleaner(toolbox_name, toolbox_path)
12 oldpath = pwd();
13
14 if(exists("toolbox_path", "local")) then
15 chdir(toolbox_path);
16 end
17
18 mprintf(gettext("Generating cleaner.sce...\n"));
19
20 cleaner = [
21 "// ====================================================================",
22 "// generated by builder.sce",
23 "// Copyright DIGITEO 2010",
24 "// ====================================================================",
25 "try",
26 " getversion(""scilab"");",
27 "catch",
28 " warning(""Scilab 5.3 or more is required."");",
29 " return;",
30 "end;",
31 "// ====================================================================",
32 "root_tlbx = get_absolute_file_path(''cleaner.sce'');",
33 "",
34 "if isfile(root_tlbx + ''/macros/cleanmacros.sce'') then",
35 " exec(root_tlbx+''/macros/cleanmacros.sce'');",
36 "end",
37 "",
38 "if isfile(root_tlbx + ''/src/cleaner_src.sce'') then",
39 " exec(root_tlbx+''/src/cleaner_src.sce'');",
40 "end",
41 "",
42 "if isfile(root_tlbx + ""/sci_gateway/cleaner_gateway.sce"") then",
43 " exec(root_tlbx + ""/sci_gateway/cleaner_gateway.sce"");",
44 " mdelete(root_tlbx + ""/sci_gateway/cleaner_gateway.sce"");",
45 "end",
46 "",
47 "if isfile(root_tlbx + ""/loader.sce"") then",
48 " mdelete(root_tlbx + ""/loader.sce"");",
49 "end",
50 "// ====================================================================",
51 "clear root_tlbx;",
52 "clear mdelete;",
53 "// ===================================================================="
54 ];
55
56 mputl(cleaner, "cleaner.sce");
57
58 chdir(oldpath);
59endfunction
diff --git a/scilab/modules/development_tools/macros/tbx_build_gateway.sci b/scilab/modules/modules_manager/macros/tbx_build_gateway.sci
index 790e936..fd3ac2f 100644
--- a/scilab/modules/development_tools/macros/tbx_build_gateway.sci
+++ b/scilab/modules/modules_manager/macros/tbx_build_gateway.sci
@@ -12,20 +12,20 @@ function tbx_build_gateway(libname, names, files, gateway_path, libs, ldflags, .
12 cflags, fflags, cc, makename, ismex) 12 cflags, fflags, cc, makename, ismex)
13 oldpath = pwd(); 13 oldpath = pwd();
14 14
15 if exists('gateway_path', 'local') then 15 if exists("gateway_path", "local") then
16 chdir(gateway_path); 16 chdir(gateway_path);
17 end 17 end
18 18
19 if ~exists('libs', 'local') then libs = []; end 19 if ~exists("libs", "local") then libs = []; end
20 if ~exists('ldflags', 'local') then ldflags = ""; end 20 if ~exists("ldflags", "local") then ldflags = ""; end
21 if ~exists('cflags', 'local') then cflags = ""; end 21 if ~exists("cflags", "local") then cflags = ""; end
22 if ~exists('fflags', 'local') then fflags = ""; end 22 if ~exists("fflags", "local") then fflags = ""; end
23 if ~exists('cc', 'local') then cc = ""; end 23 if ~exists("cc", "local") then cc = ""; end
24 if ~exists('makename', 'local') then makename = ""; end 24 if ~exists("makename", "local") then makename = ""; end
25 if ~exists('ismex', 'local') then ismex = %f; end 25 if ~exists("ismex", "local") then ismex = %f; end
26 26
27 ilib_build(libname, names, files, libs, makename, ldflags, cflags, .. 27 ilib_build(libname, names, files, libs, makename, ldflags, cflags, ..
28 fflags, ismex, cc); 28 fflags, ismex, cc);
29 29
30 chdir(oldpath); 30 chdir(oldpath);
31endfunction \ No newline at end of file 31endfunction
diff --git a/scilab/modules/modules_manager/macros/tbx_build_gateway_clean.sci b/scilab/modules/modules_manager/macros/tbx_build_gateway_clean.sci
new file mode 100644
index 0000000..0d53993
--- /dev/null
+++ b/scilab/modules/modules_manager/macros/tbx_build_gateway_clean.sci
@@ -0,0 +1,50 @@
1// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2// Copyright (C) 2009-2010 - DIGITEO - Allan CORNET
3//
4// This file must be used under the terms of the CeCILL.
5// This source file is licensed as described in the file COPYING, which
6// you should have received as part of this distribution. The terms
7// are also available at
8// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
9
10// Generate a cleaner_gateway.sce script for the gateway
11function tbx_build_gateway_clean(langs, gateway_path)
12 oldpath = pwd();
13
14 if(exists("gateway_path", "local")) then
15 chdir(gateway_path);
16 end
17
18 mprintf(gettext("Generating cleaner_gateway.sce...\n"));
19 cleaner = [
20 "// This file is released into the public domain",
21 "// Generated by builder_gateway.sce: Please, do not edit this file",
22 "//",
23 "sci_gateway_dir = get_absolute_file_path(""cleaner_gateway.sce"");",
24 "current_dir = pwd();",
25 ""];
26
27 for i = 1:size(langs, "*")
28 cleaner = [cleaner,
29 "chdir(sci_gateway_dir);",
30 "if ( isdir("""+langs(i)+""") ) then",
31 " chdir("""+langs(i)+""");",
32 " exec(""cleaner.sce"");",
33 " mdelete(""cleaner.sce"");",
34 "end",
35 ""
36 ];
37 end
38
39 cleaner = [cleaner,
40 "chdir(current_dir);",
41 "// ====================================================================",
42 "clear sci_gateway_dir;",
43 "clear current_dir;",
44 "// ===================================================================="
45 ];
46
47 mputl(cleaner, "cleaner_gateway.sce");
48
49 chdir(oldpath);
50endfunction
diff --git a/scilab/modules/modules_manager/macros/tbx_build_gateway_loader.sci b/scilab/modules/modules_manager/macros/tbx_build_gateway_loader.sci
new file mode 100644
index 0000000..c6cdfd4
--- /dev/null
+++ b/scilab/modules/modules_manager/macros/tbx_build_gateway_loader.sci
@@ -0,0 +1,61 @@
1// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2// Copyright (C) 2008 - INRIA - Simon LIPP <simon.lipp@scilab.org>
3//
4// This file must be used under the terms of the CeCILL.
5// This source file is licensed as described in the file COPYING, which
6// you should have received as part of this distribution. The terms
7// are also available at
8// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
9
10// Generate a loader_gateway.sce script for the gateway
11function tbx_build_gateway_loader(langs, gateway_path)
12 oldpath = pwd();
13
14 if(exists("gateway_path", "local")) then
15 chdir(gateway_path);
16 end
17
18 mprintf(gettext("Generating loader_gateway.sce...\n"));
19 loader = [
20 "// This file is released into the public domain",
21 "// Generated by builder_gateway.sce: Please, do not edit this file",
22 "//",
23 "",
24 "try"
25 " v = getversion(""scilab"");",
26 "catch",
27 " v = [ 5 0 ]; // or older ",
28 "end",
29 "if (v(1) <= 5) & (v(2) < 3) then",
30 " // new API in scilab 5.3",
31 " error(gettext(""Scilab 5.3 or more is required.""));",
32 "end",
33 "",
34 "sci_gateway_dir = get_absolute_file_path(""loader_gateway.sce"");",
35 "current_dir = pwd();",
36 ""];
37
38 for i = 1:size(langs, "*")
39 loader = [loader,
40 "chdir(sci_gateway_dir);",
41 "if ( isdir("""+langs(i)+""") ) then",
42 " chdir("""+langs(i)+""");",
43 " exec(""loader.sce"");",
44 "end",
45 ""
46 ];
47 end
48
49 loader = [loader,
50 "chdir(current_dir);",
51 "// ====================================================================",
52 "clear sci_gateway_dir;",
53 "clear current_dir;",
54 "clear v;",
55 "// ===================================================================="
56 ];
57
58 mputl(loader, "loader_gateway.sce");
59
60 chdir(oldpath);
61endfunction
diff --git a/scilab/modules/development_tools/macros/tbx_build_help.sci b/scilab/modules/modules_manager/macros/tbx_build_help.sci
index 1043c8d..5991d6e 100644
--- a/scilab/modules/development_tools/macros/tbx_build_help.sci
+++ b/scilab/modules/modules_manager/macros/tbx_build_help.sci
@@ -10,11 +10,11 @@
10 10
11// Simple wrapper around xmltojar 11// Simple wrapper around xmltojar
12function tbx_build_help(toolbox_name, help_lang_path) 12function tbx_build_help(toolbox_name, help_lang_path)
13 if(~exists(help_lang_path, 'local')) 13 if(~exists(help_lang_path, "local"))
14 help_lang_path = pwd(); 14 help_lang_path = pwd();
15 end 15 end
16 16
17 if or(getscilabmode() == ['STD' 'NW']) then 17 if or(getscilabmode() == ["STD" "NW"]) then
18 xmltojar(help_lang_path, toolbox_name); 18 xmltojar(help_lang_path, toolbox_name);
19 else 19 else
20 warning(msprintf(gettext("%s: documentation cannot be built in this scilab mode: %s.\n"), .. 20 warning(msprintf(gettext("%s: documentation cannot be built in this scilab mode: %s.\n"), ..
diff --git a/scilab/modules/modules_manager/macros/tbx_build_help_loader.sci b/scilab/modules/modules_manager/macros/tbx_build_help_loader.sci
new file mode 100644
index 0000000..752dc94
--- /dev/null
+++ b/scilab/modules/modules_manager/macros/tbx_build_help_loader.sci
@@ -0,0 +1,31 @@
1// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2// Copyright (C) 2008 - INRIA - Simon LIPP <simon.lipp@scilab.org>
3//
4// This file must be used under the terms of the CeCILL.
5// This source file is licensed as described in the file COPYING, which
6// you should have received as part of this distribution. The terms
7// are also available at
8// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
9
10// Generate a loader file for the help
11function tbx_build_help_loader(toolbox_title, help_lang_path)
12 oldpath = pwd();
13
14 if(exists("help_lang_path", "local")) then
15 chdir(help_lang_path);
16 end
17
18 loader = [
19 "// ====================================================================",
20 "// This file is released into the public domain",
21 "// Generated by tbx_build_help_loader: Please, do not edit this file",
22 "// ====================================================================",
23 "path = get_absolute_file_path(""addchapter.sce"");",
24 "add_help_chapter("""+toolbox_title+""",path,%F);",
25 "clear path add_help_chapter;",
26 "// ===================================================================="
27 ];
28
29 mputl(loader, "addchapter.sce");
30 chdir(oldpath);
31endfunction
diff --git a/scilab/modules/development_tools/macros/tbx_build_loader.sci b/scilab/modules/modules_manager/macros/tbx_build_loader.sci
index b0904b1..446da2c 100644
--- a/scilab/modules/development_tools/macros/tbx_build_loader.sci
+++ b/scilab/modules/modules_manager/macros/tbx_build_loader.sci
@@ -24,21 +24,21 @@ function tbx_build_loader(toolbox_name, toolbox_path)
24 "// Generated by builder.sce: Please, do not edit this file", 24 "// Generated by builder.sce: Please, do not edit this file",
25 "//", 25 "//",
26 "try", 26 "try",
27 " v = getversion(''scilab'');", 27 " v = getversion(""scilab"");",
28 "catch", 28 "catch",
29 " warning(''Scilab 5.0 or more is required.'');", 29 " warning(""Scilab 5.0 or more is required."");",
30 " return;", 30 " return;",
31 "end;", 31 "end;",
32 "// ====================================================================", 32 "// ====================================================================",
33 "root_tlbx = get_absolute_file_path(''loader.sce'');", 33 "root_tlbx = get_absolute_file_path(""loader.sce"");",
34 "exec(root_tlbx + ''etc" + filesep() + "'' + ''" + toolbox_name + ".start'');", 34 "exec(root_tlbx + ""etc" + filesep() + """ + """ + toolbox_name + ".start"");",
35 "// ====================================================================", 35 "// ====================================================================",
36 "clear root_tlbx;", 36 "clear root_tlbx;",
37 "clear v;", 37 "clear v;",
38 "// ====================================================================" 38 "// ===================================================================="
39 ]; 39 ];
40 40
41 mputl(loader,"loader.sce"); 41 mputl(loader ,"loader.sce");
42 chdir(oldpath); 42 chdir(oldpath);
43 43
44endfunction 44endfunction
diff --git a/scilab/modules/development_tools/macros/tbx_build_macros.sci b/scilab/modules/modules_manager/macros/tbx_build_macros.sci
index 74c242d..81875cd 100644
--- a/scilab/modules/development_tools/macros/tbx_build_macros.sci
+++ b/scilab/modules/modules_manager/macros/tbx_build_macros.sci
@@ -9,5 +9,5 @@
9 9
10// Simple wrapper around genlib 10// Simple wrapper around genlib
11function tbx_build_macros(toolbox_name, macros_path) 11function tbx_build_macros(toolbox_name, macros_path)
12 genlib(toolbox_name + 'lib', macros_path, %f, %t); 12 genlib(toolbox_name + "lib", macros_path, %f, %t);
13endfunction 13endfunction
diff --git a/scilab/modules/modules_manager/macros/tbx_build_src.sci b/scilab/modules/modules_manager/macros/tbx_build_src.sci
new file mode 100644
index 0000000..6f3a1b9
--- /dev/null
+++ b/scilab/modules/modules_manager/macros/tbx_build_src.sci
@@ -0,0 +1,32 @@
1// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
2// Copyright (C) 2008 - INRIA - Simon LIPP <simon.lipp@scilab.org>
3//
4// This file must be used under the terms of the CeCILL.
5// This source file is licensed as described in the file COPYING, which
6// you should have received as part of this distribution. The terms
7// are also available at
8// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
9
10// Simple wrapper around ilib_for_link
11function tbx_build_src(names, files, flag, src_path, libs, ldflags, cflags, ..
12 fflags, cc, libname, loadername, makename)
13 oldpath = pwd();
14
15 if exists("src_path", "local") then
16 chdir(src_path);
17 end
18
19 if ~exists("libs", "local") then libs = []; end
20 if ~exists("ldflags", "local") then ldflags = ""; end
21 if ~exists("cflags", "local") then cflags = ""; end
22 if ~exists("fflags", "local") then fflags = ""; end
23 if ~exists("cc", "local") then cc = ""; end
24 if ~exists("libname", "local") then libname = ""; end
25 if ~exists("loadername", "local") then loadername = "loader.sce"; end
26 if ~exists("makename", "local") then makename = ""; end
27
28 ilib_for_link(names, files, libs, flag, makename, loadername, ..
29 libname, ldflags, cflags, fflags, cc);
30
31 chdir(oldpath);
32endfunction
diff --git a/scilab/modules/development_tools/macros/tbx_builder_gateway.sci b/scilab/modules/modules_manager/macros/tbx_builder_gateway.sci
index 86fbdcf..082ad41 100644
--- a/scilab/modules/development_tools/macros/tbx_builder_gateway.sci
+++ b/scilab/modules/modules_manager/macros/tbx_builder_gateway.sci
@@ -10,9 +10,9 @@
10// Run the toolbox_path+"/sci_gateway/builder_gateway.sce" script if it exists 10// Run the toolbox_path+"/sci_gateway/builder_gateway.sce" script if it exists
11// See devtools_run_builder 11// See devtools_run_builder
12function tbx_builder_gateway(toolbox_path) 12function tbx_builder_gateway(toolbox_path)
13 if ~haveacompiler() then 13 if ~haveacompiler() then
14 error(gettext('This toolbox requires a compiler to build.')); 14 error(gettext('This toolbox requires a compiler to build.'));
15 end 15 end
16 mprintf(gettext('Building gateway...\n')); 16 mprintf(gettext('Building gateway...\n'));
17 devtools_run_builder(toolbox_path, 'sci_gateway', 'builder_gateway.sce'); 17 devtools_run_builder(toolbox_path, 'sci_gateway', 'builder_gateway.sce');
18endfunction 18endfunction
diff --git a/scilab/modules/development_tools/macros/tbx_builder_gateway_lang.sci b/scilab/modules/modules_manager/macros/tbx_builder_gateway_lang.sci
index 129def3..c03ca57 100644
--- a/scilab/modules/development_tools/macros/tbx_builder_gateway_lang.sci
+++ b/scilab/modules/modules_manager/macros/tbx_builder_gateway_lang.sci
@@ -10,16 +10,16 @@
10// Run the gateway_path_path+"/sci_gateway/"+lang+"builder_gateway_"+lang+".sce" script if it exists 10// Run the gateway_path_path+"/sci_gateway/"+lang+"builder_gateway_"+lang+".sce" script if it exists
11// See devtools_run_builder 11// See devtools_run_builder
12function tbx_builder_gateway_lang(lang, gateway_path) 12function tbx_builder_gateway_lang(lang, gateway_path)
13 oldpath = pwd(); 13 oldpath = pwd();
14 14
15 if(exists('gateway_path', 'local')) then 15 if(exists("gateway_path", "local")) then
16 chdir(gateway_path); 16 chdir(gateway_path);
17 end 17 end
18 18
19 if(isdir(lang)) then 19 if(isdir(lang)) then
20 chdir(lang); 20 chdir(lang);
21 exec('builder_gateway_' + lang + '.sce', -1); 21 exec("builder_gateway_" + lang + ".sce", -1);
22 end 22 end
23 23
24 chdir(oldpath); 24 chdir(oldpath);
25endfunction 25endfunction
diff --git a/scilab/modules/development_tools/macros/tbx_builder_help.sci b/scilab/modules/modules_manager/macros/tbx_builder_help.sci
index 3b43051..b6b13ac 100644
--- a/scilab/modules/development_tools/macros/tbx_builder_help.sci
+++ b/scilab/modules/modules_manager/macros/tbx_builder_help.sci
@@ -10,6 +10,6 @@
10// Run the toolbox_path+"/help/builder_help.sce" script if it exists 10// Run the toolbox_path+"/help/builder_help.sce" script if it exists
11// See devtools_run_builder 11// See devtools_run_builder
12function tbx_builder_help(toolbox_path) 12function tbx_builder_help(toolbox_path)
13 mprintf(gettext('Building help...\n')); 13 mprintf(gettext("Building help...\n"));
14 devtools_run_builder(toolbox_path, 'help', 'builder_help.sce'); 14 devtools_run_builder(toolbox_path, "help", "builder_help.sce");
15endfunction 15endfunction
diff --git a/scilab/modules/development_tools/macros/tbx_builder_help_lang.sci b/scilab/modules/modules_manager/macros/tbx_builder_help_lang.sci
index 11abffd..2dc6b3f 100644
--- a/scilab/modules/development_tools/macros/tbx_builder_help_lang.sci
+++ b/scilab/modules/modules_manager/macros/tbx_builder_help_lang.sci
@@ -10,16 +10,16 @@
10// Run the help_path+"/"+lang+"/build_help.sce" script if it exists 10// Run the help_path+"/"+lang+"/build_help.sce" script if it exists
11// See devtools_run_builder 11// See devtools_run_builder
12function tbx_builder_help_lang(lang, help_path) 12function tbx_builder_help_lang(lang, help_path)
13 oldpath = pwd(); 13 oldpath = pwd();
14 14
15 if(exists('help_path', 'local')) then 15 if(exists("help_path", "local")) then
16 chdir(help_path); 16 chdir(help_path);
17 end 17 end
18 18
19 if(isdir(lang)) then 19 if(isdir(lang)) then
20 chdir(lang); 20 chdir(lang);
21 exec('build_help.sce', -1); 21 exec("build_help.sce", -1);
22 end 22 end
23 23
24 chdir(oldpath); 24 chdir(oldpath);
25endfunction 25endfunction
diff --git a/scilab/modules/development_tools/macros/tbx_builder_macros.sci b/scilab/modules/modules_manager/macros/tbx_builder_macros.sci
index 3fa4126..bdb32e4 100644
--- a/scilab/modules/development_tools/macros/tbx_builder_macros.sci
+++ b/scilab/modules/modules_manager/macros/tbx_builder_macros.sci
@@ -10,6 +10,6 @@
10// Run the toolbox_path+"/macros/buildmacros.sce" script if it exists 10// Run the toolbox_path+"/macros/buildmacros.sce" script if it exists
11// See devtools_run_builder 11// See devtools_run_builder
12function tbx_builder_macros(toolbox_path) 12function tbx_builder_macros(toolbox_path)
13 mprintf(gettext('Building macros...\n')); 13 mprintf(gettext("Building macros...\n"));
14 devtools_run_builder(toolbox_path, 'macros', 'buildmacros.sce'); 14 devtools_run_builder(toolbox_path, "macros", "buildmacros.sce");
15endfunction 15endfunction
diff --git a/scilab/modules/development_tools/macros/tbx_builder_src.sci b/scilab/modules/modules_manager/macros/tbx_builder_src.sci
index 126a4a1..65eb440 100644
--- a/scilab/modules/development_tools/macros/tbx_builder_src.sci
+++ b/scilab/modules/modules_manager/macros/tbx_builder_src.sci
@@ -10,9 +10,9 @@
10// Run the toolbox_path+"/src/builder_src.sce" script if it exists 10// Run the toolbox_path+"/src/builder_src.sce" script if it exists
11// See devtools_run_builder 11// See devtools_run_builder
12function tbx_builder_src(toolbox_path) 12function tbx_builder_src(toolbox_path)
13 if ~haveacompiler() then 13 if ~haveacompiler() then
14 error(gettext('This toolbox requires a compiler to build.')); 14 error(gettext("This toolbox requires a compiler to build."));
15 end 15 end
16 mprintf(gettext('Building sources...\n')); 16 mprintf(gettext("Building sources...\n"));
17 devtools_run_builder(toolbox_path, 'src', 'builder_src.sce'); 17 devtools_run_builder(toolbox_path, "src", "builder_src.sce");
18endfunction 18endfunction
diff --git a/scilab/modules/development_tools/macros/tbx_builder_src_lang.sci b/scilab/modules/modules_manager/macros/tbx_builder_src_lang.sci
index 53ac9d6..53ac9d6 100644
--- a/scilab/modules/development_tools/macros/tbx_builder_src_lang.sci
+++ b/scilab/modules/modules_manager/macros/tbx_builder_src_lang.sci
diff --git a/scilab/modules/modules_manager/modules_manager.iss b/scilab/modules/modules_manager/modules_manager.iss
new file mode 100644
index 0000000..3e0d9b7
--- /dev/null
+++ b/scilab/modules/modules_manager/modules_manager.iss
@@ -0,0 +1,44 @@
1;
2; Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3; Copyright (C) DIGITEO - 2010 - Allan CORNET
4;
5; This file must be used under the terms of the CeCILL.
6; This source file is licensed as described in the file COPYING, which
7; you should have received as part of this distribution. The terms
8; are also available at
9; http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
10;
11;--------------------------------------------------------------------------------------------------------------
12; Inno Setup Script (5.3 and more) for Scilab (UNICODE version required)
13;
14;--------------------------------------------------------------------------------------------------------------
15; modules_manager module
16;--------------------------------------------------------------------------------------------------------------
17;
18#define MODULES_MANAGER "modules_manager"
19;
20Source: modules\{#MODULES_MANAGER}\VERSION.xml; DestDir: {app}\modules\{#MODULES_MANAGER}; Components: {#COMPN_MODULES_MANAGER}
21Source: modules\{#MODULES_MANAGER}\readme.txt; DestDir: {app}\modules\{#MODULES_MANAGER}; Components: {#COMPN_MODULES_MANAGER}
22Source: modules\{#MODULES_MANAGER}\license.txt; DestDir: {app}\modules\{#MODULES_MANAGER}; Components: {#COMPN_MODULES_MANAGER}
23Source: modules\{#MODULES_MANAGER}\changelog.txt; DestDir: {app}\modules\{#MODULES_MANAGER}; Components: {#COMPN_MODULES_MANAGER}
24;
25Source: modules\{#MODULES_MANAGER}\etc\{#MODULES_MANAGER}.quit; DestDir: {app}\modules\{#MODULES_MANAGER}\etc; Components: {#COMPN_MODULES_MANAGER}
26Source: modules\{#MODULES_MANAGER}\etc\{#MODULES_MANAGER}.start; DestDir: {app}\modules\{#MODULES_MANAGER}\etc; Components: {#COMPN_MODULES_MANAGER}
27;
28;Source: modules\{#MODULES_MANAGER}\includes\*.h; DestDir: {app}\modules\{#MODULES_MANAGER}\includes; Flags: recursesubdirs; Components: {#COMPN_MODULES_MANAGER}
29;
30Source: modules\{#MODULES_MANAGER}\macros\lib; DestDir: {app}\modules\{#MODULES_MANAGER}\macros; Components: {#COMPN_MODULES_MANAGER}
31Source: modules\{#MODULES_MANAGER}\macros\names; DestDir: {app}\modules\{#MODULES_MANAGER}\macros; Components: {#COMPN_MODULES_MANAGER}
32Source: modules\{#MODULES_MANAGER}\macros\*.bin; DestDir: {app}\modules\{#MODULES_MANAGER}\macros; Components: {#COMPN_MODULES_MANAGER}
33Source: modules\{#MODULES_MANAGER}\macros\*.sci; DestDir: {app}\modules\{#MODULES_MANAGER}\macros; Components: {#COMPN_MODULES_MANAGER}
34Source: modules\{#MODULES_MANAGER}\macros\buildmacros.sce; DestDir: {app}\modules\{#MODULES_MANAGER}\macros; Components: {#COMPN_MODULES_MANAGER}
35Source: modules\{#MODULES_MANAGER}\macros\buildmacros.bat; DestDir: {app}\modules\{#MODULES_MANAGER}\macros; Components: {#COMPN_MODULES_MANAGER}
36Source: modules\{#MODULES_MANAGER}\macros\cleanmacros.bat; DestDir: {app}\modules\{#MODULES_MANAGER}\macros; Components: {#COMPN_MODULES_MANAGER}
37;
38;Source: modules\{#MODULES_MANAGER}\demos\*.*; DestDir: {app}\modules\{#MODULES_MANAGER}\demos; Flags: recursesubdirs; Components: {#COMPN_MODULES_MANAGER}
39;
40;Source: modules\{#MODULES_MANAGER}\examples\*.*; DestDir: {app}\modules\{#MODULES_MANAGER}\examples; Flags: recursesubdirs; Components: {#COMPN_MODULES_MANAGER}
41;
42Source: modules\{#MODULES_MANAGER}\tests\*.*; DestDir: {app}\modules\{#MODULES_MANAGER}\tests; Flags: recursesubdirs; Components: {#COMPN_MODULES_MANAGER} and {#COMPN_TESTS}
43;
44;--------------------------------------------------------------------------------------------------------------
diff --git a/scilab/modules/modules_manager/readme.txt b/scilab/modules/modules_manager/readme.txt
new file mode 100644
index 0000000..30e27ff
--- /dev/null
+++ b/scilab/modules/modules_manager/readme.txt
@@ -0,0 +1 @@
readme.txt about modules_manager module \ No newline at end of file
diff --git a/scilab/modules/development_tools/tests/nonreg_tests/bug_6831.tst b/scilab/modules/modules_manager/tests/nonreg_test/bug_6831.tst
index 019bfc7..019bfc7 100644
--- a/scilab/modules/development_tools/tests/nonreg_tests/bug_6831.tst
+++ b/scilab/modules/modules_manager/tests/nonreg_test/bug_6831.tst
diff --git a/scilab/modules/development_tools/tests/nonreg_tests/bug_6971.tst b/scilab/modules/modules_manager/tests/nonreg_test/bug_6971.tst
index 866bc2d..866bc2d 100644
--- a/scilab/modules/development_tools/tests/nonreg_tests/bug_6971.tst
+++ b/scilab/modules/modules_manager/tests/nonreg_test/bug_6971.tst
diff --git a/scilab/modules/development_tools/tests/nonreg_tests/bug_7014.tst b/scilab/modules/modules_manager/tests/nonreg_test/bug_7014.tst
index c019dde..c019dde 100644
--- a/scilab/modules/development_tools/tests/nonreg_tests/bug_7014.tst
+++ b/scilab/modules/modules_manager/tests/nonreg_test/bug_7014.tst
diff --git a/scilab/modules/modules_manager/version.xml b/scilab/modules/modules_manager/version.xml
new file mode 100644
index 0000000..5060e14
--- /dev/null
+++ b/scilab/modules/modules_manager/version.xml
@@ -0,0 +1,11 @@
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<!--
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) 2010 - DIGITEO
5 *
6 * This file is distributed under the same license as the Scilab package.
7 -->
8<!DOCTYPE MODULE_VERSION SYSTEM "../core/xml/version.dtd">
9<MODULE_VERSION name="modules_manager">
10<VERSION major="1" minor="0" maintenance="0" revision="0" string="unstable-git" />
11</MODULE_VERSION>