[New] Add OpenBSD support

master
Wu Jiang 2016-04-14 20:57:10 -04:00 committed by Jordan Harband
parent 5b3d188b83
commit a284af9228
No known key found for this signature in database
GPG Key ID: 9F6A681E35EF8B56
1 changed files with 5 additions and 1 deletions

6
nvm.sh
View File

@ -2316,7 +2316,7 @@ nvm_install_source() {
make='make'
local MAKE_CXX
case "${NVM_OS}" in
'freebsd')
'freebsd' | 'openbsd')
make='gmake'
MAKE_CXX="CC=${CC:-cc} CXX=${CXX:-c++}"
;;
@ -3273,6 +3273,10 @@ nvm() {
# node.js and io.js do not have a FreeBSD binary
nobinary=1
nvm_err "Currently, there is no binary for FreeBSD"
elif [ "_$NVM_OS" = "_openbsd" ]; then
# node.js and io.js do not have a OpenBSD binary
nobinary=1
nvm_err "Currently, there is no binary for OpenBSD"
elif [ "_${NVM_OS}" = "_sunos" ]; then
# Not all node/io.js versions have a Solaris binary
if ! nvm_has_solaris_binary "${VERSION}"; then