ANN toolbox

ANN toolbox Git Source Tree

Root/builder.sce

1// =============================================================================
2// Copyright INRIA 2008
3// Copyright DIGITEO 2010 - 2011
4// Allan CORNET
5// =============================================================================
6mode(-1);
7lines(0);
8
9function builder_main()
10
11TOOLBOX_NAME = "ANN_toolbox";
12TOOLBOX_TITLE = "ANN toolbox";
13toolbox_dir = get_absolute_file_path("builder.sce");
14
15// Check Scilab's version
16// =============================================================================
17
18try
19 v = getversion("scilab");
20catch
21 error(gettext("Scilab 5.4 or more is required."));
22end
23
24if v(2) < 4 then
25 // new API in scilab 5.4
26 error(gettext('Scilab 5.4 or more is required.'));
27end
28clear v;
29
30// Check modules_manager module availability
31// =============================================================================
32if ~isdef('tbx_build_loader') then
33 error(msprintf(gettext('%s module not installed."), 'modules_manager'));
34end
35
36// Action
37// =============================================================================
38
39tbx_builder_macros(toolbox_dir);
40tbx_builder_help(toolbox_dir);
41tbx_build_loader(TOOLBOX_NAME, toolbox_dir);
42tbx_build_cleaner(TOOLBOX_NAME, toolbox_dir);
43
44endfunction
45// =============================================================================
46builder_main()
47clear builder_main;
48// =============================================================================

Archive Download this file

Branches