3 dir=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
4 download_dir=~/qmk_utils
5 avrtools=avr8-gnu-toolchain
7 echo "Installing dependencies needed for the installation (quazip)"
8 pacman --needed -S msys/unzip msys/p7zip
12 source "$dir/win_shared_install.sh"
14 function install_avr {
16 wget "http://www.atmel.com/images/avr8-gnu-toolchain-installer-3.5.4.91-win32.any.x86.exe"
17 7z x avr8-gnu-toolchain-installer-3.5.4.91-win32.any.x86.exe
18 rm avr8-gnu-toolchain-installer-3.5.4.91-win32.any.x86.exe
24 if [ ! -d "$avrtools" ]; then
27 echo "The AVR toolchain is not installed."
28 echo "This is needed for building AVR based keboards."
29 read -p "Do you want to install it? (Y/N) " res
31 [Yy]* ) install_avr; break;;
33 * ) echo "Invalid answer";;
39 echo "The AVR toolchain is already installed"
40 read -p "Do you want to reinstall? (Y/N) " res
42 [Yy]* ) install_avr; break;;
44 * ) echo "Invalid answer";;
51 echo "******************************************************************************"
52 echo "Installation completed!"
53 echo "You need to open a new batch command prompt for all the utils to work properly"
54 echo "******************************************************************************"