3 # Script to update the webkit in-tree copy of the Brotli decompressor.
4 # Run this within the /Source/ThirdParty/brotli directory of the source tree.
6 MY_TEMP_DIR=`mktemp -d -t brotli_update.XXXXXX` || exit 1
8 git clone https://github.com/google/brotli ${MY_TEMP_DIR}/brotli
10 COMMIT=`(cd ${MY_TEMP_DIR}/brotli && git log | head -n 1)`
11 perl -p -i -e "s/\[commit [0-9a-f]{40}\]/[${COMMIT}]/" README.webkit;
14 mv ${MY_TEMP_DIR}/brotli/dec dec
18 echo "### Updated brotli/dec to $COMMIT."
19 echo "### Remember to verify and commit the changes to source control!"