mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
Review URL: http://codereview.chromium.org/92087 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@14349 0039d316-1c4b-4281-b951-d872f2087c98
24 lines
745 B
Batchfile
24 lines
745 B
Batchfile
@echo off
|
|
|
|
|
|
@rem We're in a submodule directory, look relative to the parent.
|
|
call python "%cd%\..\third_party\scons\scons.py" "--site-dir=..\site_scons" %*
|
|
goto omega
|
|
|
|
:srcdir
|
|
call python "%cd%\third_party\scons\scons.py" --site-dir=site_scons %*
|
|
goto omega
|
|
|
|
@rem Per the following page:
|
|
@rem http://code-bear.com/bearlog/2007/06/01/getting-the-exit-code-from-a-batch-file-that-is-run-from-a-python-program/
|
|
@rem Just calling "exit /b" passes back an exit code, but in a way
|
|
@rem that does NOT get picked up correctly when executing the .bat
|
|
@rem file from the Python subprocess module. Using "call" as the
|
|
@rem last command in the .bat file makes it work as expected.
|
|
|
|
:returncode
|
|
exit /b %ERRORLEVEL%
|
|
|
|
:omega
|
|
call :returncode %ERRORLEVEL%
|