3 util_dir=$(dirname "$0")
5 if ! brew --version >/dev/null 2>&1; then
6 echo "Error! Homebrew not installed or broken!"
7 echo -n "Would you like to install homebrew now? [y/n] "
8 while read -r ANSWER; do
11 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
18 echo -n "Would you like to install homebrew now? [y/n] "
24 brew tap osx-cross/avr
25 brew tap PX4/homebrew-px4
27 brew install avr-gcc@8 gcc-arm-none-eabi dfu-programmer avrdude clang-format dfu-util python3
28 brew link --force avr-gcc@8
29 pip3 install -r "${util_dir}/../requirements.txt"