123456789101112131415161718192021222324252627282930313233343536 |
- #!/bin/bash
- # http://reprap.org/wiki/SimulAVR
- # (because I can't get the official SimulAVR at savannah to build a working executable)
- # Stop on errors
- set -e
- source avr-file-names
- TIME_START=$(date +%s)
- echo "Downloading sources..."
- rm -rf $NAME_SIMULAVR
- git clone https://github.com/Traumflug/simulavr.git $NAME_SIMULAVR
- # Make simulavr
- echo "Making simulavr in $NAME_SIMULAVR..."
- cd $NAME_SIMULAVR/
- git checkout traumflug
- ./bootstrap
- ./configure --enable-tcl --prefix=$PREFIX
- make
- sudo make install-strip
- cd ..
- TIME_END=$(date +%s)
- TIME_RUN=$(($TIME_END - $TIME_START))
- echo ""
- echo "Done in $TIME_RUN seconds"
- exit 0
|