• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
8cd
9pwd
10
11# Install depot_tools.
12if [ -d depot_tools ]; then
13  (cd depot_tools && git pull);
14else
15  git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git;
16fi
17export PATH=$PATH:$HOME/depot_tools
18
19# Install Go
20if [ -d go ]; then
21  echo Go already installed.
22else
23  wget https://go.googlecode.com/files/go1.2.1.linux-amd64.tar.gz
24  tar -xzf go1.2.1.linux-amd64.tar.gz
25fi
26export GOROOT=$HOME/go
27mkdir=$HOME/golib
28export GOPATH=$HOME/golib
29
30export PATH=$PATH:$GOROOT/bin
31
32mkdir /home/webtry/cache
33mkdir /home/webtry/inout
34chmod 777 /home/webtry/inout
35
36# 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# name of the codereview to use.
39
40# rm -rf skia
41
42# Checkout the skia code and dependencies.
43mkdir skia
44cd skia
45gclient config --name . https://skia.googlesource.com/skia.git
46gclient sync
47git checkout master
48
49# PATCH=issue196723021_100001.diff
50# rm $PATCH
51# wget https://codereview.chromium.org/download/$PATCH
52# git apply $PATCH
53
54GYP_GENERATORS=ninja ./gyp_skia gyp/webtry.gyp gyp/most.gyp -Dskia_gpu=0
55ninja -C out/Debug webtry
56
57cd experimental/webtry
58
59go get -d
60go build webtry.go
61