| 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 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 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 | 27 mkdir=$HOME/golib |
| 28 export GOPATH=$HOME/golib | 28 export GOPATH=$HOME/golib |
| 29 | 29 |
| 30 export PATH=$PATH:$GOROOT/bin | 30 export PATH=$PATH:$GOROOT/bin |
| 31 | 31 |
| 32 mkdir /home/webtry/cache | 32 mkdir /home/webtry/cache |
| 33 mkdir /home/webtry/cache/src |
| 33 mkdir /home/webtry/inout | 34 mkdir /home/webtry/inout |
| 34 chmod 777 /home/webtry/inout | 35 chmod 777 /home/webtry/inout |
| 35 | 36 |
| 36 # Sometimes you need to test patches on the server, to do that uncomment | 37 # Sometimes you need to test patches on the server, to do that uncomment |
| 37 # the following commented out lines and update the PATCH env variable to the | 38 # the following commented out lines and update the PATCH env variable to the |
| 38 # name of the codereview to use. | 39 # name of the codereview to use. |
| 39 | 40 |
| 40 # rm -rf skia | 41 # rm -rf skia |
| 41 | 42 |
| 42 # Checkout the skia code and dependencies. | 43 # Checkout the skia code and dependencies. |
| 43 mkdir skia | 44 mkdir skia |
| 44 cd skia | 45 cd skia |
| 45 gclient config --name . https://skia.googlesource.com/skia.git | 46 gclient config --name . https://skia.googlesource.com/skia.git |
| 46 gclient sync | 47 gclient sync |
| 47 git checkout master | 48 git checkout master |
| 48 | 49 |
| 49 # PATCH=issue196723021_100001.diff | 50 # PATCH=issue196723021_100001.diff |
| 50 # rm $PATCH | 51 # rm $PATCH |
| 51 # wget https://codereview.chromium.org/download/$PATCH | 52 # wget https://codereview.chromium.org/download/$PATCH |
| 52 # git apply $PATCH | 53 # git apply $PATCH |
| 53 | 54 |
| 54 GYP_GENERATORS=ninja ./gyp_skia gyp/webtry.gyp gyp/most.gyp -Dskia_gpu=0 | 55 GYP_GENERATORS=ninja ./gyp_skia gyp/webtry.gyp gyp/most.gyp -Dskia_gpu=0 |
| 55 ninja -C out/Debug webtry | 56 ninja -C out/Debug webtry |
| 56 | 57 |
| 57 cd experimental/webtry | 58 cd experimental/webtry |
| 58 | 59 |
| 59 go get -d | 60 go get -d |
| 60 go build webtry.go | 61 go build webtry.go |
| OLD | NEW |