summaryrefslogtreecommitdiff
path: root/gfx/ots/sync.sh
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/ots/sync.sh')
-rwxr-xr-xgfx/ots/sync.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/gfx/ots/sync.sh b/gfx/ots/sync.sh
index 5a7e54b0a9..81738f9e1d 100755
--- a/gfx/ots/sync.sh
+++ b/gfx/ots/sync.sh
@@ -20,10 +20,19 @@ echo "Updating include..."
rm -rf include/
cp -r $1/include .
+echo "Updating tests..."
+rm -rf tests/*
+mkdir -p tests
+cp -r $1/tests/*.cc tests
+
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
+
+echo "Applying ots-lz4.patch..."
+patch -p3 < ots-lz4.patch