Aerospace Blockset for Xcos  

Aerospace Blockset for Xcos Git Source Tree

Root/builder.sce

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
11 TOOLBOX_NAME = "aerospace_blockset";
12 TOOLBOX_TITLE = "Aerospace blockset";
13 toolbox_dir = get_absolute_file_path("builder.sce");
14
15// Check Scilab's version
16// =============================================================================
17
18 // check minimal version (xcosPal required)
19 if ~isdef('xcosPal') then
20 // and xcos features required
21 error(gettext('Scilab 5.3.2 or more is required.'));
22 end
23
24// Check modules_manager module availability
25// =============================================================================
26
27 if ~isdef('tbx_build_loader') then
28 error(msprintf(gettext("%s module not installed."), 'modules_manager'));
29 end
30
31
32 if ~isdir(toolbox_dir+filesep()+"images"+filesep()+"h5")
33 [status, msg] = mkdir(toolbox_dir+filesep()+"images"+filesep()+"h5");
34 if and(status <> [1 2])
35 error(msg);
36 end
37 end
38
39// Action
40// =============================================================================
41
42 tbx_builder_macros(toolbox_dir);
43// tbx_builder_src(toolbox_dir);
44// tbx_builder_gateway(toolbox_dir);
45 tbx_builder_help(toolbox_dir);
46 tbx_build_loader(TOOLBOX_NAME, toolbox_dir);
47 tbx_build_cleaner(TOOLBOX_NAME, toolbox_dir);
48endfunction
49
50if with_module('xcos') then
51 main_builder();
52 clear main_builder; // remove main_builder on stack
53end

Archive Download this file

Branches