From c59d78c5a5c8c187450f157cf7f8480455e8e6a2 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Wed, 3 Apr 2024 03:32:23 +0200 Subject: [PATCH] scilab: tbx_build_help: Allow for some flexibility under -nwni. upstream reference: https://gitlab.com/scilab/scilab/-/merge_requests/818 --- .../modules_manager/macros/tbx_build_help.sci | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scilab/modules/modules_manager/macros/tbx_build_help.sci b/scilab/modules/modules_manager/macros/tbx_build_help.sci index 7862e33a868..5593ee3dc04 100644 --- a/scilab/modules/modules_manager/macros/tbx_build_help.sci +++ b/scilab/modules/modules_manager/macros/tbx_build_help.sci @@ -58,12 +58,12 @@ function tbx_build_help(moduletitle, path) // Check scilab mode if and(getscilabmode() <> ["STD" "NW"]) then - error(msprintf(gettext("%s: documentation cannot be built in this scilab mode: %s.\n"),"tbx_build_help",getscilabmode())); + msprintf(gettext("%s: documentation cannot be built in this scilab mode: %s.\n"),"tbx_build_help",getscilabmode()); + else + directory_language = basename(path); + default_language = "en_US" + + xmltojar(path, moduletitle, directory_language, default_language); end - directory_language = basename(path); - default_language = "en_US" - - xmltojar(path, moduletitle, directory_language, default_language); - endfunction -- 2.41.0 iff
path: root/tests/modules.scm
AgeCommit message (Expand)Author
2017-05-25modules: Raise an error when a dependency could not be found....* guix/modules.scm (&missing-dependency-error): New error condition. (source-module-dependencies): Raise it when 'search-path' returns #f. * tests/modules.scm ("&missing-dependency-error"): New test. Ludovic Courtès
2016-09-05Add (guix modules)....* guix/modules.scm, tests/modules.scm: New files. * Makefile.am (MODULES, SCM_TESTS): Add them. * doc/guix.texi (G-Expressions): Add an example of 'source-module-closure'. Ludovic Courtès