#!/bin/bash wget -c http://wareck.free.fr/cross_compilation/avr_toolchain/avr_toolchain.tar.xz tar xvfJ avr_toolchain.tar.xz sudo cp -r avr /usr/local rm -r -f avr rm avr_toolchain.tar.xz if ! grep "/usr/local/avr/bin" ~/.bashrc >/dev/null then echo "export PATH=XXXXPATH::/usr/local/avr/bin" >> ~/.bashrc sed -i -e "s/XXXX/$/g" ~/.bashrc source ~/.bashrc fi echo "Done."