summaryrefslogtreecommitdiff
path: root/indexing/xindex/lualatex/xindex-lapp.lua
diff options
context:
space:
mode:
Diffstat (limited to 'indexing/xindex/lualatex/xindex-lapp.lua')
-rw-r--r--indexing/xindex/lualatex/xindex-lapp.lua11
1 files changed, 8 insertions, 3 deletions
diff --git a/indexing/xindex/lualatex/xindex-lapp.lua b/indexing/xindex/lualatex/xindex-lapp.lua
index 4e312ce4a0..cb79a0d550 100644
--- a/indexing/xindex/lualatex/xindex-lapp.lua
+++ b/indexing/xindex/lualatex/xindex-lapp.lua
@@ -1,7 +1,7 @@
-- lapp.lua
-- Simple command-line parsing using human-readable specification
--
--- $Id: xindex-lapp.lua 4 2021-07-07 07:25:04Z hvoss $
+-- $Id: xindex-lapp.lua 9 2021-08-13 19:42:48Z hvoss $
-----------------------------
--~ -- args.lua
--~ local args = require ('lapp') [[
@@ -30,7 +30,7 @@
--~ n 2
--------------------------------
if not modules then modules = { } end modules ['xindex-lapp'] = {
- version = 0.30,
+ version = 0.31,
comment = "read parameter for xindex.lua",
author = "Steve Donovan",
copyright = "Steve Donovan",
@@ -80,7 +80,12 @@ end
local function open (file,opt)
local val,err = io.open(file,opt)
- if not val then error(err,true) end
+ if not val then
+ val,err = io.open(file..".idx",opt)
+ if not val then
+ error(err,true)
+ end
+ end
append(open_files,val)
return val
end