diff options
author | Karl Berry <karl@freefriends.org> | 2016-02-18 22:37:12 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-02-18 22:37:12 +0000 |
commit | 577da3562b92b5de69f0f7df057c87c3dcae4752 (patch) | |
tree | f57ec46da76f1810c15369d5478c46c22c210fa3 /Master/texmf-dist/scripts | |
parent | bad5df60cd53f774b59edd997ec3ff30fba67cac (diff) |
splitindex (18feb16)
git-svn-id: svn://tug.org/texlive/trunk@39766 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts')
-rwxr-xr-x | Master/texmf-dist/scripts/splitindex/splitindex.tlu | 2 | ||||
-rw-r--r-- | Master/texmf-dist/scripts/splitindex/splitindex_main.tlu | 16 |
2 files changed, 14 insertions, 4 deletions
diff --git a/Master/texmf-dist/scripts/splitindex/splitindex.tlu b/Master/texmf-dist/scripts/splitindex/splitindex.tlu index a367634b037..1cd6de7e1f6 100755 --- a/Master/texmf-dist/scripts/splitindex/splitindex.tlu +++ b/Master/texmf-dist/scripts/splitindex/splitindex.tlu @@ -2,7 +2,7 @@ -- splitindex.tlu -- Copyright (c) Markus Kohm, 2013 -- --- $Id: splitindex.tlu,v 1.1 2013-04-04 11:28:17 mjk Exp $ +-- $Id: splitindex.tlu 4 2016-02-18 10:13:32Z mjk $ -- -- This file is part of the SplitIndex bundle. -- diff --git a/Master/texmf-dist/scripts/splitindex/splitindex_main.tlu b/Master/texmf-dist/scripts/splitindex/splitindex_main.tlu index 1fc19b13fb2..de12c50efe4 100644 --- a/Master/texmf-dist/scripts/splitindex/splitindex_main.tlu +++ b/Master/texmf-dist/scripts/splitindex/splitindex_main.tlu @@ -1,8 +1,8 @@ #!/usr/bin/env texlua -- splitindex.tlu --- Copyright (c) Markus Kohm, 2013 +-- Copyright (c) Markus Kohm, 2013-2014 -- --- $Id: splitindex_main.tlu,v 1.2 2013-04-04 13:59:54 mjk Exp $ +-- $Id: splitindex_main.tlu 4 2016-02-18 10:13:32Z mjk $ -- -- This file is part of the SplitIndex bundle. -- @@ -43,7 +43,7 @@ -- as it would have been installed if they generated a Compiled Work -- directly from the Work. -local version_number = string.sub( '$Revision: 1.2 $', 12, -2 ) +local version_number = string.sub( '$Revision: 4 $', 12, -2 ) local action_version = ' r'..version_number..'\n'..[[ Copyright (c) 2013 Markus Kohm. License: lppl 1.3c or later. See <http://www.latex-project.org/lppl.txt>. @@ -148,6 +148,16 @@ local ifilename = arg[1] table.remove(arg,1) local bfilename = string.gsub(ifilename,'^(.*)%.idx$','%1') +local f=io.open(ifilename,"rb") +if f~=nil then io.close(f); +elseif ifilename ~= bfilename..'.idx' then + f=io.open(bfilename..'.idx',"rb") + if f~=nil then + io.close(f) + ifilename=bfilename..'.idx' + end +end + local makeindexargs='' while arg[1] do makeindexargs = makeindexargs..' "'..arg[1]..'"' |