gfx/harfbuzz/update.sh
author Mozilla Releng Treescript <release+treescript@mozilla.org>
Tue, 16 Apr 2019 16:58:17 +0000
changeset 523204 209a6a3d20cd4153af2639f29f8728ace9dea79f
parent 514115 872e8dd8bbd2e6f50123d5e4cfabcd00b2be10d7
child 526581 c6905df78251fb687c22bac8bc81f925dc69baa3
permissions -rwxr-xr-x
No bug - Tagging 3445cafb3544d9415a9151f1e0234f547f23ccb4 with FIREFOX_67_0b11_RELEASE a=release CLOSED TREE DONTBUILD

#!/bin/sh

# Script to update the mozilla in-tree copy of the HarfBuzz library.
# Run this within the /gfx/harfbuzz directory of the source tree.

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

VERSION=2.3.1

git clone https://github.com/harfbuzz/harfbuzz ${MY_TEMP_DIR}/harfbuzz
git -C ${MY_TEMP_DIR}/harfbuzz checkout ${VERSION}

COMMIT=$(git -C ${MY_TEMP_DIR}/harfbuzz rev-parse HEAD)
perl -p -i -e "s/(\d+\.)(\d+\.)(\d+)/${VERSION}/" README-mozilla;
perl -p -i -e "s/\[commit [0-9a-f]{40}\]/[commit ${COMMIT}]/" README-mozilla;

FILES="AUTHORS autogen.sh configure.ac COPYING git.mk harfbuzz.doap Makefile.am NEWS README.md src THANKS TODO"

for f in $FILES; do
	rm -rf $f
	mv ${MY_TEMP_DIR}/harfbuzz/$f $f
done
rm -rf src/hb-ucdn
rm -rf ${MY_TEMP_DIR}

hg revert -r . src/moz.build
hg addremove

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