- add sources.
[platform/framework/web/crosswalk.git] / src / ozone / patches / patch-chromium.sh
1 #!/bin/sh
2
3 PATCH_DIR=`pwd`/src/ozone/patches/
4 HACKING_BRANCH=master-ozone
5
6 echo "Ozone-Wayland: patching Chromium"
7 cd src/
8
9 # we switch to $HACKING_BRANCH before anything
10 git checkout master
11
12 exists=`git show-ref refs/heads/$HACKING_BRANCH`
13 if [ -n "$exists" ]; then
14   git branch -D $HACKING_BRANCH
15 fi
16
17 git checkout -b $HACKING_BRANCH master
18 git am $PATCH_DIR/00*
19
20 # jump now to mesa dir and apply the needed patches there
21 cd third_party/mesa/src
22 git reset --hard origin/master
23 git am $PATCH_DIR/100*