skia2/tools/get_skia_lkgr.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

24 lines
566 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.
# Outputs the Last Known Good Revision of Skia.
source gbash.sh || exit
set -x -e
# Retrieve last known good revision. (App-engine script is very flaky, so retry
# 10 times.)
LKGR=""
for i in `seq 1 10`; do
LKGR=$(curl "http://skia-tree-status-staging.appspot.com/lkgr")
if [[ ${#LKGR} -gt 4 ]]; then
break
fi
done
[[ ${#LKGR} -gt 4 ]] || gbash::die "Unable to get Skia LKGR (got '${LKGR}')"
echo "${LKGR}"