Subversion Repositories HomeAutomation

Rev

Rev 1780 | Go to most recent revision | Details | 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
 
31
echo -e "\n* ${CNT}. Compiling Atom, may take a while"
32
CNT=$(expr $CNT + 1)
33
cd PcSoftware/Atom/
34
make
35
cd ../..
36
echo "Done"
37
 
38
echo -e "\n* ${CNT}. Creating atom.conf from atom.conf.template"
39
CNT=$(expr $CNT + 1)
40
cp -v PcSoftware/Atom/atom.conf.template PcSoftware/Atom/atom.conf
41
echo "Done"
42