summaryrefslogtreecommitdiff
path: root/macros/cleanmacros.sce
diff options
context:
space:
mode:
authorHarpreet2016-02-04 15:36:02 +0530
committerHarpreet2016-02-04 15:36:02 +0530
commitd5a0869a7d1482b67f3fd42805948ee30a05eb1e (patch)
tree62473a6b370aca4d71728000cde041391850e067 /macros/cleanmacros.sce
parent9f3ca8b98840ba9dd78ad62dfef0653aedb1d4b1 (diff)
downloadsymphony-d5a0869a7d1482b67f3fd42805948ee30a05eb1e.tar.gz
symphony-d5a0869a7d1482b67f3fd42805948ee30a05eb1e.tar.bz2
symphony-d5a0869a7d1482b67f3fd42805948ee30a05eb1e.zip
Source files
Diffstat (limited to 'macros/cleanmacros.sce')
-rw-r--r--macros/cleanmacros.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/macros/cleanmacros.sce b/macros/cleanmacros.sce
new file mode 100644
index 0000000..a6428b2
--- /dev/null
+++ b/macros/cleanmacros.sce
@@ -0,0 +1,20 @@
+// ====================================================================
+// This file is released under the 3-clause BSD license. See COPYING-BSD.
+// ====================================================================
+function cleanmacros()
+
+ libpath = get_absolute_file_path("cleanmacros.sce");
+
+ binfiles = ls(libpath+"/*.bin");
+ for i = 1:size(binfiles,"*")
+ mdelete(binfiles(i));
+ end
+
+ mdelete(libpath+"/names");
+ mdelete(libpath+"/lib");
+endfunction
+
+cleanmacros();
+clear cleanmacros; // remove cleanmacros on stack
+
+// ====================================================================