#!/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. set -e COUNT=40 BUCKET='skia-skqp' cd "$(dirname "$0")/../.." EXTANT="$(mktemp "${TMPDIR:-/tmp}/extant.XXXXXXXXXX")" gsutil ls "gs://$BUCKET" > $EXTANT cat << EOF SkQP Pre-built APKs

SkQP Pre-built APKs

EOF table() { printf '

%s

\n' "$*" printf '\n\n' for commit in $(git log "$@" -${COUNT} --format=%H) ; do short="$(git log -1 --format=%h $commit)" name="${BUCKET}/skqp-universal-${short}.apk" if ! grep -q "gs://$name" "$EXTANT"; then url='' else url="https://storage.googleapis.com/$name" fi date=$(TZ='' git log --date='format-local:%Y-%m-%d %H:%M:%S %Z' -1 $commit --format=%cd) subj=$(git log -1 $commit --format='%<(50,trunc)%s' | sed 's/ *$//') commit_url="https://skia.googlesource.com/skia/+/${commit}" if [ "$url" ]; then printf '\n\n' "$url" "$short" else printf '\n\n' "$short" fi printf '\n\n\n' "$date" "$commit_url" "$subj" done printf '
APKDateCommit
skqp-universal-%s.apk
%s%s%s
\n' } table "origin/skqp/release" "^origin/skqp/dev" table "origin/skqp/dev" printf '\n\n'