summaryrefslogtreecommitdiff
path: root/help
diff options
context:
space:
mode:
authorRashmi Patankar2025-04-30 15:01:49 +0530
committerGitHub2025-04-30 15:01:49 +0530
commit0495a12104d8466509769fc34271757f00577709 (patch)
treecb208dd421d39051d85f4ef0476c9208ef2c41ab /help
parenta0bff158d21c2c12a12781bc5019f3a45bd866b2 (diff)
parentec6379e7494ff4ca2dc7c7524013d109be450bae (diff)
downloadFOSSEE-Signal-Processing-Toolbox-0495a12104d8466509769fc34271757f00577709.tar.gz
FOSSEE-Signal-Processing-Toolbox-0495a12104d8466509769fc34271757f00577709.tar.bz2
FOSSEE-Signal-Processing-Toolbox-0495a12104d8466509769fc34271757f00577709.zip
Merge pull request #21 from avinashlalotra/masterHEADmaster
Fixed Failing test scripts
Diffstat (limited to 'help')
-rw-r--r--help/builder_help.sce15
-rw-r--r--help/cleaner_help.sce17
2 files changed, 32 insertions, 0 deletions
diff --git a/help/builder_help.sce b/help/builder_help.sce
index e0d18eb..9b8e6de 100644
--- a/help/builder_help.sce
+++ b/help/builder_help.sce
@@ -16,6 +16,21 @@ toolbox_title = "FOSSEE_Signal_Processing_Toolbox"
help_dir = get_absolute_file_path('builder_help.sce');
+
+if (isdir(help_dir + "/en_US/"))then
+ xmlfiles = findfiles(help_dir + "/en_US/", "*.xml");
+ if ~isempty(xmlfiles) then
+ root_tlbx = toolbox_dir;
+ exec(help_dir + "cleaner_help.sce");
+ clear root_tlbx
+ end
+ help_from_sci(toolbox_dir+"/macros/",help_dir+"/en_US/");
+end
+
+if ~(isdir(toolbox_dir+ "/jar/")) then
+ mkdir(toolbox_dir+ "/jar/");
+end
+
tbx_builder_help_lang("en_US", help_dir);
clear toolbox_title;
diff --git a/help/cleaner_help.sce b/help/cleaner_help.sce
new file mode 100644
index 0000000..6ebe58d
--- /dev/null
+++ b/help/cleaner_help.sce
@@ -0,0 +1,17 @@
+help_dir = get_absolute_file_path('cleaner_help.sce');
+
+// Cleaning en_US directory
+if isdir(help_dir + "/en_US") then
+ xmlfiles = findfiles(help_dir + "/en_US/", "*.xml");
+ if ~isempty(xmlfiles) then
+ deletefile(help_dir+ "/en_US/" + xmlfiles);
+ end
+ rmdir(help_dir + "/en_US/scilab_en_US_help", "s");
+end
+
+// Cleaning the jar files
+if isdir(root_tlbx + "/jar/") then
+ rmdir(root_tlbx + "/jar","s");
+end
+
+clear help_dir xmlfiles ; \ No newline at end of file