@echo off
setlocal
title Build slave
if not exist %~dp0..\..\depot_tools\. (
  echo You must put a copy of depot_tools in %~dp0..\depot_tools
  echo Did you read the instructions carefully??
  goto :EOF
)
set PATH=%~dp0..\..\depot_tools;%PATH%
:: Running it once will make sure svn and python were downloaded.
call gclient.bat > nul
:: run_slave.py will overwrite the PATH and PYTHONPATH environment variables.
python %~dp0\run_slave.py --no_save -y buildbot.tac %*

@echo off
setlocal
title Build slave
if not exist %~dp0..\..\depot_tools\. (
  echo You must put a copy of depot_tools in %~dp0..\depot_tools
  echo Did you read the instructions carefully??
  goto :EOF
)
set PATH=%~dp0..\..\depot_tools;%PATH%
cd /d %~dp0
:: Running it once will make sure svn and python were downloaded.
call gclient.bat > nul
:: run_slave.py will overwrite the PATH and PYTHONPATH environment variables.
python %~dp0\run_slave.py --no_save -y buildbot.tac %*

Fix auto-sync on start for Windows.
Fix auto-sync on start for Windows.

Otherwise it is run from the script's shortcut directory. A good example is when
a shortcut is used in the Startup Menu. So "gclient sync" fails.

R=nsylvain@chromium.org
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/10783034

git-svn-id: 239fca9b83025a0b6f823aeeca02ba5be3d9fd76@147030 0039d316-1c4b-4281-b951-d872f2087c98
