summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Preining <preining@logic.at>2017-04-21 23:24:18 +0000
committerNorbert Preining <preining@logic.at>2017-04-21 23:24:18 +0000
commit2a2d891141429ac3913b7730cf8620bc12988b6b (patch)
treeed61f0146c4b2da3389fc0edf0a170ae65f3d00a
parent8d08887d80d16e8d22313655e127d9b5922caa11 (diff)
runscript.tlu support for -user scripts
git-svn-id: svn://tug.org/texlive/trunk@43968 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-xMaster/bin/win32/runscript.tlu10
1 files changed, 10 insertions, 0 deletions
diff --git a/Master/bin/win32/runscript.tlu b/Master/bin/win32/runscript.tlu
index 14af8671f5f..fba67686175 100755
--- a/Master/bin/win32/runscript.tlu
+++ b/Master/bin/win32/runscript.tlu
@@ -255,6 +255,8 @@ local docstr = [[
- fix spurious arguments for updmap and fmtutil
2016/04/22
- Warning if external perl is requested but missing
+ 2017/04/22 (exactly one year later ;-)
+ - Cater for fmtutil-user and updmap-user => -user arg
]]
-- HELPER SUBROUTINES --
@@ -437,6 +439,10 @@ end
-- special case of sys programs
progname, substcount = string.gsub(progname, '%-sys$', '')
local sysprog = (substcount > 0) -- true if there was a -sys suffix removed
+-- special case of user programs
+-- we do not guard against programs foobar-user-sys ... we don't ship them
+progname, substcount = string.gsub(progname, '%-user$', '')
+local userprog = (substcount > 0) -- true if there was a -user suffix removed
-- prevent recursive calls to this script
assert(progname ~= 'runscript', "oops! wrapping the wrapper?")
@@ -589,10 +595,14 @@ elseif progname == 'a2ping' then
elseif progname == 'updmap' then
if sysprog then
argline = ' --sys ' .. argline
+ elseif userprog then
+ argline = ' --user ' .. argline
end
elseif progname == 'fmtutil' then
if sysprog then
argline = ' --sys ' .. argline
+ elseif userprog then
+ argline = ' --user ' .. argline
end
elseif progname == 'asy' then
os.setenv('ASYMPTOTE_GS', GSEXE)