diff options
Diffstat (limited to 'help')
-rw-r--r-- | help/builder_help.sce | 15 | ||||
-rw-r--r-- | help/cleaner_help.sce | 17 |
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 |