modules/woff2/update.sh
author Mike Hommey <mh+mozilla@glandium.org>
Wed, 19 Dec 2018 22:39:27 +0000
changeset 451415 38e6668872adc469653fb41d6ee4dd283fd17521
parent 405061 a35f1b78fd2ac5743dc8242f13b137a2d590b490
permissions -rwxr-xr-x
Bug 1515257 - Remove VPX_AS_CONVERSION. r=firefox-build-system-reviewers,ted There's only really one place where it's used, and we can "inline" it there. Depends on D14947 Differential Revision: https://phabricator.services.mozilla.com/D14948

#!/bin/sh

# Script to update the mozilla in-tree copy of the woff2 library.
# Run this within the /modules/woff2 directory of the source tree.

MY_TEMP_DIR=`mktemp -d -t woff2_update.XXXXXX` || exit 1

git clone https://github.com/google/woff2 ${MY_TEMP_DIR}/woff2

COMMIT=`(cd ${MY_TEMP_DIR}/woff2 && git log | head -n 1)`
perl -p -i -e "s/\[commit [0-9a-f]{40}\]/[${COMMIT}]/" README.mozilla;

rm -rf src
rm -rf include
mv ${MY_TEMP_DIR}/woff2/src src
mv ${MY_TEMP_DIR}/woff2/include include
rm -rf ${MY_TEMP_DIR}
hg add src
hg add include

echo "###"
echo "### Updated woff2 to $COMMIT."
echo "### Remember to verify and commit the changes to source control!"
echo "###"