OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # | 2 # |
3 # Don't execute this script directly, instead it is copied into the perf | 3 # Don't execute this script directly, instead it is copied into the perf |
4 # user's directory and executed as the user perf by the perf_setup.sh | 4 # user's directory and executed as the user perf by the perf_setup.sh |
5 # script. | 5 # script. |
6 # | 6 # |
7 # See the README file for detailed installation instructions. | 7 # See the README file for detailed installation instructions. |
8 cd | 8 cd |
9 pwd | 9 pwd |
10 | 10 |
11 # Install Go | 11 # Install Go |
12 if [ -d go ]; then | 12 if [ -d go ]; then |
13 echo Go already installed. | 13 echo Go already installed. |
14 else | 14 else |
15 wget https://go.googlecode.com/files/go1.2.1.linux-amd64.tar.gz | 15 wget https://go.googlecode.com/files/go1.2.1.linux-amd64.tar.gz |
16 tar -xzf go1.2.1.linux-amd64.tar.gz | 16 tar -xzf go1.2.1.linux-amd64.tar.gz |
17 fi | 17 fi |
18 | 18 |
19 | 19 |
20 if [ -d buildbot]; then | 20 if [ -d buildbot ]; then |
21 (cd buildbot && git pull); | 21 (cd buildbot && git pull); |
22 else | 22 else |
23 git clone https://skia.googlesource.com/buildbot | 23 git clone https://skia.googlesource.com/buildbot |
24 fi | 24 fi |
25 | 25 |
| 26 if [ -d skia ]; then |
| 27 (cd skia && git pull); |
| 28 else |
| 29 git clone https://skia.googlesource.com/skia |
| 30 fi |
| 31 |
26 mkdir=$HOME/golib | 32 mkdir=$HOME/golib |
27 export GOROOT=$HOME/go | 33 export GOROOT=$HOME/go |
28 export GOPATH=$HOME/golib | 34 export GOPATH=$HOME/golib |
29 export PATH=$PATH:$GOROOT/bin | 35 export PATH=$PATH:$GOROOT/bin |
30 | 36 |
31 cd ~/buildbot/perf/server | 37 cd ~/buildbot/perf/server |
32 go get -d | 38 go get -d |
33 go build perf.go | 39 go build -o perf |
OLD | NEW |