diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2013-05-11 17:07:40 +0200 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2013-05-11 17:07:40 +0200 |
commit | 47228759b1ff2556364e5e3d09821048879376b6 (patch) | |
tree | c063795d303bc21ab4a4a7f55dd2e17eb3dfe102 /luaotfload-tool.lua | |
parent | 7a8c11da9f5f5ec4b761229b0d4efa9d279dc13f (diff) | |
download | luaotfload-47228759b1ff2556364e5e3d09821048879376b6.tar.gz |
locate legacy db script through kpse
Diffstat (limited to 'luaotfload-tool.lua')
-rwxr-xr-x | luaotfload-tool.lua | 8 |
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 |