[latex3-commits] [git/LaTeX3-latex3-l3build] main: Santiy check for TEXMFHOME value (see #125) (b3e0a27)

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Nov 24 23:41:51 CET 2021


Repository : https://github.com/latex3/l3build
On branch  : main
Link       : https://github.com/latex3/l3build/commit/b3e0a271599b70125211e35298354c8bcbae6c25

>---------------------------------------------------------------

commit b3e0a271599b70125211e35298354c8bcbae6c25
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Nov 24 22:41:51 2021 +0000

    Santiy check for TEXMFHOME value (see #125)


>---------------------------------------------------------------

b3e0a271599b70125211e35298354c8bcbae6c25
 CHANGELOG.md        | 1 +
 l3build-install.lua | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 16ca9f7..02531ab 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,7 @@ this project uses date-based 'snapshot' version identifiers.
 ### Changed
 - Documentation improvements
 - Use `checkengines[1]` as the default for `stdengine`
+- Add sanity check for `TEXMFHOME` value
 
 ### Fixed
 - Incorrect line in `manifest` target (see #195)
diff --git a/l3build-install.lua b/l3build-install.lua
index 21257aa..6e83690 100644
--- a/l3build-install.lua
+++ b/l3build-install.lua
@@ -38,6 +38,10 @@ local insert = table.insert
 local function gethome()
   set_program("latex")
   local result = options["texmfhome"] or var_value("TEXMFHOME")
+  if result == "" or match(result, os_pathsep) then
+    print("Ambiguous TEXMFHOME setting: please use the --texmfhome option")
+    os.exit(1)
+  end
   mkdir(result)
   return abspath(result)
 end





More information about the latex3-commits mailing list.