| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # | 2 # |
| 3 # Don't execute this script directly, instead it is copied into the webtry | 3 # Don't execute this script directly, instead it is copied into the webtry |
| 4 # user's directory and executed as the user webtry by the webtry_setup.sh | 4 # user's directory and executed as the user webtry by the webtry_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 depot_tools. | 11 # Install depot_tools. |
| 12 if [ -d depot_tools ]; then | 12 if [ -d depot_tools ]; then |
| 13 (cd depot_tools && git pull); | 13 (cd depot_tools && git pull); |
| 14 else | 14 else |
| 15 git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git; | 15 git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git; |
| 16 fi | 16 fi |
| 17 export PATH=$PATH:$HOME/depot_tools | 17 export PATH=$PATH:$HOME/depot_tools |
| 18 | 18 |
| 19 # Install Go | 19 # Install Go |
| 20 if [ -d go ]; then | 20 if [ -d go ]; then |
| 21 echo Go already installed. | 21 echo Go already installed. |
| 22 else | 22 else |
| 23 wget https://go.googlecode.com/files/go1.2.1.linux-amd64.tar.gz | 23 wget https://go.googlecode.com/files/go1.2.1.linux-amd64.tar.gz |
| 24 tar -xzf go1.2.1.linux-amd64.tar.gz | 24 tar -xzf go1.2.1.linux-amd64.tar.gz |
| 25 fi | 25 fi |
| 26 export GOROOT=$HOME/go | 26 export GOROOT=$HOME/go |
| 27 mkdir=$HOME/golib |
| 28 export GOPATH=$HOME/golib |
| 29 |
| 27 export PATH=$PATH:$GOROOT/bin | 30 export PATH=$PATH:$GOROOT/bin |
| 28 | 31 |
| 29 mkdir /home/webtry/cache | 32 mkdir /home/webtry/cache |
| 30 mkdir /home/webtry/inout | 33 mkdir /home/webtry/inout |
| 31 chmod 777 /home/webtry/inout | 34 chmod 777 /home/webtry/inout |
| 32 | 35 |
| 33 # Sometimes you need to test patches on the server, to do that uncomment | 36 # Sometimes you need to test patches on the server, to do that uncomment |
| 34 # the following commented out lines and update the PATCH env variable to the | 37 # the following commented out lines and update the PATCH env variable to the |
| 35 # name of the codereview to use. | 38 # name of the codereview to use. |
| 36 | 39 |
| 37 # rm -rf skia | 40 # rm -rf skia |
| 38 | 41 |
| 39 # Checkout the skia code and dependencies. | 42 # Checkout the skia code and dependencies. |
| 40 mkdir skia | 43 mkdir skia |
| 41 cd skia | 44 cd skia |
| 42 gclient config --name . https://skia.googlesource.com/skia.git | 45 gclient config --name . https://skia.googlesource.com/skia.git |
| 43 gclient sync | 46 gclient sync |
| 44 git checkout master | 47 git checkout master |
| 45 | 48 |
| 46 # PATCH=issue196723021_100001.diff | 49 # PATCH=issue196723021_100001.diff |
| 47 # rm $PATCH | 50 # rm $PATCH |
| 48 # wget https://codereview.chromium.org/download/$PATCH | 51 # wget https://codereview.chromium.org/download/$PATCH |
| 49 # git apply $PATCH | 52 # git apply $PATCH |
| 50 | 53 |
| 51 GYP_GENERATORS=ninja ./gyp_skia gyp/webtry.gyp gyp/most.gyp -Dskia_gpu=0 | 54 GYP_GENERATORS=ninja ./gyp_skia gyp/webtry.gyp gyp/most.gyp -Dskia_gpu=0 |
| 52 ninja -C out/Debug webtry | 55 ninja -C out/Debug webtry |
| 53 | 56 |
| 54 cd experimental/webtry | 57 cd experimental/webtry |
| 55 | 58 |
| 59 go get github.com/go-sql-driver/mysql |
| 56 go build webtry.go | 60 go build webtry.go |
| OLD | NEW |