github.com/geraldss/go/src@v0.0.0-20210511222824-ac7d0ebfc235/all.bat (about)

     1  :: Copyright 2012 The Go Authors. All rights reserved.
     2  :: Use of this source code is governed by a BSD-style
     3  :: license that can be found in the LICENSE file.
     4  
     5  @echo off
     6  
     7  setlocal
     8  
     9  if exist make.bat goto ok
    10  echo all.bat must be run from go\src
    11  :: cannot exit: would kill parent command interpreter
    12  goto end
    13  :ok
    14  
    15  set OLDPATH=%PATH%
    16  call make.bat --no-banner --no-local
    17  if %GOBUILDFAIL%==1 goto end
    18  call run.bat --no-rebuild --no-local
    19  if %GOBUILDFAIL%==1 goto end
    20  :: we must restore %PATH% before running "dist banner" so that the latter
    21  :: can get the original %PATH% and give suggestion to add %GOROOT%/bin
    22  :: to %PATH% if necessary.
    23  set PATH=%OLDPATH%
    24  "%GOTOOLDIR%/dist" banner
    25  
    26  :end
    27  if x%GOBUILDEXIT%==x1 exit %GOBUILDFAIL%