Bumping manifests a=b2g-bump
[gecko.git] / gfx / ots / sync.sh
blob8598303029ff31f163570613386ba8ae20c63eef
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 README.mozilla..."
24 REVISION=`cd $1; git log | head -1 | sed "s/commit //"`
25 sed -e "s/\(Current revision: \).*/\1$REVISION/" -i "" README.mozilla
27 echo "Applying ots-visibility.patch..."
28 patch -p3 < ots-visibility.patch
30 echo "Applying ots-brotli-path.patch..."
31 patch -p3 < ots-brotli-path.patch