summaryrefslogtreecommitdiff
path: root/third_party/freetype/roll-freetype.sh
blob: 0930a6484780d8a7e5e74aef72e54edc86a62122 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
#
# Copyright 2017 The PDFium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

set -e
set -o pipefail
set -u

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`

# Make sure our copy of pstables.h matches the one in freetype/src.
cmp third_party/freetype/src/src/psnames/pstables.h \
  third_party/freetype/include/pstables.h

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