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 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