diff options
-rw-r--r-- | builder.sce | 6 | ||||
-rw-r--r-- | help/builder_help.sce | 16 | ||||
-rw-r--r-- | help/cleaner_help.sce | 17 |
3 files changed, 34 insertions, 5 deletions
diff --git a/builder.sce b/builder.sce index 42cdd00..2bd7f9d 100644 --- a/builder.sce +++ b/builder.sce @@ -26,12 +26,10 @@ end TOOLBOX_NAME = "FOSSEE_Signal_Processing_Toolbox"; TOOLBOX_TITLE = "FOSSEE Signal Processing Toolbox"; // ==================================================================== - - toolbox_dir = get_absolute_file_path("builder.sce"); tbx_builder_help(toolbox_dir); tbx_builder_macros(toolbox_dir); -tbx_build_loader(toolbox_dir); -tbx_build_cleaner(toolbox_dir); +tbx_build_loader(TOOLBOX_NAME,toolbox_dir); +tbx_build_cleaner(TOOLBOX_NAME,toolbox_dir); clear toolbox_dir TOOLBOX_NAME TOOLBOX_TITLE; diff --git a/help/builder_help.sce b/help/builder_help.sce index 814c854..9b8e6de 100644 --- a/help/builder_help.sce +++ b/help/builder_help.sce @@ -16,7 +16,21 @@ toolbox_title = "FOSSEE_Signal_Processing_Toolbox" help_dir = get_absolute_file_path('builder_help.sce'); -help_from_sci(toolbox_dir+"/macros/",help_dir+"/en_US/"); + +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 |