Bug 1753543 [wpt PR 32685] - Temporarily remove render-blocked-apis-by-stylesheed...
[gecko.git] / gfx / ots / sync.sh
blob162407af9accb7e2acd6e5dd79cbbd5168905267
1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 if [ $# = 0 ] ; then
6 echo "usage: ./sync.sh ots-git-directory"
7 exit 1
8 fi
10 echo "Updating LICENSE..."
11 cp $1/LICENSE .
13 echo "Updating src..."
14 cd src
15 ls | fgrep -v moz.build | xargs rm -rf
16 cp -r $1/src/* .
17 cd ..
19 echo "Updating include..."
20 rm -rf include/
21 cp -r $1/include .
23 echo "Updating tests..."
24 rm -rf tests/*
25 mkdir -p tests
26 cp -r $1/tests/*.cc tests
28 echo "Updating README.mozilla..."
29 REVISION=`cd $1; git log | head -1 | sed "s/commit //"`
30 VERSION=`cd $1; git describe | cut -d '-' -f 1 | sed 's/v//'`
31 sed -e "s/\(Current revision: \).*/\1$REVISION \($VERSION\)/" README.mozilla > README.tmp
32 mv README.tmp README.mozilla
34 echo "Applying ots-visibility.patch..."
35 patch -p3 < ots-visibility.patch
37 echo "Applying ots-lz4.patch..."
38 patch -p3 < ots-lz4.patch
40 echo "Applying ots-rlbox.patch..."
41 patch -p3 < ots-rlbox.patch