diff --git a/tools/skqp/make_apk_list b/tools/skqp/make_apk_list index 75f7a3c6b5..1cc25e475e 100755 --- a/tools/skqp/make_apk_list +++ b/tools/skqp/make_apk_list @@ -6,13 +6,12 @@ set -e -BRANCH="${1:-origin/skqp/dev}" -COUNT="${2:-40}" +COUNT=40 +BUCKET='skia-skqp' cd "$(dirname "$0")/../.." EXTANT="$(mktemp "${TMPDIR:-/tmp}/extant.XXXXXXXXXX")" -BUCKET='skia-skqp' gsutil ls "gs://$BUCKET" > $EXTANT cat << EOF @@ -34,25 +33,33 @@ td { padding:12px 6px; }

SkQP Pre-built APKs

- - - - - - EOF -for commit in $(git log "$BRANCH" -${COUNT} -\-format=%H) ; do - short="$(git log -1 -\-format=%h $commit)" - name="${BUCKET}/skqp-universal-${short}.apk" - if ! grep -q "gs://$name" "$EXTANT"; then - continue - fi - url="https://storage.googleapis.com/$name" - 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" -done -printf '\n\n' +table() { + printf '

%s

\n' "$*" + printf '
APKDateCommit
skqp-universal-%s.apk%s%s
\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'