aboutsummaryrefslogtreecommitdiff
path: root/install.bat
diff options
context:
space:
mode:
authorThijs Schreijer <thijs@thijsschreijer.nl>2013-09-20 06:51:22 -0700
committerThijs Schreijer <thijs@thijsschreijer.nl>2013-09-20 06:51:22 -0700
commitd9e8c2c6dc2da3651ad7d9d9723d799fec5ca28b (patch)
tree96a28b024ae9aba39eb1a9c8cd38d47fae872714 /install.bat
parent644c0b0e5155114f6acafbbe1a6ee198aa0fe319 (diff)
parentf06cddb131897e535131ee230ef9916ae453c8a7 (diff)
downloadluarocks-d9e8c2c6dc2da3651ad7d9d9723d799fec5ca28b.tar.gz
luarocks-d9e8c2c6dc2da3651ad7d9d9723d799fec5ca28b.tar.bz2
luarocks-d9e8c2c6dc2da3651ad7d9d9723d799fec5ca28b.zip
Merge pull request #145 from Tieske/move_win_binaries
moved windows binaries into a 'bin' subdirectory.
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