Set up accounts and balances
[uccvend-vagrant.git] / scripts / BuildAndInstall.sh
1 #!/bin/bash
2
3 # BuildAndInstall.sh
4
5 # This script will build the various bits of the UCC Vend infrastructure
6 # and run their install scripts
7
8 # error handling
9 abort()
10 {
11     echo >&2 '*** ABORTED ***'
12     echo "An error occurred. Exiting..." >&2
13     exit 1
14 }
15
16 trap 'abort' 0
17
18 set -e
19
20 # If an error occurs, the abort() function will be called.
21 #----------------------------------------------------------
22
23
24 CODEDIR=/vagrant/code
25
26 # build and install dispense
27
28 cd $CODEDIR/opendispense2/src
29
30 make
31 sudo make install
32
33 # build SNACKROM
34
35 cd $CODEDIR/uccvend-snackrom/ROM2
36
37 make
38
39 # vendserver 
40
41 cd $CODEDIR/uccvend-vendserver
42
43 python setup.py build
44 sudo python setup.py install
45
46 # virtualsnack
47 # virtualcoke
48
49 # for the moment, until these are changed to use setuptools, left
50 # in /vagrant/code
51
52 # Done!
53 trap : 0
54

UCC git Repository :: git.ucc.asn.au