summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/texdoc/functions.tlu
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/scripts/texdoc/functions.tlu')
-rw-r--r--Master/texmf-dist/scripts/texdoc/functions.tlu24
1 files changed, 4 insertions, 20 deletions
diff --git a/Master/texmf-dist/scripts/texdoc/functions.tlu b/Master/texmf-dist/scripts/texdoc/functions.tlu
index 0ab02278450..88b66b2ca40 100644
--- a/Master/texmf-dist/scripts/texdoc/functions.tlu
+++ b/Master/texmf-dist/scripts/texdoc/functions.tlu
@@ -1,7 +1,7 @@
--- $Id: functions.tlu 12 2017-05-17 18:07:47Z karl $
-- functions.tlu: general-use functions for texdoc
--
--- Manuel Pégourié-Gonnard, GPLv3+, see texdoclib.tlu for details
+-- Manuel Pégourié-Gonnard and the TeX Live team, GPLv3,
+-- see texdoclib.tlu for details
-- change '/' to '\' on windows
-- Use: internal representation of files always use forward slashes.
@@ -95,24 +95,6 @@ end
-- print a usage message, with the proper 'active values' line
function print_usage(actions)
local usage_msg = C.usage_msg
- -- get current settings
- local default, files = {}, {}
- for _, param in ipairs(C.usage_settings) do
- local display = param[config[param.name]]
- if config[param.name..'_src'] == 'def' then
- table.insert(default, display)
- elseif config[param.name..'_src'] == 'file' then
- table.insert(files, display)
- end
- end
- -- format and include them
- def = table.concat(default, ', ')
- conf = table.concat(files, ', ')
- if not (def == '') then def = def..' (default)' end
- if not (conf == '') then conf = conf..' (user config)' end
- local sep = (def == '' or conf == '') and '' or '; '
- local settings = C.usage_settings_ph..' '..def..sep..conf..'.'
- usage_msg = usage_msg:gsub(C.usage_settings_ph, settings)
-- include actions if any
if actions then
usage_msg = usage_msg:gsub(C.actions_ph,
@@ -132,3 +114,5 @@ return {
print_usage = print_usage,
path_parent = path_parent,
}
+
+-- vim: ft=lua: