SciMax

SciMax Git Source Tree

Root/builder.sce

1mode(-1);
2lines(0);
3try
4 getversion('scilab');
5catch
6 error(gettext('Scilab 5.0 or more is required.'));
7end;
8// ====================================================================
9
10toolbox_dir = get_absolute_file_path('builder.sce');
11
12// By default, %otb_path is set to '../Overload_Toolbox/'
13if ~exists('%otb_path') then
14 %otb_path='../Overload_Toolbox'
15end
16
17%otb_loader=%otb_path+'/'+'loader.sce';
18if fileinfo(toolbox_dir+%otb_loader)~=[] then
19 path=toolbox_dir+%otb_loader;
20elseif fileinfo(%otb_loader)~=[] then
21 path=%otb_loader;
22else
23 printf("I need to know where the Overload Toolbox is installed.\nPlease s"+..
24"et the variable %%otb_path=''path of Overload Toolbox''\n(maybe ''../Overload_Toolbox'') and"+...
25 " re-exec builder.sce.\n");
26 abort;
27end
28
29fd=mopen('etc/Overload_TB_path.sce','w');
30mputl('Overload_TB_path='''+path+'''',fd);
31mclose(fd);
32
33
34if exists('%maxima_exe_path') then
35 fd=mopen('etc/MAXIMA_EXE_PATH.sce','w');
36 mputl('%maxima_exe_path='''+%maxima_exe_path+'''',fd);
37 mclose(fd);
38 setenv('MAXIMA_EXE_PATH',%maxima_exe_path)
39else
40 printf("I need to know full path of maxima execution.\nPleases "+..
41"set the variable MAXIMA_EXE_PATH=''path of maxima execution ''\n(maybe ''C:/Maima/bin/maxima.bat'') and"+...
42 " re-exec builder.sce.\n");
43 abort;
44end
45
46// ====================================================================
47
48// ====================================================================
49if ~with_module('development_tools') then
50 error(msprintf(gettext('%s module not installed.'),'development_tools'));
51end
52// ====================================================================
53TOOLBOX_NAME = 'SciMax';
54TOOLBOX_TITLE = 'SciMax Toolbox';
55// ====================================================================
56
57tbx_builder_src(toolbox_dir);
58
59global %lisp_error;
60
61if (%lisp_error) then
62 printf('Process aborted\n');
63 abort
64end
65
66tbx_builder_macros(toolbox_dir);
67tbx_build_loader(TOOLBOX_NAME, toolbox_dir);
68cd(toolbox_dir);
69clear toolbox_dir TOOLBOX_NAME TOOLBOX_TITLE %otb_path fd %lisp_error;
70
71// ====================================================================
72
73
74
75
76
77
78
79
80
81

Archive Download this file

Branches