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 | #!/bin/bash |
michael@0 | 2 | |
michael@0 | 3 | # Script used to update the Graphite2 library in the mozilla source tree |
michael@0 | 4 | |
michael@0 | 5 | # This script lives in gfx/graphite2, along with the library source, |
michael@0 | 6 | # but must be run from the top level of the mozilla-central tree. |
michael@0 | 7 | |
michael@0 | 8 | # It expects to find a checkout of the graphite2 tree in a directory "graphitedev" |
michael@0 | 9 | # alongside the current mozilla tree that is to be updated. |
michael@0 | 10 | # Expect error messages from the copy commands if this is not found! |
michael@0 | 11 | |
michael@0 | 12 | # copy the source and headers |
michael@0 | 13 | cp -R ../graphitedev/src/* gfx/graphite2/src |
michael@0 | 14 | cp ../graphitedev/include/graphite2/* gfx/graphite2/include/graphite2 |
michael@0 | 15 | |
michael@0 | 16 | # record the upstream changeset that was used |
michael@0 | 17 | CHANGESET=$(cd ../graphitedev/ && hg log | head -n 1 | cut -d : -f 1,3 | sed -e 's/:/ /') |
michael@0 | 18 | echo "This directory contains the Graphite2 library from http://hg.palaso.org/graphitedev\n" > gfx/graphite2/README.mozilla |
michael@0 | 19 | echo "Current version derived from upstream" $CHANGESET >> gfx/graphite2/README.mozilla |
michael@0 | 20 | echo "\nSee" $0 "for update procedure.\n" >> gfx/graphite2/README.mozilla |
michael@0 | 21 | |
michael@0 | 22 | # fix up includes because of bug 721839 (cstdio) and bug 803066 (Windows.h) |
michael@0 | 23 | find gfx/graphite2/ -name "*.cpp" -exec perl -p -i -e "s/<cstdio>/<stdio.h>/;s/Windows.h/windows.h/;" {} \; |
michael@0 | 24 | find gfx/graphite2/ -name "*.h" -exec perl -p -i -e "s/<cstdio>/<stdio.h>/;s/Windows.h/windows.h/;" {} \; |
michael@0 | 25 | |
michael@0 | 26 | # summarize what's been touched |
michael@0 | 27 | echo Updated to $CHANGESET. |
michael@0 | 28 | echo Here is what changed in the gfx/graphite2 directory: |
michael@0 | 29 | echo |
michael@0 | 30 | |
michael@0 | 31 | hg stat gfx/graphite2 |
michael@0 | 32 | |
michael@0 | 33 | echo |
michael@0 | 34 | echo If gfx/graphite2/src/files.mk has changed, please make corresponding |
michael@0 | 35 | echo changes to gfx/graphite2/src/moz.build |
michael@0 | 36 | echo |
michael@0 | 37 | |
michael@0 | 38 | echo |
michael@0 | 39 | echo Now use hg commands to create a patch for the mozilla tree. |
michael@0 | 40 | echo |