Hal Canary | 4080305 | 2018-01-22 16:51:55 -0500 | [diff] [blame] | 1 | #! /bin/sh |
Hal Canary | 23fda7a | 2018-01-23 09:22:38 +0000 | [diff] [blame] | 2 | |
Hal Canary | 4080305 | 2018-01-22 16:51:55 -0500 | [diff] [blame] | 3 | # Copyright 2018 Google Inc. |
| 4 | # Use of this source code is governed by a BSD-style license that can be |
| 5 | # found in the LICENSE file. |
| 6 | |
Hal Canary | 23fda7a | 2018-01-23 09:22:38 +0000 | [diff] [blame] | 7 | if ! [ -f "$1" ]; then |
| 8 | printf 'Usage:\n %s META_JSON_FILE_PATH\n\n' "$0" >&2 |
| 9 | exit 1 |
| 10 | fi |
| 11 | |
Hal Canary | 4080305 | 2018-01-22 16:51:55 -0500 | [diff] [blame] | 12 | set -e -x |
| 13 | |
Hal Canary | 23fda7a | 2018-01-23 09:22:38 +0000 | [diff] [blame] | 14 | SKIA="$(dirname "$0")/../.." |
Hal Canary | 4080305 | 2018-01-22 16:51:55 -0500 | [diff] [blame] | 15 | |
| 16 | go get -u go.skia.org/infra/golden/go/search |
| 17 | |
Hal Canary | 23fda7a | 2018-01-23 09:22:38 +0000 | [diff] [blame] | 18 | go run "${SKIA}/tools/skqp/make_gmkb.go" "$1" \ |
| 19 | "${SKIA}/platform_tools/android/apps/skqp/src/main/assets/gmkb" |
Hal Canary | 4080305 | 2018-01-22 16:51:55 -0500 | [diff] [blame] | 20 | |