3 PATCH_DIR=`pwd`/src/ozone/patches/
4 HACKING_BRANCH=master-ozone
6 echo "Ozone-Wayland: patching Chromium"
9 # we switch to $HACKING_BRANCH before anything
12 exists=`git show-ref refs/heads/$HACKING_BRANCH`
13 if [ -n "$exists" ]; then
14 git branch -D $HACKING_BRANCH
17 git checkout -b $HACKING_BRANCH master
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*