]> Cypherpunks repositories - gostls13.git/commitdiff
all.bat,clean.bat,race.bat,run.bat: call some.bat with .\some.bat
authorYasuhiro Matsumoto <mattn.jp@gmail.com>
Thu, 12 May 2022 15:22:11 +0000 (00:22 +0900)
committerGopher Robot <gobot@golang.org>
Thu, 12 May 2022 16:59:17 +0000 (16:59 +0000)
When set NoDefaultCurrentDirectoryInExePath=1, call some.bat does not work.

Change-Id: Ifeab27ecf0d7ba1d504b755a22f73a0f13abbbb3
Reviewed-on: https://go-review.googlesource.com/c/go/+/405874
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
src/all.bat
src/clean.bat
src/race.bat
src/run.bat

index ae835d992f318d4440f2d8ffad0769e154e7ecf3..dfc83c8b26c197e70579bd613ff52da5ffd0d654 100644 (file)
@@ -13,9 +13,9 @@ goto end
 :ok\r
 \r
 set OLDPATH=%PATH%\r
-call make.bat --no-banner --no-local\r
+call .\make.bat --no-banner --no-local\r
 if %GOBUILDFAIL%==1 goto end\r
-call run.bat --no-rebuild --no-local\r
+call .\run.bat --no-rebuild --no-local\r
 if %GOBUILDFAIL%==1 goto end\r
 :: we must restore %PATH% before running "dist banner" so that the latter\r
 :: can get the original %PATH% and give suggestion to add %GOROOT%/bin\r
index c957353d0f10f5edfa1a4e833cb134e801f22820..6688b41e5e2c9d416235659a73f2aa0345ce1131 100644 (file)
@@ -10,7 +10,7 @@ set GOBUILDFAIL=0
 \r
 go tool dist env -w -p >env.bat\r
 if errorlevel 1 goto fail\r
-call env.bat\r
+call .\env.bat\r
 del env.bat\r
 echo.\r
 \r
index 8f0355612cb3f3d5b065ae41a3ea9a6a39fb60ca..d395e19f9741ddc2f8343ef932cdaf9bd6a59312 100644 (file)
@@ -16,11 +16,11 @@ goto end
 :ok\r
 \r
 set GOROOT=%CD%\..\r
-call make.bat --dist-tool >NUL\r
+call .\make.bat --dist-tool >NUL\r
 if errorlevel 1 goto fail\r
 .\cmd\dist\dist.exe env -w -p >env.bat\r
 if errorlevel 1 goto fail\r
-call env.bat\r
+call .\env.bat\r
 del env.bat\r
 \r
 if %GOHOSTARCH% == amd64 goto continue\r
@@ -28,7 +28,7 @@ echo Race detector is only supported on windows/amd64.
 goto fail\r
 \r
 :continue\r
-call make.bat --no-banner --no-local\r
+call .\make.bat --no-banner --no-local\r
 if %GOBUILDFAIL%==1 goto end\r
 echo # go install -race std\r
 go install -race std\r
index b4bab85a932b475125c883e82e2ba4251208f38e..74bf8a4d8d914bd9eb936aacdb5cf3de0cd3fbbc 100644 (file)
@@ -20,7 +20,7 @@ set GOBUILDFAIL=0
 \r
 ..\bin\go tool dist env > env.bat\r
 if errorlevel 1 goto fail\r
-call env.bat\r
+call .\env.bat\r
 del env.bat\r
 \r
 set GOPATH=c:\nonexist-gopath\r