Rev 1780 | Details | Compare with Previous | Last modification | View Log | SVN | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1336 | arune | 1 | #!/bin/bash |
| 2 | |||
| 3 | # |
||
| 4 | # This is a script that installs needed software and initiates default configs |
||
| 5 | # Prerequisites: SVN repos 'HomeAutomation' downloaded and running srript from folder 'trunk' |
||
| 6 | # See more at http://projekt.auml.se/homeautomation:guides:getting_started_with_starterkit |
||
| 7 | |||
| 8 | # Make script exit if any command fails |
||
| 9 | set +e |
||
| 10 | |||
| 11 | # Have a counter displayed at each step |
||
| 12 | CNT=1 |
||
| 13 | |||
| 14 | echo -e "* ${CNT}. Installing gcc-avr avr-libc mono-gmcs libdevice-serialport-perl scons build-essential" |
||
| 15 | CNT=$(expr $CNT + 1) |
||
| 16 | sudo apt-get install gcc-avr avr-libc mono-gmcs libdevice-serialport-perl scons build-essential |
||
| 17 | echo "Done" |
||
| 18 | |||
| 19 | echo -e "\n* ${CNT}. Compiling canDude" |
||
| 20 | CNT=$(expr $CNT + 1) |
||
| 21 | cd PcSoftware/canDude/ |
||
| 22 | make |
||
| 23 | cd ../.. |
||
| 24 | echo "Done" |
||
| 25 | |||
| 26 | echo -e "\n* ${CNT}. Creating system.inc from system.inc.template" |
||
| 27 | CNT=$(expr $CNT + 1) |
||
| 28 | cp -v EmbeddedSoftware/AVR/personal/system.inc.template EmbeddedSoftware/AVR/personal/system.inc |
||
| 29 | echo "Done" |
||
| 30 | |||
| 1779 | arune | 31 | echo -e "\n* ${CNT}. Compiling v8 for Atom, may take a while" |
| 32 | CNT=$(expr $CNT + 1) |
||
| 33 | cd PcSoftware/Atom/ |
||
| 1780 | arune | 34 | ./makeV8.sh |
| 1779 | arune | 35 | cd ../.. |
| 36 | echo "Done" |
||
| 37 | |||
| 1336 | arune | 38 | echo -e "\n* ${CNT}. Compiling Atom, may take a while" |
| 39 | CNT=$(expr $CNT + 1) |
||
| 40 | cd PcSoftware/Atom/ |
||
| 1783 | arune | 41 | make CONF=Release |
| 1336 | arune | 42 | cd ../.. |
| 43 | echo "Done" |
||
| 44 | |||
| 45 | echo -e "\n* ${CNT}. Creating atom.conf from atom.conf.template" |
||
| 46 | CNT=$(expr $CNT + 1) |
||
| 47 | cp -v PcSoftware/Atom/atom.conf.template PcSoftware/Atom/atom.conf |
||
| 48 | echo "Done" |
||
| 49 |