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:
Tooru Fujisawa 2022-08-10 07:00:30 +00:00
parent 5522054cb3
commit 925004d845

View File

@ -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