mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 1595259 - Part 1: Use python3 in modules/fdlibm/update.sh. r=mgaudet
Differential Revision: https://phabricator.services.mozilla.com/D154077
This commit is contained in:
parent
5522054cb3
commit
925004d845
@ -9,11 +9,11 @@ API_BASE_URL=https://api.github.com/repos/freebsd/freebsd-src
|
||||
|
||||
get_commit() {
|
||||
curl -s "${API_BASE_URL}/commits?path=lib/msun/src&per_page=1" \
|
||||
| python -c 'import json, sys; print(json.loads(sys.stdin.read())[0]["sha"])'
|
||||
| python3 -c 'import json, sys; print(json.loads(sys.stdin.read())[0]["sha"])'
|
||||
}
|
||||
get_date() {
|
||||
curl -s "${API_BASE_URL}/commits/${COMMIT}" \
|
||||
| python -c 'import json, sys; print(json.loads(sys.stdin.read())["commit"]["committer"]["date"])'
|
||||
| python3 -c 'import json, sys; print(json.loads(sys.stdin.read())["commit"]["committer"]["date"])'
|
||||
}
|
||||
|
||||
mv ./src/moz.build ./src_moz.build
|
||||
|
Loading…
Reference in New Issue
Block a user