-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuilder.sce
51 lines (51 loc) · 1.84 KB
/
builder.sce
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
printf('***************************************\n')
printf('** compilation of scinetwk toolbox **\n')
printf('***************************************\n')
try
getversion("scilab");
catch
error("Scilab 5.0 or more is required.");
end;
toolbox_title="scinetwk";
path=get_absolute_file_path("builder.sce")
// compile macros
printf('***************************************\n')
printf('** compilation of macros/*.sci files **\n')
printf('***************************************\n')
cd(path+"macros")
exec("cleanmacros.sce")
exec("buildmacros.sce")
// generate help
printf('***************************************\n')
printf('** generating help files (xml/pdf) **\n')
printf('***************************************\n')
cd("../help")
exec("builder_help.sce")
cd("../")
xmltopdf('help/en_US',toolbox_title,'pdf');
//load
printf('\n***************************************\n')
printf('** loading toolbox scinetwk **\n')
printf('***************************************\n')
exec('etc/scinetwk.quit',-1)
exec('loader.sce',-1)
// run unit_tests
printf('***************************************\n')
printf('** running tests in test/*.tst files **\n')
printf('***************************************\n')
status=%t//status=test_run('.',[],'create_ref')
if status then
printf('*****************************************\n')
printf('** successful compilation of scinetwk !**\n')
printf('** next time execute file loader.sce ****\n')
printf('*****************************************\n')
printf('*****************************************\n')
printf('** read online help '"help scinetwk'" ***\n')
printf('*****************************************\n')
help scinetwk
else
printf('***************************************\n')
printf('**/!\\ errors detected! check tests/!\\**\n')
printf('** next time execute file loader.sce **\n')
printf('***************************************\n')
end