From 82fd7d8aab5f5603b7fb00191efc6f6bbe73ab0b Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Fri, 10 May 2013 21:38:13 +0200 Subject: divert Lua<5.2 to legacy script in luaotfload-tool --- luaotfload-tool.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'luaotfload-tool.lua') diff --git a/luaotfload-tool.lua b/luaotfload-tool.lua index 2c525d9..b16fe49 100755 --- a/luaotfload-tool.lua +++ b/luaotfload-tool.lua @@ -26,6 +26,20 @@ see the luaotfload documentation for more info. Report bugs to --doc]]-- +--[[doc-- + + We test for Lua 5.1 by means of capability detection to see if + we’re running an outdated Luatex. If so, we hand over control to + the legacy db runner. + + \url{http://lua-users.org/wiki/LuaVersionCompatibility} + +--doc]]-- + +if _G.getfenv then + return require"luaotfload-legacy-tool" +end + kpse.set_program_name"luatex" local stringformat = string.format -- cgit v1.2.3