Subversion Repositories HomeAutomation

Rev

Rev 1779 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | SVN | RSS feed

  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.  
  31. echo -e "\n* ${CNT}. Compiling v8 for Atom, may take a while"
  32. CNT=$(expr $CNT + 1)
  33. cd PcSoftware/Atom/
  34. ./makeV8.sh
  35. cd ../..
  36. echo "Done"
  37.  
  38. echo -e "\n* ${CNT}. Compiling Atom, may take a while"
  39. CNT=$(expr $CNT + 1)
  40. cd PcSoftware/Atom/
  41. make
  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.  
  50.