build-simulavr 632 B

123456789101112131415161718192021222324252627282930313233343536
  1. #!/bin/bash
  2. # http://reprap.org/wiki/SimulAVR
  3. # (because I can't get the official SimulAVR at savannah to build a working executable)
  4. # Stop on errors
  5. set -e
  6. source avr-file-names
  7. TIME_START=$(date +%s)
  8. echo "Downloading sources..."
  9. rm -rf $NAME_SIMULAVR
  10. git clone https://github.com/Traumflug/simulavr.git $NAME_SIMULAVR
  11. # Make simulavr
  12. echo "Making simulavr in $NAME_SIMULAVR..."
  13. cd $NAME_SIMULAVR/
  14. git checkout traumflug
  15. ./bootstrap
  16. ./configure --enable-tcl --prefix=$PREFIX
  17. make
  18. sudo make install-strip
  19. cd ..
  20. TIME_END=$(date +%s)
  21. TIME_RUN=$(($TIME_END - $TIME_START))
  22. echo ""
  23. echo "Done in $TIME_RUN seconds"
  24. exit 0