[latex3-commits] [git/l3build] master: Use more sensible unix_to_win() (4de7c72)

Joseph Wright joseph.wright at morningstar2.co.uk
Sat Jan 27 09:21:05 CET 2018


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

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

commit 4de7c72413e71ea6eb8b3366263a27528651ca34
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sat Jan 27 08:04:11 2018 +0000

    Use more sensible unix_to_win()


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

4de7c72413e71ea6eb8b3366263a27528651ca34
 l3build-check.lua |   12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/l3build-check.lua b/l3build-check.lua
index 5a2c616..ee4c665 100644
--- a/l3build-check.lua
+++ b/l3build-check.lua
@@ -546,9 +546,7 @@ function compare_pdf(name, engine)
   if not refpdffile then
     return
   end
-  if os_type == "windows" then
-    refpdffile = unix_to_win(refpdffile)
-  end
+  refpdffile = unix_to_win(refpdffile)
   errorlevel = execute(
     os_cmpexe .. " " .. refpdffile .. " " .. pdffile .. " > " .. cmpfile
   )
@@ -567,9 +565,7 @@ function compare_tlg(name, engine)
   if not tlgfile then
     return
   end
-  if os_type == "windows" then
-    tlgfile = unix_to_win(tlgfile)
-  end
+  tlgfile = unix_to_win(tlgfile)
   -- Do additional log formatting if the engine is LuaTeX, there is no
   -- LuaTeX-specific .tlg file and the default engine is not LuaTeX
   if engine == "luatex"
@@ -578,9 +574,7 @@ function compare_tlg(name, engine)
     and stdengine ~= "luajittex"
     then
     local luatlgfile = testdir .. "/" .. name .. ".luatex" ..  tlgext
-    if os_type == "windows" then
-      luatlgfile = unix_to_win(luatlgfile)
-    end
+    luatlgfile = unix_to_win(luatlgfile)
     formatlualog(tlgfile, luatlgfile)
     formatlualog(logfile, logfile)
     -- This allows code sharing below: we only need the .tlg name in one place





More information about the latex3-commits mailing list