diff options
Diffstat (limited to 'install.bat')
-rw-r--r-- | install.bat | 8 |
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) | |||
44 | end | 44 | end |
45 | 45 | ||
46 | local function exists(filename) | 46 | local 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) |
49 | end | 49 | end |
50 | 50 | ||
51 | local function mkdir (dir) | 51 | local function mkdir (dir) |
52 | return exec([[.\bin\mkdir -p "]]..dir..[[" >NUL]]) | 52 | return exec([[.\bin\bin\mkdir -p "]]..dir..[[" >NUL]]) |
53 | end | 53 | end |
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 | |||
480 | end | 480 | end |
481 | 481 | ||
482 | -- Copy the LuaRocks binaries | 482 | -- Copy the LuaRocks binaries |
483 | if not exec(S[[COPY bin\*.* "$BINDIR" >NUL]]) then | 483 | if not exec(S[[XCOPY /S bin\*.* "$BINDIR" >NUL]]) then |
484 | die() | 484 | die() |
485 | end | 485 | end |
486 | -- Copy the LuaRocks lua source files | 486 | -- Copy the LuaRocks lua source files |