CPGE

CPGE Svn Source Tree

Root/builder.sce

Source at commit HEAD created 6 months 2 days ago.
By carnis, Update for scilab 6.0.1 - Version 1.7.0
1// Copyright (C) 2008 - INRIA
2// Copyright (C) 2009-2011 - DIGITEO
3
4// This file is released under the 3-clause BSD license. See COPYING-BSD.
5
6mode(-1);
7lines(0);
8
9function main_builder()
10
11TOOLBOX_NAME = "CPGE";
12TOOLBOX_TITLE = "CPGE - Xcos toolbox";
13toolbox_dir = get_absolute_file_path("builder.sce");
14
15// Check Scilab's version
16// =============================================================================
17
18// check minimal version (xcosPal required)
19if ~isdef("xcosPal") then
20// and xcos features required
21error(gettext('Scilab 5.4 or more is required.'));
22end
23
24try
25v = getversion("scilab");
26catch
27error(gettext("Scilab 5.4 or more is required."));
28end
29
30if v(1) < 6 & v(2) < 0 then
31// new API in scilab 5.3
32error(gettext("Scilab 5.4 or more is required."));
33end
34
35// Check modules_manager module availability
36// =============================================================================
37
38if ~isdef("tbx_build_loader") then
39error(msprintf(gettext("%s module not installed."), "modules_manager"));
40end
41
42// Action
43// =============================================================================
44
45tbx_builder_macros(toolbox_dir);
46//tbx_builder_src(toolbox_dir);
47//tbx_builder_gateway(toolbox_dir);
48tbx_builder_help(toolbox_dir);
49tbx_build_loader(toolbox_dir);
50tbx_build_cleaner(toolbox_dir);
51endfunction
52
53if with_module('xcos') then
54main_builder();
55clear main_builder; // remove main_builder on stack
56end

Archive Download this file

Revision: HEAD