summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-09-03 21:06:29 +0000
committerKarl Berry <karl@freefriends.org>2020-09-03 21:06:29 +0000
commit24747f42d2ae33e72bd6cb817501a16951912000 (patch)
tree249041a4aa4763ff12d5925a69df1e65345e6b8d /Build
parentd34926349151181057a004f0aa9b9c90fbf0f2f2 (diff)
luaotfload (3sep20)
git-svn-id: svn://tug.org/texlive/trunk@56251 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rwxr-xr-xBuild/source/texk/texlive/linked_scripts/luaotfload/luaotfload-tool.lua37
1 files changed, 12 insertions, 25 deletions
diff --git a/Build/source/texk/texlive/linked_scripts/luaotfload/luaotfload-tool.lua b/Build/source/texk/texlive/linked_scripts/luaotfload/luaotfload-tool.lua
index eabd8e44349..18334d5ab32 100755
--- a/Build/source/texk/texlive/linked_scripts/luaotfload/luaotfload-tool.lua
+++ b/Build/source/texk/texlive/linked_scripts/luaotfload/luaotfload-tool.lua
@@ -9,8 +9,8 @@
local ProvidesLuaModule = {
name = "luaotfload-tool",
- version = "3.14", --TAGVERSION
- date = "2020-05-06", --TAGDATE
+ version = "3.15", --TAGVERSION
+ date = "2020-09-02", --TAGDATE
description = "luaotfload-tool / database functionality",
license = "GPL v2.0"
}
@@ -23,7 +23,6 @@ end
luaotfload = luaotfload or { }
local version = ProvidesLuaModule.version
luaotfload.version = ProvidesLuaModule.version
-luaotfload.min_luatex_version = { 0, 95, 0 }
luaotfload.self = "luaotfload-tool"
luaotfload.fontloader = _G -- We don't isolate the fontloader here
@@ -65,32 +64,21 @@ local tonumber = tonumber
local type = type
do
- local runtime = _G.jit and { "jit" , jit.version }
- or { "stock", _VERSION }
- local stats = status and status.list ()
- local minimum = luaotfload.min_luatex_version
- local actual = { 0, 0, 0 }
- if stats then
- local major = stats.luatex_version // 100
- local minor = stats.luatex_version % 100
- local revision = stats.luatex_revision --[[ : string ]]
- local revno = tonumber (revision)
- actual = { major, minor, revno or 0 }
- end
-
- if actual [1] < minimum [1]
- or actual == minimum and actual [2] < minimum [2]
- or actual == minimum and actual [2] == minimum [2] and actual [3] < minimum [3]
- then
+ local runtime = _G.jit and { "jit" , jit.version }
+ or { "stock", _VERSION }
+ local minimum = {110, 0}
+ local revn = tonumber (status.luatex_revision) or 0 --[[ : string ]]
+
+ if status.luatex_version < minimum[1]
+ or status.luatex_version == minimum[1] and status.luatex_revision < minimum[2] then
texio.write_nl ("term and log",
string.format ("\tFATAL ERROR\n\z
\tLuaotfload requires a Luatex version >= %d.%d.%d.\n\z
\tPlease update your TeX distribution!\n\n",
- (unpack or table.unpack) (minimum)))
+ math.floor(minimum[1] / 100), minimum[1] % 100, minimum[2]))
error "version check failed"
end
luaotfload.runtime = runtime
- luaotfload.luatex_version = actual
end
local C, Ct, P, S = lpeg.C, lpeg.Ct, lpeg.P, lpeg.S
@@ -349,8 +337,7 @@ local function version_msg ( )
local meta = fonts.names.getmetadata ()
local runtime = luaotfload.runtime
- local actual = luaotfload.luatex_version
- local status = config.luaotfload.status
+ local notes = config.luaotfload.status
local notes = status and status.notes or { }
out (about, luaotfload.self)
@@ -361,7 +348,7 @@ local function version_msg ( )
out ("Revision: %q", notes.revision)
out ("Lua interpreter: %s; version %q", runtime[1], runtime[2])
--[[out ("Luatex SVN revision: %d", info.luatex_svn)]] --> SVN r5624
- out ("Luatex version: %d.%d", actual [1], actual [2])
+ out ("Luatex version: %d.%d", math.floor(status.luatex_version / 100), status.luatex_version % 100)
out ("Platform: type=%s name=%s", os.type, os.name)
local uname_vars = tablesortedkeys (uname)