Change directory before applying patches

This commit is contained in:
Asher Baker 2019-01-13 13:05:38 +00:00
parent 53a6f29ab7
commit 3bdb0e6337
2 changed files with 10 additions and 2 deletions

View File

@ -26,8 +26,12 @@ cmd /c depot_tools\gclient sync --nohooks
@IF %errorlevel% neq 0 EXIT /b %errorlevel%
:DONESRC
git -C src am -3 ../../patches/*.patch
cd src
git config user.name patches
git config user.email patches@localhost
git am -3 ../../patches/*.patch
@IF %errorlevel% neq 0 EXIT /b %errorlevel%
cd ..
@IF EXIST gyp\NUL GOTO HASGYP
git clone --depth=1 --branch=master https://chromium.googlesource.com/external/gyp.git gyp

View File

@ -18,7 +18,11 @@ else
PYTHONDONTWRITEBYTECODE=1 python2.7 ./depot_tools/gclient.py sync --nohooks
fi
git -C src am -3 ../../patches/*.patch
cd src
git config user.name patches
git config user.email patches@localhost
git am -3 ../../patches/*.patch
cd ..
if [ ! -d "build" ]; then
mkdir build