summaryrefslogtreecommitdiff
path: root/luaotfload-tool.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-05-11 16:14:36 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-05-11 16:14:36 +0200
commit3da43df46bb3ddc265ddedcf6bbb732d788ab269 (patch)
tree4c836735fb8e2c7d7c0d7a61521a4a2b60cb8680 /luaotfload-tool.lua
parent0004b213f99a77411c03811e3324c9a1e934e31a (diff)
parent78b43966b0e7f28137d971b3f6921beca473e966 (diff)
downloadluaotfload-3da43df46bb3ddc265ddedcf6bbb732d788ab269.tar.gz
Merge ../luaotfload-compat
Diffstat (limited to 'luaotfload-tool.lua')
-rwxr-xr-xluaotfload-tool.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/luaotfload-tool.lua b/luaotfload-tool.lua
index 882a296..0ee53eb 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