From 2a2d891141429ac3913b7730cf8620bc12988b6b Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Fri, 21 Apr 2017 23:24:18 +0000 Subject: runscript.tlu support for -user scripts git-svn-id: svn://tug.org/texlive/trunk@43968 c570f23f-e606-0410-a88d-b1316a301751 --- Master/bin/win32/runscript.tlu | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Master') 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) -- cgit v1.2.3