Copy luarocks.bat and luarocks-admin.bat into prefix/bin
This commit is contained in:
parent
d6b1704a72
commit
bf6026cb70
11
appveyor.yml
11
appveyor.yml
@ -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
|
||||
|
||||
test_script:
|
||||
- here\bin\lua -v
|
||||
- here\LuaRocks\luarocks --version
|
||||
- here\LuaRocks\luarocks install lua-term 0.3
|
||||
- here\LuaRocks\luarocks install busted
|
||||
- here\bin\busted --version
|
||||
- PATH %CD%\here\bin;%PATH%
|
||||
- lua -v
|
||||
- luarocks --version
|
||||
- luarocks install lua-term 0.3
|
||||
- luarocks install busted
|
||||
- busted --version
|
||||
|
||||
@ -898,7 +898,13 @@ class LuaRocks(Program):
|
||||
# Since LuaRocks 2.1.2
|
||||
if "/NOREG" in help_text:
|
||||
args += ["/NOREG", "/Q"]
|
||||
|
||||
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:
|
||||
print("Building LuaRocks" + self.version_suffix)
|
||||
run("./configure", "--prefix=" + opts.location,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user