summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Pena <npm@chromium.org>2017-10-05 13:22:53 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-10-05 18:09:26 +0000
commitb5787481f77fc0a002a10c8047aad591a805f723 (patch)
tree150903d953b751a653d0fb1a270b136720374b01
parenta3742637f501306f0ec3ffec73dbda8f22790863 (diff)
downloadpdfium-b5787481f77fc0a002a10c8047aad591a805f723.tar.xz
Create FreeType roll script
Change-Id: Ie93f74b683d35e859cc0e3a1dd5899fb073d8864 Reviewed-on: https://pdfium-review.googlesource.com/15570 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Nicolás Peña Moreno <npm@chromium.org>
-rw-r--r--third_party/freetype/OWNERS3
-rw-r--r--third_party/freetype/README.pdfium2
-rwxr-xr-xthird_party/freetype/roll-freetype.sh7
3 files changed, 12 insertions, 0 deletions
diff --git a/third_party/freetype/OWNERS b/third_party/freetype/OWNERS
new file mode 100644
index 0000000000..2ed4210aad
--- /dev/null
+++ b/third_party/freetype/OWNERS
@@ -0,0 +1,3 @@
+dsinclair@chromium.org
+npm@chromium.org
+thestig@chromium.org
diff --git a/third_party/freetype/README.pdfium b/third_party/freetype/README.pdfium
index f6eb83797c..f8059246e3 100644
--- a/third_party/freetype/README.pdfium
+++ b/third_party/freetype/README.pdfium
@@ -12,3 +12,5 @@ FreeType library.
Local Modifications:
0000-include.patch: Modifications to configuration header files.
+
+Most of the updating can be automated will roll-freetype.sh.
diff --git a/third_party/freetype/roll-freetype.sh b/third_party/freetype/roll-freetype.sh
new file mode 100755
index 0000000000..12c656de28
--- /dev/null
+++ b/third_party/freetype/roll-freetype.sh
@@ -0,0 +1,7 @@
+REVIEWERS=`paste -s -d, third_party/freetype/OWNERS` &&
+roll-dep -r "${REVIEWERS}" "$@" pdfium/third_party/freetype/src/ &&
+FTVERSION=`git -C third_party/freetype/src/ describe --long` &&
+FTCOMMIT=`git -C third_party/freetype/src/ rev-parse HEAD` &&
+sed -i "s/^Version: .*\$/Version: ${FTVERSION%-*}/" third_party/freetype/README.pdfium &&
+sed -i "s/^Revision: .*\$/Revision: ${FTCOMMIT}/" third_party/freetype/README.pdfium &&
+git add third_party/freetype/README.pdfium && git commit --quiet --amend --no-edit