summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-01-31 22:41:37 +0000
committerKarl Berry <karl@freefriends.org>2019-01-31 22:41:37 +0000
commit30095088a5d9797779fc153b90647bed2c3446e0 (patch)
treec3f3196da8915fec7870dadc26ecad7951b2126f /Build
parent6c44317e8904afb8ad612d63a792b3bd6b900bf8 (diff)
xindex (31jan19)
git-svn-id: svn://tug.org/texlive/trunk@49887 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rwxr-xr-xBuild/source/texk/texlive/linked_scripts/xindex/xindex.lua18
1 files changed, 17 insertions, 1 deletions
diff --git a/Build/source/texk/texlive/linked_scripts/xindex/xindex.lua b/Build/source/texk/texlive/linked_scripts/xindex/xindex.lua
index 3ee85f53324..7b1ff4ab133 100755
--- a/Build/source/texk/texlive/linked_scripts/xindex/xindex.lua
+++ b/Build/source/texk/texlive/linked_scripts/xindex/xindex.lua
@@ -8,7 +8,7 @@
-----------------------------------------------------------------------
xindex = xindex or { }
- local version = 0.06
+ local version = 0.06b
xindex.version = version
--xindex.self = "xindex"
@@ -45,6 +45,7 @@ local args = require ('xindex-lapp') [[
-n,--noheadings
-o,--output (default "")
-l,--language (default en)
+ -p,--prefix (default "")
<input> (string)
]]
@@ -59,6 +60,18 @@ local args = require ('xindex-lapp') [[
vlevel = not args.v[1] and 0 or #args.v
not_quiet = not args["quiet"]
+local luaVersion = _VERSION
+if (luaVersion < "Lua 5.3") then
+ print("=========================================")
+ print("Sorry. but we need at least LuaTeX 1.09")
+ print("Leaving program xindex")
+ print("=========================================")
+ os.exit()
+end
+
+--local inspect = require 'inspect'
+--print(inspect(args))
+
--[[
if args.h then
print(
@@ -129,6 +142,9 @@ end
writeLog(2,"Using input file: "..inFile.."\n",0)
+labelPrefix = args.prefix
+writeLog(2,"Label prefix: "..labelPrefix.."\n",-1)
+
writeLog(2,"Loading common config file ".."xindex-cfg-common\n",1)
Config_File_Common = kpse.find_file("xindex-cfg-common.lua")
cfg_common = require(Config_File_Common)