modules/woff2/update.sh
author ffxbld
Tue, 23 Aug 2016 03:26:14 -0400
branchMOBILE490b6_2016082303_RELBRANCH
changeset 340420 689d36090ed15065d2f1af1b7fe007f53f531e99
parent 319390 b97b9546f96a0ab580e1f9320b2b9bd9048b63bb
child 342112 44aa3f86136bc06e7d1dc26cb7203deb3e10253c
permissions -rwxr-xr-x
Added FENNEC_49_0b6_RELEASE FENNEC_49_0b6_BUILD1 tag(s) for changeset 9bc813ab3e72. DONTBUILD CLOSED TREE a=release

#!/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
mv ${MY_TEMP_DIR}/woff2/src src
patch -p3 < redefine-unique_ptr.patch
rm -rf ${MY_TEMP_DIR}
hg add src

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