texlive[46914] Master/bin/win32/runscript.tlu: search for scripts
commits+kakuto at tug.org
commits+kakuto at tug.org
Sat Mar 10 04:48:22 CET 2018
Revision: 46914
http://tug.org/svn/texlive?view=revision&revision=46914
Author: kakuto
Date: 2018-03-10 04:48:22 +0100 (Sat, 10 Mar 2018)
Log Message:
-----------
search for scripts only in the system tree in w32_wrapper, thanks to Joseph.
Modified Paths:
--------------
trunk/Master/bin/win32/runscript.tlu
Modified: trunk/Master/bin/win32/runscript.tlu
===================================================================
--- trunk/Master/bin/win32/runscript.tlu 2018-03-10 01:25:20 UTC (rev 46913)
+++ trunk/Master/bin/win32/runscript.tlu 2018-03-10 03:48:22 UTC (rev 46914)
@@ -683,9 +683,11 @@
-- general case
if not ARGV then
+ os.setenv('TEXMF', TEXMFDIST)
local extlist = '.tlu;.texlua;.lua;.pl;.rb;.py;.tcl;.jar;.vbs;.js;.bat;.cmd;\0'
local progfullname = search_path(progname, BINDIR, '.tlu;.bat;.cmd') or
assert(find_texmfscript(progname, extlist))
+ os.setenv('TEXMF', nil)
local ext = string.match(string.lower(progfullname), '%.[^\\/.]*$') or ''
if (ext == '.lua') or (ext == '.tlu') or (ext == '.texlua') then -- lua script
arg[0] = progfullname
More information about the tex-live-commits
mailing list