PKGBUILDs/extra/gn/chromium-gn-version.sh

9 lines
257 B
Bash
Raw Normal View History

2019-07-19 12:34:54 +00:00
#!/bin/bash
set -eo pipefail
2020-02-04 04:33:26 +00:00
chromium_version=${1:-$(curl -s https://omahaproxy.appspot.com/linux)}
2019-07-19 12:34:54 +00:00
2020-02-04 04:33:26 +00:00
curl -s https://chromium.googlesource.com/chromium/src/+/$chromium_version/DEPS?format=TEXT |
2019-07-19 12:34:54 +00:00
base64 -d | grep -Po "'gn_version': 'git_revision:\K[^']*"