blob: 91c1bb1feb48bbc4c7bf538facad4477fcce4940 [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
benjaminwagner964eeba2015-10-20 13:00:48 -070013prodcertstatus -q || (echo "Please run prodaccess." 1>&2; exit 1)
14source gbash.sh || exit 2
benjaminwagner787ca872015-08-17 12:58:10 -070015
benjaminwagner964eeba2015-10-20 13:00:48 -070016set -e
benjaminwagner787ca872015-08-17 12:58:10 -070017
18CLIENT="$1"
19g4 citc "${CLIENT}"
20cd "/google/src/cloud/${USER}/${CLIENT}/google3/third_party/skia/HEAD"
21
22REV="$(cat README.google | grep -e "^Version" | sed "s/^Version: \(.*\)/\1/")"
23
24MY_DIR="$(gbash::get_absolute_caller_dir)"
25${MY_DIR}/git_clone_to_google3.sh --skia_rev "${REV}"
benjaminwagner964eeba2015-10-20 13:00:48 -070026
27echo "Created client ${CLIENT} synced to ${REV}"