[tex4ht-commits] [SCM] tex4ht updated: r731 - trunk/lit
michal_h21 at gnu.org.ua
michal_h21 at gnu.org.ua
Sun Jun 7 13:45:24 CEST 2020
Author: michal_h21
Date: 2020-06-07 14:45:24 +0300 (Sun, 07 Jun 2020)
New Revision: 731
Modified:
trunk/lit/checklog.lua
Log:
Handle file names
Modified: trunk/lit/checklog.lua
===================================================================
--- trunk/lit/checklog.lua 2020-06-07 11:38:15 UTC (rev 730)
+++ trunk/lit/checklog.lua 2020-06-07 11:45:24 UTC (rev 731)
@@ -10,7 +10,14 @@
local error_logparser = require("make4ht-errorlogparser")
local input_file = arg[1]
+local ext = input_file:match("%.([^%.]+)$")
+if not ext then
+ input_file = input_file .. ".log"
+elseif ext ~="log" then
+ input_file = input_file:gsub("[^%.]+$", "log")
+end
+print(input_file)
local f = io.open(input_file, "r")
local content = f:read("*all")
-- log parsing can be expensive on time, don't do it if we don't have
More information about the tex4ht-commits
mailing list.