unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 34dbe7dfa4b93f3fb754a6418fa0dd88c0d88bb3 1502 bytes (raw)
name: packages/patches/scilab-tbx_build_help.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
 
From 24a9bc240729b7630e20a7b83b75f086024ae03d Mon Sep 17 00:00:00 2001
From: Nicolas Graves <ngraves@ngraves.fr>
Date: Wed, 21 Aug 2024 15:42:35 +0200
Subject: [PATCH] scilab: tbx_build_help: Allow for some flexibility under
 -nwni.

upstream reference: https://gitlab.com/scilab/scilab/-/merge_requests/818
---
 scilab/modules/modules_manager/macros/tbx_build_help.sci | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/scilab/modules/modules_manager/macros/tbx_build_help.sci b/scilab/modules/modules_manager/macros/tbx_build_help.sci
index ab06b3fa8dc..cbb1b4cadf8 100644
--- a/scilab/modules/modules_manager/macros/tbx_build_help.sci
+++ b/scilab/modules/modules_manager/macros/tbx_build_help.sci
@@ -57,8 +57,8 @@ 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()));
-    end
+        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"
@@ -89,4 +89,5 @@ function tbx_build_help(moduletitle, path)
         warning(_(".start file was not found, build of help pages using <scilab:image> tag may failed."));
         xmltojar(path, moduletitle, directory_language, default_language);
     end
+    end
 endfunction
-- 
2.45.2


debug log:

solving 34dbe7dfa4b93f3fb754a6418fa0dd88c0d88bb3 ...
found 34dbe7dfa4b93f3fb754a6418fa0dd88c0d88bb3 in https://git.savannah.gnu.org/cgit/guix.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).