texlive[43968] Master/bin/win32/runscript.tlu: runscript.tlu support

commits+preining at tug.org commits+preining at tug.org
Sat Apr 22 01:24:18 CEST 2017


Revision: 43968
          http://tug.org/svn/texlive?view=revision&revision=43968
Author:   preining
Date:     2017-04-22 01:24:18 +0200 (Sat, 22 Apr 2017)
Log Message:
-----------
runscript.tlu support for -user scripts

Modified Paths:
--------------
    trunk/Master/bin/win32/runscript.tlu

Modified: trunk/Master/bin/win32/runscript.tlu
===================================================================
--- trunk/Master/bin/win32/runscript.tlu	2017-04-21 22:57:19 UTC (rev 43967)
+++ trunk/Master/bin/win32/runscript.tlu	2017-04-21 23:24:18 UTC (rev 43968)
@@ -255,6 +255,8 @@
     	- 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 @@
 -- 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 == '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)



More information about the tex-live-commits mailing list