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/.
6 echo "usage: ./sync.sh ots-git-directory"
10 echo "Updating LICENSE..."
13 echo "Updating src..."
15 ls | fgrep
-v moz.build |
xargs rm -rf
19 echo "Updating include..."
23 echo "Updating 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