Fix batch script

- Miscellaneous tweaks to satisfy the builders.

Change-Id: I4874eae7b5f5cbd52c32fd12bdf83abf4c2aadc9
This commit is contained in:
Rintaro Kuroiwa 2017-04-13 15:38:35 -07:00
parent 75a4b55b34
commit fe53cd0337
3 changed files with 14 additions and 16 deletions

View File

@ -3,27 +3,25 @@ set OUTPUT_DIRECTORY=Release_x64
set GYP_DEFINES=target_arch=x64 set GYP_DEFINES=target_arch=x64
set ROOTDIR=%cd% set ROOTDIR=%cd%
set PACKAGERDIR=%ROOTDIR%\git\packager set PACKAGERDIR=%ROOTDIR%\git\src
:: TODO(rkuroiwa): There are several `dir`s in this script to figure out the
:: directory structure created by the builder. Remove them.
dir
dir ..
:: TODO(rkuroiwa): Put this in a batch script and source it, so that this :: TODO(rkuroiwa): Put this in a batch script and source it, so that this
:: doesn't need to be copied for all configurations. :: doesn't need to be copied for all configurations.
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git ..\depot_tools\ git clone "https://chromium.googlesource.com/chromium/tools/depot_tools.git" depot_tools
set DEPOTTOOLSDIR=%ROOTDIR%\..\depot_tools set DEPOTTOOLSDIR=%ROOTDIR%\depot_tools
python %PACKAGERDIR%\kokoro\deps_replacer.py "github.com" "github.googlesource.com" python %PACKAGERDIR%\kokoro\deps_replacer.py "https://github.com" "https://github.googlesource.com"
cd %PACKAGERDIR%\.. cd %PACKAGERDIR%\..
dir
move packager src
%DEPOTTOOLSDIR%\gclient config https://github.com/google/shaka-packager.git --name=src --unmanaged :: Note that gclient file is a batch script, so 'call' must be used to wait for
%DEPOTTOOLSDIR%\gclient sync :: the result.
:: Also gclient turns off echo, so echo is re-enabled after the command.
call %DEPOTTOOLSDIR%\gclient config "https://github.com/google/shaka-packager.git" --name=src --unmanaged
echo on
call %DEPOTTOOLSDIR%\gclient sync
echo on
cd src cd src
%DEPOTTOOLSDIR%\ninja -C "out\%OUTPUT_DIRECTORY%" -k 100 %DEPOTTOOLSDIR%\ninja -C "out\%OUTPUT_DIRECTORY%" -k 100

View File

@ -1 +1 @@
build_file: "packager/kokoro/windows/x64/build.bat" build_file: "src/kokoro/windows/x64/build.bat"

View File

@ -1 +1 @@
build_file: "packager/kokoro/windows/x64/build.bat" build_file: "src/kokoro/windows/x64/build.bat"