You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
569 B

  1. #!/bin/bash
  2. if ! brew --version 2>&1 > /dev/null; then
  3. echo "Error! Homebrew not installed or broken!"
  4. echo -n "Would you like to install homebrew now? [y/n] "
  5. while read ANSWER; do
  6. case $ANSWER in
  7. y|Y)
  8. /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  9. break
  10. ;;
  11. n|N)
  12. exit 1
  13. ;;
  14. *)
  15. echo -n "Would you like to install homebrew now? [y/n] "
  16. ;;
  17. esac
  18. done
  19. fi
  20. brew tap osx-cross/avr
  21. brew tap PX4/homebrew-px4
  22. brew update
  23. brew install avr-gcc gcc-arm-none-eabi dfu-programmer avrdude