diff options
| author | Daniel Lemos <xspager@gmail.com> | 2016-03-11 15:43:18 -0300 |
|---|---|---|
| committer | Daniel Lemos <xspager@gmail.com> | 2016-03-14 12:27:00 -0300 |
| commit | efec62b7a85dc492e2a34a35ee3e1f83e15face2 (patch) | |
| tree | fca8df4471dd924a0761373a38a72b1616e4877b /src | |
| parent | 6cf3159a9b71e58a055e359021174da958348e7a (diff) | |
| download | luarocks-efec62b7a85dc492e2a34a35ee3e1f83e15face2.tar.gz luarocks-efec62b7a85dc492e2a34a35ee3e1f83e15face2.tar.bz2 luarocks-efec62b7a85dc492e2a34a35ee3e1f83e15face2.zip | |
Add HaikuOS as platform
Diffstat (limited to 'src')
| -rw-r--r-- | src/luarocks/cfg.lua | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua index e41b632c..f4e50eff 100644 --- a/src/luarocks/cfg.lua +++ b/src/luarocks/cfg.lua | |||
| @@ -120,6 +120,9 @@ elseif system and system:match("^MINGW") then | |||
| 120 | cfg.platforms.windows = true | 120 | cfg.platforms.windows = true |
| 121 | cfg.platforms.mingw32 = true | 121 | cfg.platforms.mingw32 = true |
| 122 | cfg.platforms.win32 = true | 122 | cfg.platforms.win32 = true |
| 123 | elseif system == "Haiku" then | ||
| 124 | cfg.platforms.unix = true | ||
| 125 | cfg.platforms.haiku = true | ||
| 123 | else | 126 | else |
| 124 | cfg.platforms.unix = true | 127 | cfg.platforms.unix = true |
| 125 | -- Fall back to Unix in unknown systems. | 128 | -- Fall back to Unix in unknown systems. |
| @@ -137,11 +140,11 @@ local platform_order = { | |||
| 137 | linux = 7, | 140 | linux = 7, |
| 138 | macosx = 8, | 141 | macosx = 8, |
| 139 | cygwin = 9, | 142 | cygwin = 9, |
| 143 | haiku = 10, | ||
| 140 | -- Windows | 144 | -- Windows |
| 141 | win32 = 10, | 145 | win32 = 11, |
| 142 | mingw32 = 11, | 146 | mingw32 = 12, |
| 143 | windows = 12 } | 147 | windows = 13 } |
| 144 | |||
| 145 | 148 | ||
| 146 | -- Path configuration: | 149 | -- Path configuration: |
| 147 | local sys_config_file, home_config_file | 150 | local sys_config_file, home_config_file |
