summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/texdoc/constants.tlu
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2013-01-05 19:38:39 +0000
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2013-01-05 19:38:39 +0000
commitdde48274b4fd37034b8e1ace42a44ac9b5cbe0f8 (patch)
treed68fca9386edb53aa202300b820c4e26c575fe25 /Master/texmf-dist/scripts/texdoc/constants.tlu
parent3c910165678f4accb5d4c161ed83a8e125ffb803 (diff)
texdoc 0.85 (compat with luatex 0.74.0 - lua 5.2)
git-svn-id: svn://tug.org/texlive/trunk@28738 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/texdoc/constants.tlu')
-rw-r--r--Master/texmf-dist/scripts/texdoc/constants.tlu20
1 files changed, 15 insertions, 5 deletions
diff --git a/Master/texmf-dist/scripts/texdoc/constants.tlu b/Master/texmf-dist/scripts/texdoc/constants.tlu
index 872a3ac7b93..02d608440da 100644
--- a/Master/texmf-dist/scripts/texdoc/constants.tlu
+++ b/Master/texmf-dist/scripts/texdoc/constants.tlu
@@ -6,15 +6,21 @@
local constants = {}
local kpse = kpse
local setfenv = setfenv
-local texdoc_env = getfenv()
-setfenv(1, constants)
+local texdoc_env
+if setfenv then
+ texdoc_env = getfenv()
+ setfenv(1, constants)
+else
+ texdoc_env = _ENV
+ _ENV = constants
+end
-- BEGIN constants
-- progname and version
fullname = kpse.find_file('texdoc/texdoclib', 'lua')
progname = 'texdoc'
-version = '0.84'
+version = '0.85'
-- make sure to update setup_config_from_cl() accordingly
-- and set a default value in setup_config_from_defaults() if relevant
@@ -48,7 +54,7 @@ Report bugs to <texdoc@tug.org>.
Full manual available via `texdoc texdoc'.]]
copyright_msg = [[
-Copyright (C) 2008-2011 Manuel P'egouri'e-Gonnard.
+Copyright (C) 2008-2013 Manuel P'egouri'e-Gonnard.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.]]
@@ -119,7 +125,11 @@ place_holder = '%%s' -- used for viewer commands
-- END constants
-- get our previous environment back
-setfenv(1, texdoc_env)
+if setfenv then
+ setfenv(1, texdoc_env)
+else
+ _ENV = texdoc_env
+end
-- Make global C a read-only proxy to the local <constants>.
-- Note this is not deep read-only: C.known_debugs is read-only, but