skia2/tools/create_skia_google3_client.sh
benjaminwagner 964eebae2d Include resources directory in google3 sync.
Also other minor improvements in sync scripts.

In BUILD.public, include all files under resources as data dependencies for DM. Omit newly failing DM tests and add newly passing DM tests.

Adds the OpenClipart "license" to LICENSE per comment in google3 CL 100158380.

Corresponding google3 CL is 105602927.

BUG=skia:

Review URL: https://codereview.chromium.org/1406283002
2015-10-20 13:00:48 -07:00

28 lines
739 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>
prodcertstatus -q || (echo "Please run prodaccess." 1>&2; exit 1)
source gbash.sh || exit 2
set -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}"
echo "Created client ${CLIENT} synced to ${REV}"