summaryrefslogtreecommitdiff
path: root/Master/texmf/scripts/texdoc/main.tlu
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2010-04-02 22:24:10 +0000
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2010-04-02 22:24:10 +0000
commitfbfd5c86c705f4977a0b15dc7e2cd9611f76d5d0 (patch)
tree49cde3b7eb075ca3ec245a9fe95b689cc24faa51 /Master/texmf/scripts/texdoc/main.tlu
parent3cb2271bc67884876da9885429ca597d0f900098 (diff)
Experimental undocumented option --just-view for use with texdoctk.
git-svn-id: svn://tug.org/texlive/trunk@17656 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf/scripts/texdoc/main.tlu')
-rw-r--r--Master/texmf/scripts/texdoc/main.tlu7
1 files changed, 7 insertions, 0 deletions
diff --git a/Master/texmf/scripts/texdoc/main.tlu b/Master/texmf/scripts/texdoc/main.tlu
index 3b5d2851475..9fc20ae1182 100644
--- a/Master/texmf/scripts/texdoc/main.tlu
+++ b/Master/texmf/scripts/texdoc/main.tlu
@@ -11,6 +11,7 @@ load_env(L, {
'os', 'arg', 'print',
'setup_config_and_alias', 'init_databases', 'print_usage',
'get_doclist', 'deliver_results', 'aliased_names',
+ 'config', 'view_file',
})
-- get started
@@ -23,6 +24,12 @@ if not arg[1] then
os.exit(C.exit_usage)
end
+-- special case for just view
+if config.just_view then
+ local ok = view_file(arg[1])
+ os.exit(ok and C.exit_ok or C.exit_error)
+end
+
-- main loop
local docname
for _, docname in ipairs(arg) do