Bug 1343336 - Include the upstream commit date in the fdlibm Mozilla README. r=bbouvier

MozReview-Commit-ID: 1tROG2vpdqH

--HG--
extra : rebase_source : ca7d55f294b6a20d0ff0ea702f9a1056799f7336
This commit is contained in:
Tom Ritter 2017-02-28 14:33:18 -06:00
Родитель 09cfc9d2fa
Коммит 336cc26b26
2 изменённых файлов: 7 добавлений и 2 удалений

Просмотреть файл

@ -11,7 +11,7 @@ The in-tree copy is updated by running
sh update.sh
from within the modules/fdlibm directory.
Current version: [commit f2287da07ac7a26ac08745cac66eec82ab9ba384].
Current version: [commit f2287da07ac7a26ac08745cac66eec82ab9ba384 (2016-09-04T12:01:32Z)].
patches 01-14 fixes files to be usable within mozilla-central tree.
See https://bugzilla.mozilla.org/show_bug.cgi?id=933257

Просмотреть файл

@ -11,6 +11,10 @@ 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"])'
}
get_date() {
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]["commit"]["committer"]["date"])'
}
mv ./src/moz.build ./src_moz.build
rm -rf src
@ -18,6 +22,7 @@ BEFORE_COMMIT=$(get_commit)
sh ./import.sh
mv ./src_moz.build ./src/moz.build
COMMIT=$(get_commit)
COMMITDATE=$(get_date)
if [ ${BEFORE_COMMIT} != ${COMMIT} ]; then
echo "Latest commit is changed during import. Please run again."
exit 1
@ -27,7 +32,7 @@ for FILE in $(ls patches/*.patch | sort); do
done
hg add src
perl -p -i -e "s/\[commit [0-9a-f]{40}\]/[commit ${COMMIT}]/" README.mozilla
perl -p -i -e "s/\[commit [0-9a-f]{40} \(.{1,100}\)\]/[commit ${COMMIT} (${COMMITDATE})]/" README.mozilla
echo "###"
echo "### Updated fdlibm/src to ${COMMIT}."