diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/luarocks/fs/netbsd.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/luarocks/fs/netbsd.lua b/src/luarocks/fs/netbsd.lua new file mode 100644 index 00000000..b9610339 --- /dev/null +++ b/src/luarocks/fs/netbsd.lua | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | --- NetBSD implementation of filesystem and platform abstractions. | ||
| 2 | local netbsd = {} | ||
| 3 | |||
| 4 | local fs = require("luarocks.fs") | ||
| 5 | |||
| 6 | function netbsd.init() | ||
| 7 | local uz=io.open("/usr/bin/unzip", "r") | ||
| 8 | if uz ~= nil then | ||
| 9 | io.close(uz) | ||
| 10 | fs.set_tool_available("unzip", true) | ||
| 11 | end | ||
| 12 | end | ||
| 13 | |||
| 14 | return netbsd | ||
