skia2/tools/create_skia_google3_client.sh
benjaminwagner 787ca87b33 Add files added to Skia HEAD in google3 to the Git repo.
LICENSE is modified in google3 to mention some code copied from other projects.

BUG=skia:

Review URL: https://codereview.chromium.org/1291603003
2015-08-17 12:58:10 -07:00

25 lines
624 B
Bash
Executable File

#!/bin/bash
# Copyright 2014 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Create a google3 CitC client in which code can be submitted to either google3
# or Git.
#
# Usage:
# ./tools/create_skia_google3_client.sh <client_name>
source gbash.sh || exit
set -x -e
CLIENT="$1"
g4 citc "${CLIENT}"
cd "/google/src/cloud/${USER}/${CLIENT}/google3/third_party/skia/HEAD"
REV="$(cat README.google | grep -e "^Version" | sed "s/^Version: \(.*\)/\1/")"
MY_DIR="$(gbash::get_absolute_caller_dir)"
${MY_DIR}/git_clone_to_google3.sh --skia_rev "${REV}"