From bf6026cb706fa797b4943badefefd4da2d7a453c Mon Sep 17 00:00:00 2001 From: mpeterv Date: Mon, 28 Mar 2016 20:40:22 +0300 Subject: [PATCH] Copy luarocks.bat and luarocks-admin.bat into prefix/bin --- appveyor.yml | 11 ++++++----- hererocks.py | 6 ++++++ 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 7587885..0637994 100644 --- a/appveyor.yml +++ b/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 diff --git a/hererocks.py b/hererocks.py index dec8af0..058e8f1 100755 --- a/hererocks.py +++ b/hererocks.py @@ -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,