diff options
Diffstat (limited to 'install.bat')
-rw-r--r-- | install.bat | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/install.bat b/install.bat index abf680a4..99dc7fa7 100644 --- a/install.bat +++ b/install.bat | |||
@@ -40,7 +40,7 @@ end | |||
40 | local function exec(cmd) | 40 | local function exec(cmd) |
41 | --print(cmd) | 41 | --print(cmd) |
42 | local status = os.execute(cmd) | 42 | local status = os.execute(cmd) |
43 | return status == 0 | 43 | return (status == 0 or status == true) -- compat 5.1/5.2 |
44 | end | 44 | end |
45 | 45 | ||
46 | local function exists(filename) | 46 | local function exists(filename) |
@@ -629,9 +629,11 @@ if REGISTRY then | |||
629 | -- expand template with correct path information | 629 | -- expand template with correct path information |
630 | print() | 630 | print() |
631 | print([[Loading registry information for ".rockspec" files]]) | 631 | print([[Loading registry information for ".rockspec" files]]) |
632 | exec( S[[lua5.1\bin\lua5.1.exe "$FULL_PREFIX\create_reg_file.lua" "$FULL_PREFIX\LuaRocks.reg.template"]] ) | 632 | exec( S[[lua5.1\bin\lua5.1.exe "$FULL_PREFIX\LuaRocks.reg.lua" "$FULL_PREFIX\LuaRocks.reg.template"]] ) |
633 | exec( S"$FULL_PREFIX\\LuaRocks.reg" ) | 633 | exec( S"$FULL_PREFIX\\LuaRocks.reg" ) |
634 | end | 634 | end |
635 | -- remove regsitry related files, no longer needed | ||
636 | exec( S[[del "$FULL_PREFIX\LuaRocks.reg.*" > nul]] ) | ||
635 | 637 | ||
636 | -- *********************************************************** | 638 | -- *********************************************************** |
637 | -- Exit handlers | 639 | -- Exit handlers |