| OLD | NEW |
| (Empty) |
| 1 #!/bin/bash | |
| 2 # | |
| 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 | |
| 5 # script. | |
| 6 # | |
| 7 # See the README file for detailed installation instructions. | |
| 8 cd | |
| 9 pwd | |
| 10 | |
| 11 # Install depot_tools. | |
| 12 if [ -d depot_tools ]; then | |
| 13 (cd depot_tools && git pull); | |
| 14 else | |
| 15 git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git; | |
| 16 fi | |
| 17 export PATH=$PATH:$HOME/depot_tools | |
| 18 | |
| 19 # Install Go | |
| 20 if [ -d go ]; then | |
| 21 echo Go already installed. | |
| 22 else | |
| 23 wget https://go.googlecode.com/files/go1.2.1.linux-amd64.tar.gz | |
| 24 tar -xzf go1.2.1.linux-amd64.tar.gz | |
| 25 fi | |
| 26 export GOROOT=$HOME/go | |
| 27 mkdir=$HOME/golib | |
| 28 export GOPATH=$HOME/golib | |
| 29 | |
| 30 export PATH=$PATH:$GOROOT/bin | |
| 31 | |
| 32 mkdir /home/webtry/cache | |
| 33 mkdir /home/webtry/cache/src | |
| 34 mkdir /home/webtry/inout | |
| 35 chmod 777 /home/webtry/inout | |
| 36 | |
| 37 # Sometimes you need to test patches on the server, to do that uncomment | |
| 38 # the following commented out lines and update the PATCH env variable to the | |
| 39 # name of the codereview to use. | |
| 40 | |
| 41 # rm -rf skia | |
| 42 | |
| 43 # Checkout the skia code and dependencies. | |
| 44 mkdir skia | |
| 45 cd skia | |
| 46 gclient config --name . https://skia.googlesource.com/skia.git | |
| 47 gclient sync | |
| 48 git checkout master | |
| 49 | |
| 50 # PATCH=issue196723021_100001.diff | |
| 51 # rm $PATCH | |
| 52 # wget https://codereview.chromium.org/download/$PATCH | |
| 53 # git apply $PATCH | |
| 54 | |
| 55 GYP_GENERATORS=ninja ./gyp_skia gyp/webtry.gyp gyp/most.gyp -Dskia_gpu=0 | |
| 56 ninja -C out/Release webtry | |
| 57 | |
| 58 cd experimental/webtry | |
| 59 | |
| 60 go get -d | |
| 61 ./build | |
| OLD | NEW |