win32: use Windows's own MKDIR and RMDIR
parent
c3d13d216a
commit
0b15b5f450
|
@ -80,7 +80,7 @@ local function exists(filename)
|
|||
end
|
||||
|
||||
local function mkdir (dir)
|
||||
return exec([[.\win32\tools\mkdir -p "]]..dir..[[" >NUL]])
|
||||
return exec([[MKDIR "]]..dir..[[" >NUL]])
|
||||
end
|
||||
|
||||
-- does the current user have admin privileges ( = elevated)
|
||||
|
|
|
@ -762,7 +762,7 @@ function cfg.init(detected, warning)
|
|||
local defaults = make_defaults(cfg.lua_version, processor, platforms, cfg.home)
|
||||
|
||||
if platforms.windows and hardcoded.WIN_TOOLS then
|
||||
local tools = { "SEVENZ", "CP", "FIND", "LS", "MD5SUM", "PWD", "RMDIR", "WGET", "MKDIR" }
|
||||
local tools = { "SEVENZ", "CP", "FIND", "LS", "MD5SUM", "PWD", "WGET", }
|
||||
for _, tool in ipairs(tools) do
|
||||
defaults.variables[tool] = '"' .. hardcoded.WIN_TOOLS .. "/" .. defaults.variables[tool] .. '.exe"'
|
||||
end
|
||||
|
|
|
@ -4,8 +4,8 @@ following licenses:
|
|||
|
||||
* For 7z.exe and 7z.dll, please see COPYING_7z for details.
|
||||
|
||||
* find.exe, mv.exe, wget.exe, ls.exe, pwd.exe, rmdir.exe, md5sum.exe,
|
||||
cp.exe, mkdir.exe, and uname.exe are part of UnxUtils, check
|
||||
* find.exe, mv.exe, wget.exe, ls.exe, pwd.exe, md5sum.exe,
|
||||
cp.exe, and uname.exe are part of UnxUtils, check
|
||||
http://unxutils.sourceforge.net/ for license information.
|
||||
|
||||
* Files under win32/lua5.1, except for Microsoft.VC80.CRT.manifest and msv*.*,
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue