summaryrefslogtreecommitdiff
path: root/luaotfload-tool.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-05-11 17:07:40 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-05-11 17:07:40 +0200
commit47228759b1ff2556364e5e3d09821048879376b6 (patch)
treec063795d303bc21ab4a4a7f55dd2e17eb3dfe102 /luaotfload-tool.lua
parent7a8c11da9f5f5ec4b761229b0d4efa9d279dc13f (diff)
downloadluaotfload-47228759b1ff2556364e5e3d09821048879376b6.tar.gz
locate legacy db script through kpse
Diffstat (limited to 'luaotfload-tool.lua')
-rwxr-xr-xluaotfload-tool.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/luaotfload-tool.lua b/luaotfload-tool.lua
index 0ee53eb..bab2a9a 100755
--- a/luaotfload-tool.lua
+++ b/luaotfload-tool.lua
@@ -36,12 +36,14 @@ see the luaotfload documentation for more info. Report bugs to
--doc]]--
+kpse.set_program_name"luatex"
+
if _G.getfenv then
- return require"luaotfload-legacy-tool"
+ local oldscript = kpse.find_file"luaotfload-legacy-tool.lua"
+ print(oldscript)
+ return require(oldscript)
end
-kpse.set_program_name"luatex"
-
local stringformat = string.format
local texiowrite_nl = texio.write_nl
local stringlower = string.lower