[latex3-commits] [git/l3build] master: Allow selection of TEXMFHOME location (fixes #42) (e8fec41)

Joseph Wright joseph.wright at morningstar2.co.uk
Mon Dec 25 10:27:20 CET 2017


Repository : https://github.com/latex3/l3build
On branch  : master
Link       : https://github.com/latex3/l3build/commit/e8fec41a43e36c08001e695aff0cf1d70548bce6

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

commit e8fec41a43e36c08001e695aff0cf1d70548bce6
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Mon Dec 25 09:27:20 2017 +0000

    Allow selection of TEXMFHOME location (fixes #42)


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

e8fec41a43e36c08001e695aff0cf1d70548bce6
 l3build.dtx |    2 ++
 l3build.lua |    7 ++++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/l3build.dtx b/l3build.dtx
index 238d3ea..b9cb819 100644
--- a/l3build.dtx
+++ b/l3build.dtx
@@ -468,6 +468,8 @@
 %
 % \begin{buildcmd}{install}
 % Copies all package files (defined by \var{installfiles}) into the user's home \texttt{texmf} tree in the form of the \TeX\ Directory Structure.
+% The location of the user tree can be adjusted using the |--texmfhome| swtich:
+% the standard setting is the location set as |TEXMFHOME|.
 % \end{buildcmd}
 %
 % \begin{buildcmd}{save \meta{name(s)}}
diff --git a/l3build.lua b/l3build.lua
index 2db3bb1..207eca5 100644
--- a/l3build.lua
+++ b/l3build.lua
@@ -303,6 +303,11 @@ local option_list =
         short = "r",
         type  = "boolean"
       },
+    texmfhome =
+      {
+        desc = "Location of user texmf tree",
+        type = "string"
+      },
     version =
       {
         desc  = "Sets the version to insert into sources",
@@ -2158,7 +2163,7 @@ function install()
     return errorlevel
   end
   set_program_name("latex")
-  local texmfhome = var_value("TEXMFHOME")
+  local texmfhome = options["texmfhome"] or var_value("TEXMFHOME")
   local installdir = texmfhome .. "/tex/" .. moduledir
   errorlevel = cleandir(installdir)
   if errorlevel ~= 0 then





More information about the latex3-commits mailing list