aboutsummaryrefslogtreecommitdiff
path: root/install.bat
diff options
context:
space:
mode:
Diffstat (limited to 'install.bat')
-rw-r--r--install.bat8
1 files changed, 4 insertions, 4 deletions
diff --git a/install.bat b/install.bat
index 15f26070..8222454e 100644
--- a/install.bat
+++ b/install.bat
@@ -44,12 +44,12 @@ local function exec(cmd)
44end 44end
45 45
46local function exists(filename) 46local function exists(filename)
47 local cmd = [[.\bin\test -e "]]..filename..[["]] 47 local cmd = [[.\bin\bin\test -e "]]..filename..[["]]
48 return exec(cmd) 48 return exec(cmd)
49end 49end
50 50
51local function mkdir (dir) 51local function mkdir (dir)
52 return exec([[.\bin\mkdir -p "]]..dir..[[" >NUL]]) 52 return exec([[.\bin\bin\mkdir -p "]]..dir..[[" >NUL]])
53end 53end
54 54
55-- interpolate string with values from 'vars' table 55-- interpolate string with values from 'vars' table
@@ -272,7 +272,7 @@ local function get_file_runtime(p,f) -- path, filename
272 local outfile = "output.txt" 272 local outfile = "output.txt"
273 local content 273 local content
274 -- analyze binary 274 -- analyze binary
275 if exec([[.\bin\objdump -x "]]..infile..[[" > ]]..outfile..[[ 2<&1]]) then 275 if exec([[.\bin\bin\objdump -x "]]..infile..[[" > ]]..outfile..[[ 2<&1]]) then
276 -- read temp file 276 -- read temp file
277 local fh = io.open(outfile) 277 local fh = io.open(outfile)
278 content = fh:read("*a") 278 content = fh:read("*a")
@@ -480,7 +480,7 @@ if INSTALL_LUA then
480end 480end
481 481
482-- Copy the LuaRocks binaries 482-- Copy the LuaRocks binaries
483if not exec(S[[COPY bin\*.* "$BINDIR" >NUL]]) then 483if not exec(S[[XCOPY /S bin\*.* "$BINDIR" >NUL]]) then
484 die() 484 die()
485end 485end
486-- Copy the LuaRocks lua source files 486-- Copy the LuaRocks lua source files