aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/skqp/make_model.sh
blob: 3946dd9e852698f22e78b1464c182e31e72e8ebd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/sh

# Copyright 2018 Google Inc.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

if ! [ -f "$1" ]; then
    printf 'Usage:\n  %s META_JSON_FILE_PATH\n\n' "$0" >&2
    exit 1
fi

set -e -x

SKIA="$(dirname "$0")/../.."

go get -u go.skia.org/infra/golden/go/search

go run "${SKIA}/tools/skqp/make_gmkb.go" "$1" \
    "${SKIA}/platform_tools/android/apps/skqp/src/main/assets/gmkb"