prerequise.sh 417 B

1234567891011121314151617181920
  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. tar xvfJ swig-3.0.12.tar.xz
  6. cd swig-3.0.12
  7. ./autogen.sh
  8. ./configure
  9. make
  10. sudo make install
  11. cd
  12. fi
  13. if ! grep "/usr/local/avr/bin" ~/.bashrc >/dev/null
  14. then
  15. echo "export PATH=XXXXPATH::/usr/local/avr/bin" >> ~/.bashrc
  16. sed -i -e "s/XXXX/$/g" ~/.bashrc
  17. source ~/.bashrc
  18. fi