db-move: moved gnome-weather from [staging] to [testing] (any)
[arch-packages.git] / gn / repos / extra-x86_64 / chromium-gn-version.sh
blobee40c6aef58b00eb37d034ca158199a939076226
1 #!/bin/bash
3 set -eo pipefail
5 readonly CURL='curl -s --compressed'
7 gn_revision_from_chrome_version() {
8 $CURL "https://chromium.googlesource.com/chromium/src/+/$1/DEPS?format=TEXT" \
9 | base64 -d | grep -Po "'gn_version': 'git_revision:\K[^']*"
13 echo channel version gn_revision
14 echo ------- ------- -----------
15 while read -r channel version; do
16 echo "$channel $version $(gn_revision_from_chrome_version "$version")"
17 done < <(
18 $CURL https://omahaproxy.appspot.com/json \
19 | jq -r '.[] | select ( .os == "linux" ) | .versions | .[] | "\(.channel) \(.version)"'
21 } | column -t