File: upstream-enhance-cli-option_homepath.patch

package info (click to toggle)
texmacs 1%3A2.1.4%2Bds-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 145,080 kB
  • sloc: cpp: 227,393; lisp: 197,386; ansic: 5,395; python: 1,939; makefile: 1,065; sh: 781; perl: 339; xml: 100; awk: 36
file content (25 lines) | stat: -rw-r--r-- 949 bytes parent folder | download | duplicates (2)
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
Description: upstream: enhance: cli: option: homepath
 Introduce the option --homepath (or -hp) as companion
 of the options --path (or -p) and --binpath (or -bp).
 These options can be useful in scripts, in particular
 in plugins `Makefile_s`. Note that this patch adds
 no entry in the _help message_. This follows the policy
 chosen for the option --bindir.
Origin: vendor, Debian
Forwarded: https://github.com/texmacs/texmacs/pull/99
Author: Jerome Benoit <calculus@rezozer.net>
Last-Update: 2024-08-21

--- a/src/Texmacs/Texmacs/texmacs.cpp
+++ b/src/Texmacs/Texmacs/texmacs.cpp
@@ -307,6 +307,10 @@
         cout << get_env ("TEXMACS_PATH") << "\n";
         exit (0);
       }
+      else if ((s == "-hp") || (s == "-homepath")) {
+        cout << get_env ("TEXMACS_HOME_PATH") << "\n";
+        exit (0);
+      }
       else if ((s == "-bp") || (s == "-binpath")) {
         cout << get_env ("TEXMACS_BIN_PATH") << "\n";
         exit (0);