1#! /bin/sh
2# Copyright 2018 Google LLC.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5set -xe
6set -- platform_tools/android/apps/skqp/src/main/assets/files.checksum       \
7       platform_tools/android/apps/skqp/src/main/assets/skqp/rendertests.txt \
8       platform_tools/android/apps/skqp/src/main/assets/skqp/unittests.txt
9for arg; do [ -f "$arg" ] || exit 1; done
10MSG="$(printf 'Cut SkQP %s\n\nNo-Try: true' "$(date +%Y-%m-%d)")"
11git merge -s ours origin/skqp/dev -m "$MSG"
12git add "$@"
13git commit --amend --reuse-message=HEAD
14