prerequise.sh 498 B

123456789101112131415161718192021
  1. #!/bin/bash
  2. sudo apt-get install wget bzip2 texinfo flex babeltrace python expat bison tk-dev tcl-dev -y
  3. if ! [ -x "$(command -v swig)" ]
  4. then
  5. wget -c http://wareck.free.fr/cross_compilation/avr_toolchain/swig-3.0.12.tar.xz
  6. tar xvfJ swig-3.0.12.tar.xz
  7. cd swig-3.0.12
  8. ./autogen.sh
  9. ./configure
  10. make
  11. sudo make install
  12. cd
  13. fi
  14. if ! grep "/usr/local/avr/bin" ~/.bashrc >/dev/null
  15. then
  16. echo "export PATH=XXXXPATH::/usr/local/avr/bin" >> ~/.bashrc
  17. sed -i -e "s/XXXX/$/g" ~/.bashrc
  18. source ~/.bashrc
  19. fi