[latex3-commits] [git/LaTeX3-latex3-latex2e] master: Actually allow installation of master as just "latex" (dc4adbf)

Joseph Wright joseph.wright at morningstar2.co.uk
Tue Apr 2 11:04:34 CEST 2019


Repository : https://github.com/latex3/latex2e
On branch  : master
Link       : https://github.com/latex3/latex2e/commit/dc4adbf7579fa52d454bec49a942ef400e9f917a

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

commit dc4adbf7579fa52d454bec49a942ef400e9f917a
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Tue Apr 2 10:01:59 2019 +0100

    Actually allow installation of master as just "latex"


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

dc4adbf7579fa52d454bec49a942ef400e9f917a
 build-config.lua |   17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/build-config.lua b/build-config.lua
index 938bd4d..dca08d2 100644
--- a/build-config.lua
+++ b/build-config.lua
@@ -27,10 +27,17 @@ if unpacksearch == nil then
   unpacksearch  = false
 end
 
--- Allow for 'next' release
+-- Allow for 'dev' release
 -- See stackoverflow.com/a/12142066/212001
-local branch = os.execute("git rev-parse --abbrev-ref HEAD") or ""
-if branch ~= "master" then
-  tdsroot = tdsroot or "latex-dev"
+local errorlevel = os.execute("git rev-parse --abbrev-ref HEAD > branch.tmp")
+if errorlevel ~= 0 then
+  exit(1)
+else
+  local f = assert(io.open("branch.tmp", "rb"))
+  local branch = f:read("*all")
+  f:close()
+  os.remove("branch.tmp")
+  if not string.match(branch, "%s*master%s*") then
+    tdsroot = tdsroot or "latex-dev"
+  end
 end
-





More information about the latex3-commits mailing list