Text file src/all.bat

Documentation: Index

     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@echo off
     5
     6setlocal
     7
     8if exist make.bat goto ok
     9echo all.bat must be run from go\src
    10:: cannot exit: would kill parent command interpreter
    11goto end
    12:ok
    13
    14set OLDPATH=%PATH%
    15call make.bat --no-banner --no-local
    16if %GOBUILDFAIL%==1 goto end
    17call run.bat --no-rebuild --no-local
    18if %GOBUILDFAIL%==1 goto end
    19:: we must restore %PATH% before running "dist banner" so that the latter
    20:: can get the original %PATH% and give suggestion to add %GOROOT%/bin
    21:: to %PATH% if necessary.
    22set PATH=%OLDPATH%
    23"%GOTOOLDIR%/dist" banner
    24
    25:end
    26if x%GOBUILDEXIT%==x1 exit %GOBUILDFAIL%

View as plain text