summaryrefslogtreecommitdiff
path: root/third_party/freetype/roll-freetype.sh
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/freetype/roll-freetype.sh')
-rwxr-xr-xthird_party/freetype/roll-freetype.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/third_party/freetype/roll-freetype.sh b/third_party/freetype/roll-freetype.sh
index 0930a64847..e51a6a9fe2 100755
--- a/third_party/freetype/roll-freetype.sh
+++ b/third_party/freetype/roll-freetype.sh
@@ -14,7 +14,8 @@ FTVERSION=`git -C third_party/freetype/src/ describe --long`
FTCOMMIT=`git -C third_party/freetype/src/ rev-parse HEAD`
# Make sure our copy of pstables.h matches the one in freetype/src.
-cmp third_party/freetype/src/src/psnames/pstables.h \
+# May need to --bypass-hooks to prevent formatting of this file.
+cp third_party/freetype/src/src/psnames/pstables.h \
third_party/freetype/include/pstables.h
sed -i "s/^Version: .*\$/Version: ${FTVERSION%-*}/" \
@@ -23,4 +24,5 @@ sed -i "s/^Revision: .*\$/Revision: ${FTCOMMIT}/" \
third_party/freetype/README.pdfium
git add third_party/freetype/README.pdfium
+git add third_party/freetype/include/pstables.h
git commit --quiet --amend --no-edit