summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/lualatex/xindex/xindex-lapp.lua
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-08-14 20:49:46 +0000
committerKarl Berry <karl@freefriends.org>2021-08-14 20:49:46 +0000
commitd4424601e554a08fb8666350f6aad3cf6486fc92 (patch)
tree35c262e0f94f9afdc1898a43c517686736b4e609 /Master/texmf-dist/tex/lualatex/xindex/xindex-lapp.lua
parent7957729c657298312dd704a7cd42bef27ec9be27 (diff)
xindex (14aug21)
git-svn-id: svn://tug.org/texlive/trunk@60242 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/lualatex/xindex/xindex-lapp.lua')
-rw-r--r--Master/texmf-dist/tex/lualatex/xindex/xindex-lapp.lua11
1 files changed, 8 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/lualatex/xindex/xindex-lapp.lua b/Master/texmf-dist/tex/lualatex/xindex/xindex-lapp.lua
index 4e312ce4a04..cb79a0d5502 100644
--- a/Master/texmf-dist/tex/lualatex/xindex/xindex-lapp.lua
+++ b/Master/texmf-dist/tex/lualatex/xindex/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