From 815306982a4ea8eaaa2106fadcd1472aa2a9dcd5 Mon Sep 17 00:00:00 2001 From: Jorawar Singh Date: Fri, 30 Jun 2017 11:28:58 +0530 Subject: Help files, modified Raspberry Pi code conversion --- 2.3-1/help/cleaner_help.sce | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 2.3-1/help/cleaner_help.sce (limited to '2.3-1/help/cleaner_help.sce') diff --git a/2.3-1/help/cleaner_help.sce b/2.3-1/help/cleaner_help.sce new file mode 100755 index 00000000..a2b5e7ef --- /dev/null +++ b/2.3-1/help/cleaner_help.sce @@ -0,0 +1,21 @@ +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +function cleaner_help() + path = get_absolute_file_path("cleaner_help.sce"); + langdirs = dir(path); + langdirs = langdirs.name(langdirs.isdir); + + for l = 1:size(langdirs, "*") + masterfile = fullpath(path + filesep() + langdirs(l) + "/master_help.xml"); + mdelete(masterfile); + + jarfile = fullpath(path + "/../jar/scilab_" + langdirs(l) + "_help.jar"); + mdelete(jarfile); + + tmphtmldir = fullpath(path + "/" + langdirs(l) + "/scilab_" + langdirs(l) + "_help"); + rmdir(tmphtmldir, "s"); + end +endfunction + +cleaner_help(); +clear cleaner_help; -- cgit