blob: 8fbf4e25160e6c2d3bfd204f26e4242548fd7a8c [file] [log] [blame]
benjaminwagner787ca872015-08-17 12:58:10 -07001#!/bin/bash
2# Copyright 2014 Google Inc.
3#
4# Use of this source code is governed by a BSD-style license that can be
5# found in the LICENSE file.
6
7# Create a google3 CitC client in which code can be submitted to either google3
8# or Git.
9#
10# Usage:
11# ./tools/create_skia_google3_client.sh <client_name>
12
13source gbash.sh || exit
14
15set -x -e
16
17CLIENT="$1"
18g4 citc "${CLIENT}"
19cd "/google/src/cloud/${USER}/${CLIENT}/google3/third_party/skia/HEAD"
20
21REV="$(cat README.google | grep -e "^Version" | sed "s/^Version: \(.*\)/\1/")"
22
23MY_DIR="$(gbash::get_absolute_caller_dir)"
24${MY_DIR}/git_clone_to_google3.sh --skia_rev "${REV}"