Install curl in init.sh
This commit is contained in:
parent
54d5c85b48
commit
2d7ae598f0
|
@ -14,7 +14,6 @@ if [ "$HOST_OS" = "Win" ]; then
|
||||||
PYTHON="python2"
|
PYTHON="python2"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_detect curl
|
|
||||||
_detect $PYTHON
|
_detect $PYTHON
|
||||||
|
|
||||||
if [ "$HOST_OS" = "Linux" ]; then
|
if [ "$HOST_OS" = "Linux" ]; then
|
||||||
|
@ -61,7 +60,7 @@ if [ "$HOST_OS" = "Linux" ]; then
|
||||||
# detect apt-get
|
# detect apt-get
|
||||||
_detect apt-get
|
_detect apt-get
|
||||||
# apt-get install
|
# apt-get install
|
||||||
_install_deps "sudo apt-get install" build-essential cmake git clang-format
|
_install_deps "sudo apt-get install" build-essential curl cmake git clang-format
|
||||||
_install_deps "sudo apt-get install" libv4l-dev
|
_install_deps "sudo apt-get install" libv4l-dev
|
||||||
if ! _detect_cmd clang-format; then
|
if ! _detect_cmd clang-format; then
|
||||||
# on Ubuntu 14.04, apt-cache search clang-format
|
# on Ubuntu 14.04, apt-cache search clang-format
|
||||||
|
@ -75,11 +74,12 @@ elif [ "$HOST_OS" = "Mac" ]; then
|
||||||
# detect brew
|
# detect brew
|
||||||
if ! _detect_cmd brew; then
|
if ! _detect_cmd brew; then
|
||||||
_echo_sn "Install brew"
|
_echo_sn "Install brew"
|
||||||
|
_detect curl
|
||||||
_detect ruby
|
_detect ruby
|
||||||
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
||||||
fi
|
fi
|
||||||
# brew install
|
# brew install
|
||||||
_install_deps "brew install" cmake git clang-format
|
_install_deps "brew install" curl cmake git clang-format
|
||||||
# link clang-format-diff (if not compatible with Python 3, fix it by yourself)
|
# link clang-format-diff (if not compatible with Python 3, fix it by yourself)
|
||||||
[ -f "/usr/local/bin/clang-format-diff" ] || \
|
[ -f "/usr/local/bin/clang-format-diff" ] || \
|
||||||
ln -s /usr/local/share/clang/clang-format-diff.py /usr/local/bin/clang-format-diff
|
ln -s /usr/local/share/clang/clang-format-diff.py /usr/local/bin/clang-format-diff
|
||||||
|
@ -88,7 +88,7 @@ elif [ "$HOST_OS" = "Win" ]; then
|
||||||
# detect pacman on MSYS
|
# detect pacman on MSYS
|
||||||
_detect pacman
|
_detect pacman
|
||||||
# pacman install (common)
|
# pacman install (common)
|
||||||
_install_deps "pacman -S" git clang-format
|
_install_deps "pacman -S" curl git clang-format
|
||||||
if [ "$HOST_NAME" = "MINGW" ]; then
|
if [ "$HOST_NAME" = "MINGW" ]; then
|
||||||
# pacman install (MINGW)
|
# pacman install (MINGW)
|
||||||
_deps=()
|
_deps=()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user