atoms-tests

atoms-tests Git Source Tree

Root/clean_all.sce

1//exec all cleaner.sce and delete "binaries" files ( .jar, .bin, ...)
2
3main_dir = get_absolute_file_path("clean_all.sce");
4
5exec(main_dir + "tbx.sce");
6
7function rmdoc(path)
8 dirs = ls(path);
9 dirs_to_delete = path + "/" + dirs + "/scilab_" + dirs + "_help";
10 for i = 1 : size(dirs_to_delete, "*")
11 rmdir(dirs_to_delete(i), "s");
12 end
13
14 //master_help file
15 files_to_delete = path +"/" + dirs + "/master_help.xml";
16 for i = 1 : size(files_to_delete, "*")
17 deletefile(files_to_delete(i));
18 end
19endfunction
20
21for kn=1:size(tbx_names, "*")
22 for kv=1:size(tbx_versions(kn), "*")
23 macrospath = main_dir + tbx_names(kn) + "/" + tbx_versions(kn)(kv) + "/macros";
24 deletefile(macrospath + "/lib");
25 deletefile(macrospath + "/names");
26 allbins = ls(macrospath + "/*.bin");
27 for kb=1:size(allbins, "*")
28 deletefile(allbins(kb));
29 end
30
31 jarpath = main_dir + tbx_names(kn) + "/" + tbx_versions(kn)(kv) + "/jar";
32 rmdir(jarpath, "s");
33
34 loaderpath = main_dir + tbx_names(kn) + "/" + tbx_versions(kn)(kv) + "/loader.sce";
35 deletefile(loaderpath);
36
37 unloaderpath = main_dir + tbx_names(kn) + "/" + tbx_versions(kn)(kv) + "/unloader.sce";
38 deletefile(unloaderpath);
39
40 docpath = main_dir + tbx_names(kn) + "/" + tbx_versions(kn)(kv) + "/help";
41 rmdoc(docpath);
42 end
43end
44
45exit

Archive Download this file

Branches