summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)