diff options
| author | Thijs Schreijer <thijs@thijsschreijer.nl> | 2013-09-20 06:51:22 -0700 |
|---|---|---|
| committer | Thijs Schreijer <thijs@thijsschreijer.nl> | 2013-09-20 06:51:22 -0700 |
| commit | d9e8c2c6dc2da3651ad7d9d9723d799fec5ca28b (patch) | |
| tree | 96a28b024ae9aba39eb1a9c8cd38d47fae872714 /src | |
| parent | 644c0b0e5155114f6acafbbe1a6ee198aa0fe319 (diff) | |
| parent | f06cddb131897e535131ee230ef9916ae453c8a7 (diff) | |
| download | luarocks-d9e8c2c6dc2da3651ad7d9d9723d799fec5ca28b.tar.gz luarocks-d9e8c2c6dc2da3651ad7d9d9723d799fec5ca28b.tar.bz2 luarocks-d9e8c2c6dc2da3651ad7d9d9723d799fec5ca28b.zip | |
Merge pull request #145 from Tieske/move_win_binaries
moved windows binaries into a 'bin' subdirectory.
Diffstat (limited to 'src')
| -rw-r--r-- | src/luarocks/cfg.lua | 2 | ||||
| -rw-r--r-- | src/luarocks/fs/win32/tools.lua | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua index df1be2bb..62c69597 100644 --- a/src/luarocks/cfg.lua +++ b/src/luarocks/cfg.lua | |||
| @@ -296,7 +296,7 @@ if detected.windows then | |||
| 296 | "MKDIR", "MV", "PWD", "RMDIR", "RM", "TEST", "UNAME", "WGET" } | 296 | "MKDIR", "MV", "PWD", "RMDIR", "RM", "TEST", "UNAME", "WGET" } |
| 297 | for _, var in ipairs(bins) do | 297 | for _, var in ipairs(bins) do |
| 298 | if defaults.variables[var] then | 298 | if defaults.variables[var] then |
| 299 | defaults.variables[var] = full_prefix.."\\"..defaults.variables[var] | 299 | defaults.variables[var] = full_prefix.."\\bin\\"..defaults.variables[var] |
| 300 | end | 300 | end |
| 301 | end | 301 | end |
| 302 | 302 | ||
diff --git a/src/luarocks/fs/win32/tools.lua b/src/luarocks/fs/win32/tools.lua index 73798cbe..f60b8f5b 100644 --- a/src/luarocks/fs/win32/tools.lua +++ b/src/luarocks/fs/win32/tools.lua | |||
| @@ -107,6 +107,7 @@ end | |||
| 107 | -- @return boolean: true on success, false on failure. | 107 | -- @return boolean: true on success, false on failure. |
| 108 | function make_dir(directory) | 108 | function make_dir(directory) |
| 109 | assert(directory) | 109 | assert(directory) |
| 110 | directory = dir.normalize(directory) | ||
| 110 | fs.execute(fs.quiet(vars.MKDIR.." -p "..fs.Q(directory))) | 111 | fs.execute(fs.quiet(vars.MKDIR.." -p "..fs.Q(directory))) |
| 111 | if not fs.is_dir(directory) then | 112 | if not fs.is_dir(directory) then |
| 112 | return false, "failed making directory "..directory | 113 | return false, "failed making directory "..directory |
