summaryrefslogtreecommitdiff
path: root/2.3-1/macros/Hardware/RasberryPi/cleanmacros.sce
diff options
context:
space:
mode:
Diffstat (limited to '2.3-1/macros/Hardware/RasberryPi/cleanmacros.sce')
-rwxr-xr-x2.3-1/macros/Hardware/RasberryPi/cleanmacros.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/2.3-1/macros/Hardware/RasberryPi/cleanmacros.sce b/2.3-1/macros/Hardware/RasberryPi/cleanmacros.sce
new file mode 100755
index 00000000..a6428b2a
--- /dev/null
+++ b/2.3-1/macros/Hardware/RasberryPi/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
+
+// ====================================================================