#!/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. BRANCH="${1:-origin/skqp/dev}" COUNT="${2:-40}" DST=$(mktemp) cat > "$DST" << EOF SkQP Pre-built APKs

SkQP Pre-built APKs

EOF for commit in $(git log "$BRANCH" -${COUNT} -\-format=%H) ; do printf '.' >&2 short="$(git log -1 -\-format=%h $commit)" url="https://storage.googleapis.com/skia-skqp/skqp-universal-${short}.apk" if [ 200 -ne "$(curl -s -o /dev/null -w "%{http_code}" "$url")" ] ; then continue 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}" { printf '\n\n' "$url" "$short" printf '\n\n\n' "$date" "$commit_url" "$subj" } >> "$DST" done printf '\n\n' >> "$DST" echo echo 'gsutil -h "Content-Type:text/html" cp' \"$DST\" gs://skia-skqp/apklist echo 'https://storage.googleapis.com/skia-skqp/apklist'
APK Date Commit
skqp-universal-%s.apk%s%s