diff options
| author | Philipp Janda <siffiejoe@gmx.net> | 2013-09-27 00:00:16 +0200 |
|---|---|---|
| committer | Philipp Janda <siffiejoe@gmx.net> | 2013-09-27 00:00:16 +0200 |
| commit | 0455050ffb17b0da1c614b8e34f8bf797467d520 (patch) | |
| tree | 0d3d8d756029e181dc62b19465d6fdb62885be19 | |
| parent | fc9d5bb39c677b8515c118cd74fb572e681023f1 (diff) | |
| parent | 99bf4199f2579a5e35dacb5da49b93e9769d18df (diff) | |
| download | luarocks-0455050ffb17b0da1c614b8e34f8bf797467d520.tar.gz luarocks-0455050ffb17b0da1c614b8e34f8bf797467d520.tar.bz2 luarocks-0455050ffb17b0da1c614b8e34f8bf797467d520.zip | |
Merge remote-tracking branch 'upstream/master' into linux-multiarch
| -rw-r--r-- | install.bat | 6 | ||||
| -rw-r--r-- | win32/bin/LuaRocks.reg.lua (renamed from win32/bin/create_reg_file.lua) | 0 |
2 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 |
diff --git a/win32/bin/create_reg_file.lua b/win32/bin/LuaRocks.reg.lua index 2eb7583a..2eb7583a 100644 --- a/win32/bin/create_reg_file.lua +++ b/win32/bin/LuaRocks.reg.lua | |||
