Conint

Conint Commit Details

Date:2012-07-16 21:51:55 (7 years 2 months ago)
Author:Michael Baudin
Commit:3
Parents: 2
Message: * Fixed case in the etc startup script to match the name on Atoms. See http://bugzilla.scilab.org/show_bug.cgi?id=11208
Changes:
R/etc/conint.start → /etc/Conint.start
R/etc/conint.quit → /etc/Conint.quit
M/builder.sce
M/changelog.txt

File differences

changelog.txt
11
22
3
4
5
6
7
38
49
510
changelog of the Conint Toolbox
conint (not released yet)
* Fixed case in the etc startup script to match the
name on Atoms.
See http://bugzilla.scilab.org/show_bug.cgi?id=11208
conint (0.1)
* Initial import.
etc/conint.start
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2008 - INRIA - Michael Baudin
// Copyright (C) 2008 - INRIA - Allan CORNET
// Copyright (C) 2010 - DIGITEO - Michael Baudin
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution. The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
function conintlib = loadconintlib ()
TOOLBOX_NAME = "conint"
TOOLBOX_TITLE = "Conint"
mprintf("Start %s\n",TOOLBOX_TITLE);
etc_tlbx = get_absolute_file_path(TOOLBOX_NAME+".start");
etc_tlbx = getshortpathname(etc_tlbx);
root_tlbx = strncpy( etc_tlbx, length(etc_tlbx)-length("\etc\") );
//Load functions library
// =============================================================================
if ( %t ) then
mprintf("\tLoad macros\n");
pathmacros = pathconvert( root_tlbx ) + "macros" + filesep();
conintlib = lib(pathmacros);
end
// load gateways
// =============================================================================
if ( %f ) then
mprintf("\tLoad gateways\n");
ilib_verbose(0);
exec( pathconvert(root_tlbx+"/sci_gateway/loader_gateway.sce",%f));
end
// Load and add help chapter
// =============================================================================
if ( %t ) then
if or(getscilabmode() == ["NW";"STD"]) then
mprintf("\tLoad help\n");
path_addchapter = pathconvert(root_tlbx+"/jar");
if ( isdir(path_addchapter) <> [] ) then
add_help_chapter(TOOLBOX_TITLE, path_addchapter, %F);
end
end
end
// add demos
// =============================================================================
if ( %F ) then
if or(getscilabmode() == ["NW";"STD"]) then
mprintf("\tLoad demos\n");
demoscript = TOOLBOX_NAME + ".dem.gateway.sce"
pathdemos = pathconvert(fullfile(root_tlbx,"demos",demoscript),%f,%t);
add_demo(TOOLBOX_TITLE,pathdemos);
end
end
// ====================================================================
// A Welcome message.
//mprintf("\tType ""help intprb_overview"" for quick start.\n");
//mprintf("\tType ""demo_gui()"" and search for "+TOOLBOX_TITLE+" for Demonstrations.\n");
endfunction
if ( isdef("conintlib") ) then
warning("Library is already loaded (""ulink(); clear conintlib;"" to unload.)");
return;
end
conintlib = loadconintlib ();
clear loadconintlib;
etc/conint.quit
1
etc/Conint.start
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2008 - INRIA - Michael Baudin
// Copyright (C) 2008 - INRIA - Allan CORNET
// Copyright (C) 2010 - DIGITEO - Michael Baudin
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// you should have received as part of this distribution. The terms
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
function conintlib = loadconintlib ()
TOOLBOX_NAME = "conint"
TOOLBOX_TITLE = "Conint"
mprintf("Start %s\n",TOOLBOX_TITLE);
etc_tlbx = get_absolute_file_path(TOOLBOX_NAME+".start");
etc_tlbx = getshortpathname(etc_tlbx);
root_tlbx = strncpy( etc_tlbx, length(etc_tlbx)-length("\etc\") );
//Load functions library
// =============================================================================
if ( %t ) then
mprintf("\tLoad macros\n");
pathmacros = pathconvert( root_tlbx ) + "macros" + filesep();
conintlib = lib(pathmacros);
end
// load gateways
// =============================================================================
if ( %f ) then
mprintf("\tLoad gateways\n");
ilib_verbose(0);
exec( pathconvert(root_tlbx+"/sci_gateway/loader_gateway.sce",%f));
end
// Load and add help chapter
// =============================================================================
if ( %t ) then
if or(getscilabmode() == ["NW";"STD"]) then
mprintf("\tLoad help\n");
path_addchapter = pathconvert(root_tlbx+"/jar");
if ( isdir(path_addchapter) <> [] ) then
add_help_chapter(TOOLBOX_TITLE, path_addchapter, %F);
end
end
end
// add demos
// =============================================================================
if ( %F ) then
if or(getscilabmode() == ["NW";"STD"]) then
mprintf("\tLoad demos\n");
demoscript = TOOLBOX_NAME + ".dem.gateway.sce"
pathdemos = pathconvert(fullfile(root_tlbx,"demos",demoscript),%f,%t);
add_demo(TOOLBOX_TITLE,pathdemos);
end
end
// ====================================================================
// A Welcome message.
//mprintf("\tType ""help intprb_overview"" for quick start.\n");
//mprintf("\tType ""demo_gui()"" and search for "+TOOLBOX_TITLE+" for Demonstrations.\n");
endfunction
if ( isdef("conintlib") ) then
warning("Library is already loaded (""ulink(); clear conintlib;"" to unload.)");
return;
end
conintlib = loadconintlib ();
clear loadconintlib;
etc/Conint.quit
1
builder.sce
1
1
22
33
44
......
66
77
88
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
3027
31
32
33
34
35
36
28
29
30
31
32
33
3734
38
39
35
36
37
// Copyright (C) 2011 - DIGITEO - Michael Baudin
// Copyright (C) 2012 - Michael Baudin
//
// This file must be used under the terms of the CeCILL.
// This source file is licensed as described in the file COPYING, which
// are also available at
// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
//
// builder.sce --
// Builder for the Accsum Scilab Toolbox
//
mode(-1);
lines(0);
//setenv("DEBUG_SCILAB_DYNAMIC_LINK","YES")
try
getversion("scilab");
catch
error(gettext("Scilab 5.0 or more is required."));
end;
// ====================================================================
if ~with_module("development_tools") then
error(msprintf(gettext("%s module not installed."),"development_tools"));
end
// ====================================================================
TOOLBOX_NAME = "conint";
TOOLBOX_TITLE = "Conint";
// ====================================================================
toolbox_dir = get_absolute_file_path("builder.sce");
function conint_buildToolbox()
mode(-1);
lines(0);
//setenv("DEBUG_SCILAB_DYNAMIC_LINK","YES")
try
getversion("scilab");
catch
error(gettext("Scilab 5.0 or more is required."));
end;
// ====================================================================
if ~with_module("development_tools") then
error(msprintf(gettext("%s module not installed."),"development_tools"));
end
// ====================================================================
TOOLBOX_NAME = "Conint";
TOOLBOX_TITLE = "Conint";
// ====================================================================
toolbox_dir = get_absolute_file_path("builder.sce");
//tbx_builder_src(toolbox_dir);
//tbx_builder_gateway(toolbox_dir);
tbx_builder_macros(toolbox_dir);
tbx_builder_help(toolbox_dir);
tbx_build_loader(TOOLBOX_NAME, toolbox_dir);
tbx_build_cleaner(TOOLBOX_NAME, toolbox_dir);
// tbx_builder_src(toolbox_dir);
// tbx_builder_gateway(toolbox_dir);
tbx_builder_macros(toolbox_dir);
tbx_builder_help(toolbox_dir);
tbx_build_loader(TOOLBOX_NAME, toolbox_dir);
tbx_build_cleaner(TOOLBOX_NAME, toolbox_dir);
clear toolbox_dir TOOLBOX_NAME TOOLBOX_TITLE;
// ====================================================================
endfunction
conint_buildToolbox();
clear conint_buildToolbox

Archive Download the corresponding diff file

Revision: 3