Bug 1341895 - Include most recent OTS tag allowing it to be tracked for automated release notifications. r=fredw
authorTom Ritter <tom@mozilla.com>
Wed, 22 Feb 2017 16:34:25 -0600
changeset 373658 9857d5421648084cc0fa32fc0e7154f6beb82b44
parent 373657 cd395be353188b5e4ff953502ac7ed951a5ade29
child 373659 fb79fab50a60eaf84a6a91772912beaec1ab1055
push id10863
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 23:02:23 +0000
treeherdermozilla-aurora@0931190cd725 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfredw
bugs1341895
milestone54.0a1
Bug 1341895 - Include most recent OTS tag allowing it to be tracked for automated release notifications. r=fredw MozReview-Commit-ID: KnZDJxWqjhI
gfx/ots/README.mozilla
gfx/ots/sync.sh
--- a/gfx/ots/README.mozilla
+++ b/gfx/ots/README.mozilla
@@ -1,11 +1,11 @@
 This is the Sanitiser for OpenType project, from http://code.google.com/p/ots/.
 
 Our reference repository is https://github.com/khaledhosny/ots/.
 
-Current revision: ba8417620956a920ed1f05a2f666fb6317fb10cb
+Current revision: ba8417620956a920ed1f05a2f666fb6317fb10cb (5.1.0)
 
 Upstream files included: LICENSE, src/, include/
 
 Additional files: README.mozilla, src/moz.build
 
 Additional patch: ots-visibility.patch (bug 711079).
--- a/gfx/ots/sync.sh
+++ b/gfx/ots/sync.sh
@@ -17,13 +17,14 @@ cp -r $1/src/* .
 cd ..
 
 echo "Updating include..."
 rm -rf include/
 cp -r $1/include .
 
 echo "Updating README.mozilla..."
 REVISION=`cd $1; git log | head -1 | sed "s/commit //"`
-sed -e "s/\(Current revision: \).*/\1$REVISION/" README.mozilla > README.tmp
+VERSION=`cd $1; git describe | cut -d '-' -f 1 | sed 's/v//'`
+sed -e "s/\(Current revision: \).*/\1$REVISION \($VERSION\)/" README.mozilla > README.tmp
 mv README.tmp README.mozilla
 
 echo "Applying ots-visibility.patch..."
 patch -p3 < ots-visibility.patch