summaryrefslogtreecommitdiffstats
path: root/patches/update-and-patch-chromium.sh
blob: 1ba39068a018f2bdd0c2ddf273ec03b5768e10f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
# Script used temporarily to invoke gclient and apply our patches

if [ -z $CHROMIUM_SRC_DIR -o ! -d $CHROMIUM_SRC_DIR ]; then
    echo "CHROMIUM_SRC_DIR not set or pointing to a non existing directory."
    exit 1;
fi

PATCH_DIR=$PWD
DEPOT_TOOLS=$CHROMIUM_SRC_DIR/../depot_tools

cd $CHROMIUM_SRC_DIR
echo "Entering $PWD"
$DEPOT_TOOLS/gclient fetch
$DEPOT_TOOLS/gclient revert
$DEPOT_TOOLS/gclient sync

echo "Applying patches..."
git am $PATCH_DIR/0001-My-local-fixes.patch
git am $PATCH_DIR/0001-Temporary-patch-add-some-Qt-member-functions-to-Rend.patch
git am $PATCH_DIR/0001-remove-render_widget_host_view_gtk-and-web_contents_.patch

cd tools/gyp
echo "Entering $PWD"

git am $PATCH_DIR/0001-GYP-Fix-build-with-toplevel-dir.patch