* update gn to 0.1891.dfcbc6fe-1

This commit is contained in:
Alexander Baldeck 2021-04-26 10:10:46 +02:00
parent 040d27468a
commit 6f9de76039
2 changed files with 18 additions and 5 deletions

View File

@ -2,8 +2,8 @@
# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
pkgname=gn
pkgver=0.1877.595e3be7
_commit=595e3be7c8381d4eeefce62a63ec12bae9ce5140
pkgver=0.1891.dfcbc6fe
_commit=dfcbc6fed0a8352696f92d67ccad54048ad182b3
pkgrel=1
pkgdesc="Meta-build system that generates build files for Ninja"
arch=(x86_64 powerpc64le)

View File

@ -2,7 +2,20 @@
set -eo pipefail
chromium_version=${1:-$(curl -s https://omahaproxy.appspot.com/linux)}
readonly CURL='curl -s --compressed'
curl -s https://chromium.googlesource.com/chromium/src/+/$chromium_version/DEPS?format=TEXT |
base64 -d | grep -Po "'gn_version': 'git_revision:\K[^']*"
gn_revision_from_chrome_version() {
$CURL "https://chromium.googlesource.com/chromium/src/+/$1/DEPS?format=TEXT" \
| base64 -d | grep -Po "'gn_version': 'git_revision:\K[^']*"
}
{
echo channel version gn_revision
echo ------- ------- -----------
while read -r channel version; do
echo "$channel $version $(gn_revision_from_chrome_version "$version")"
done < <(
$CURL https://omahaproxy.appspot.com/json \
| jq -r '.[] | select ( .os == "linux" ) | .versions | .[] | "\(.channel) \(.version)"'
)
} | column -t