Copy luarocks.bat and luarocks-admin.bat into prefix/bin

This commit is contained in:
mpeterv 2016-03-28 20:40:22 +03:00
parent d6b1704a72
commit bf6026cb70
2 changed files with 12 additions and 5 deletions

View File

@ -19,8 +19,9 @@ before_build: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall
build_script: python hererocks.py here --%LUA% --luarocks ^^ --verbose build_script: python hererocks.py here --%LUA% --luarocks ^^ --verbose
test_script: test_script:
- here\bin\lua -v - PATH %CD%\here\bin;%PATH%
- here\LuaRocks\luarocks --version - lua -v
- here\LuaRocks\luarocks install lua-term 0.3 - luarocks --version
- here\LuaRocks\luarocks install busted - luarocks install lua-term 0.3
- here\bin\busted --version - luarocks install busted
- busted --version

View File

@ -898,7 +898,13 @@ class LuaRocks(Program):
# Since LuaRocks 2.1.2 # Since LuaRocks 2.1.2
if "/NOREG" in help_text: if "/NOREG" in help_text:
args += ["/NOREG", "/Q"] args += ["/NOREG", "/Q"]
run(args) run(args)
for script in ["luarocks.bat", "luarocks-admin.bat"]:
shutil.copy(
os.path.join(opts.location, "luarocks", script),
os.path.join(opts.location, "bin"))
else: else:
print("Building LuaRocks" + self.version_suffix) print("Building LuaRocks" + self.version_suffix)
run("./configure", "--prefix=" + opts.location, run("./configure", "--prefix=" + opts.location,