summaryrefslogtreecommitdiff
path: root/cleaner.sce
diff options
context:
space:
mode:
authorHarpreet2016-09-03 00:36:51 +0530
committerHarpreet2016-09-03 00:36:51 +0530
commita0d9443af147e949c1e6a01ac24749d12593ec5b (patch)
tree1a1955c5482ae608fd7f618b06f4ecc6a0d39a23 /cleaner.sce
parent4b64cf486f5c999fd8167758cae27839f3b50848 (diff)
downloadFOSSEE-Optim-toolbox-development-a0d9443af147e949c1e6a01ac24749d12593ec5b.tar.gz
FOSSEE-Optim-toolbox-development-a0d9443af147e949c1e6a01ac24749d12593ec5b.tar.bz2
FOSSEE-Optim-toolbox-development-a0d9443af147e949c1e6a01ac24749d12593ec5b.zip
cbcintlinprog added
Diffstat (limited to 'cleaner.sce')
-rw-r--r--cleaner.sce56
1 files changed, 36 insertions, 20 deletions
diff --git a/cleaner.sce b/cleaner.sce
index 8df0ed6..370c68f 100644
--- a/cleaner.sce
+++ b/cleaner.sce
@@ -1,22 +1,38 @@
// This file is released under the 3-clause BSD license. See COPYING-BSD.
-// Generated by builder.sce : Please, do not edit this file
-// cleaner.sce
-// ------------------------------------------------------
-curdir = pwd();
-cleaner_path = get_file_path('cleaner.sce');
-chdir(cleaner_path);
-// ------------------------------------------------------
-if fileinfo('loader.sce') <> [] then
- mdelete('loader.sce');
+// Generated by builder.sce: Please, do not edit this file
+
+try
+ getversion("scilab");
+catch
+ error("Scilab 5.0 or more is required.");
end
-// ------------------------------------------------------
-if fileinfo('libFOSSEE_Scilab_intqpipopt.so') <> [] then
- mdelete('libFOSSEE_Scilab_intqpipopt.so');
-end
-// ------------------------------------------------------
-if fileinfo('libFOSSEE_Scilab_intqpipopt.c') <> [] then
- mdelete('libFOSSEE_Scilab_intqpipopt.c');
-end
-// ------------------------------------------------------
-chdir(curdir);
-// ------------------------------------------------------
+function perform_clean()
+ root_tlbx = get_absolute_file_path('cleaner.sce');
+
+ if isfile(root_tlbx + '/macros/cleanmacros.sce') then
+ exec(root_tlbx+'/macros/cleanmacros.sce');
+ end
+
+ if isfile(root_tlbx + '/src/cleaner_src.sce') then
+ exec(root_tlbx+'/src/cleaner_src.sce');
+ end
+
+ if isfile(root_tlbx + "/sci_gateway/cleaner_gateway.sce") then
+ exec(root_tlbx + "/sci_gateway/cleaner_gateway.sce");
+ mdelete(root_tlbx + "/sci_gateway/cleaner_gateway.sce");
+ end
+
+ if isfile(root_tlbx + "/help/cleaner_help.sce") then
+ exec(root_tlbx + "/help/cleaner_help.sce");
+ end
+
+ if isfile(root_tlbx + "/loader.sce") then
+ mdelete(root_tlbx + "/loader.sce");
+ end
+
+ if isfile(root_tlbx + "/unloader.sce") then
+ mdelete(root_tlbx + "/unloader.sce");
+ end
+endfunction
+perform_clean();
+clear perform_clean;