diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2016-03-14 22:46:42 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2016-03-14 22:46:42 -0300 |
commit | ab6802aeee0f22a7705161654074fb02e33c5bed (patch) | |
tree | fca8df4471dd924a0761373a38a72b1616e4877b | |
parent | 6cf3159a9b71e58a055e359021174da958348e7a (diff) | |
parent | efec62b7a85dc492e2a34a35ee3e1f83e15face2 (diff) | |
download | luarocks-ab6802aeee0f22a7705161654074fb02e33c5bed.tar.gz luarocks-ab6802aeee0f22a7705161654074fb02e33c5bed.tar.bz2 luarocks-ab6802aeee0f22a7705161654074fb02e33c5bed.zip |
Merge pull request #516 from xspager/add_haiku_plat
Add HaikuOS as platform
-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 |