1:: Copyright 2021 The Android Open Source Project 2:: 3:: Licensed under the Apache License, Version 2.0 (the "License"); 4:: you may not use this file except in compliance with the License. 5:: You may obtain a copy of the License at 6:: 7:: http://www.apache.org/licenses/LICENSE-2.0 8:: 9:: Unless required by applicable law or agreed to in writing, software 10:: distributed under the License is distributed on an "AS IS" BASIS, 11:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12:: See the License for the specific language governing permissions and 13:: limitations under the License. 14 15setlocal 16set TOP=%~dp0..\..\..\.. 17set PYTHON_SRC=%~dp0.. 18 19:: Remove Cygwin from the PATH so we use native tools (e.g. native Git). 20:: (It could leave Cygwin at the very end, but that's less of a problem.) 21set PATH=%PATH:C:\cygwin64\bin;=% 22 23IF NOT DEFINED KOKORO_BUILD_ID (set KOKORO_BUILD_ID=dev) 24 25call %~dp0build.cmd "%PYTHON_SRC%" "%TOP%\out\python3\artifact" 26if %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL% 27 28py -3 %TOP%\toolchain\ndk-kokoro\gen_manifest.py --root %TOP% ^ 29 -o %TOP%\out\python3\artifact\manifest-%KOKORO_BUILD_ID%.xml 30 31exit /b %ERRORLEVEL% 32