From b5787481f77fc0a002a10c8047aad591a805f723 Mon Sep 17 00:00:00 2001 From: Nicolas Pena Date: Thu, 5 Oct 2017 13:22:53 -0400 Subject: Create FreeType roll script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ie93f74b683d35e859cc0e3a1dd5899fb073d8864 Reviewed-on: https://pdfium-review.googlesource.com/15570 Reviewed-by: dsinclair Commit-Queue: Nicolás Peña Moreno --- third_party/freetype/OWNERS | 3 +++ third_party/freetype/README.pdfium | 2 ++ third_party/freetype/roll-freetype.sh | 7 +++++++ 3 files changed, 12 insertions(+) create mode 100644 third_party/freetype/OWNERS create mode 100755 third_party/freetype/roll-freetype.sh 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 -- cgit v1.2.3