blob: 634a1e299daa7bedb045ed595dabd612ca3e61dd [file] [log] [blame]
@echo off
:: This script bootstrap the go toolset and modifies an environment
:: of the calling shell to include correct GOPATH, GOBIN and so.
:: Unlike, this script can't be used as a wrapping command,
:: use for that (e.g. "python").
SET script_path=%~dp0
SET temp_script=%script_path%\_setup_env.cmd
:: This spits out a bunch of 'set VAR=VALUE' commands.
call vpython3 %script_path%\ > %temp_script%
:: This injects them into shell environment.
call %temp_script%
del %temp_script%
:: To avoid polluting env with crap.
set temp_script=
set script_path=