Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | # Usage: sh update.sh <upstream_src_directory> |
michael@0 | 2 | set -e |
michael@0 | 3 | echo "copy source from libvpx" |
michael@0 | 4 | |
michael@0 | 5 | cp $1/third_party/libmkv/EbmlBufferWriter.c . |
michael@0 | 6 | cp $1/third_party/libmkv/WebMElement.c . |
michael@0 | 7 | cp $1/third_party/libmkv/EbmlWriter.c . |
michael@0 | 8 | cp $1/third_party/libmkv/EbmlWriter.h . |
michael@0 | 9 | cp $1/third_party/libmkv/EbmlBufferWriter.h . |
michael@0 | 10 | cp $1/third_party/libmkv/WebMElement.h . |
michael@0 | 11 | cp $1/third_party/libmkv/EbmlIDs.h . |
michael@0 | 12 | |
michael@0 | 13 | cp $1/LICENSE . |
michael@0 | 14 | cp $1/README . |
michael@0 | 15 | cp $1/AUTHORS . |
michael@0 | 16 | if [ -d $1/.git ]; then |
michael@0 | 17 | rev=$(cd $1 && git rev-parse --verify HEAD) |
michael@0 | 18 | dirty=$(cd $1 && git diff-index --name-only HEAD) |
michael@0 | 19 | fi |
michael@0 | 20 | |
michael@0 | 21 | if [ -n "$rev" ]; then |
michael@0 | 22 | version=$rev |
michael@0 | 23 | if [ -n "$dirty" ]; then |
michael@0 | 24 | version=$version-dirty |
michael@0 | 25 | echo "WARNING: updating from a dirty git repository." |
michael@0 | 26 | fi |
michael@0 | 27 | sed -i.bak -e "/The git commit ID used was/ s/[0-9a-f]\{40\}\(-dirty\)\{0,1\}\./$version./" README_MOZILLA |
michael@0 | 28 | rm README_MOZILLA.bak |
michael@0 | 29 | else |
michael@0 | 30 | echo "Remember to update README_MOZILLA with the version details." |
michael@0 | 31 | fi |
michael@0 | 32 | |
michael@0 | 33 | # Apply any patches against upstream here. |
michael@0 | 34 | patch -p1 < source_fix.patch |
michael@0 | 35 | patch -p1 < gecko_fix.patch |
michael@0 | 36 | patch -p1 < const_fix.patch |
michael@0 | 37 | patch -p3 < bock_fix.patch |
michael@0 | 38 | patch -p3 < bug970774.patch |