Upstream version 10.39.225.0
[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 HACKING_OZONE_BRANCH=master-ozonewayland
6 RELEASE_BRANCH=branch_2171
7 RELEASE_OZONE_BRANCH=Milestone-Autumn
8
9 echo "Ozone-Wayland: patching Chromium"
10 cd src/
11
12 # we switch to $HACKING_BRANCH before anything
13 git checkout $RELEASE_BRANCH
14
15 exists=`git show-ref refs/heads/$HACKING_BRANCH`
16 if [ -n "$exists" ]; then
17   git branch -D $HACKING_BRANCH
18 fi
19
20 git checkout -b $HACKING_BRANCH $RELEASE_BRANCH
21
22 cd ozone/
23 git checkout $RELEASE_OZONE_BRANCH
24 exists=`git show-ref refs/heads/$HACKING_OZONE_BRANCH`
25 if [ -n "$exists" ]; then
26   git branch -D $HACKING_OZONE_BRANCH
27 fi
28 git checkout -b $HACKING_OZONE_BRANCH $RELEASE_OZONE_BRANCH
29 cd ..
30 git am $PATCH_DIR/00*
31