clean.bat raw

   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  go tool dist env -w -p >env.bat || exit /b 1
  10  call .\env.bat
  11  del env.bat
  12  echo.
  13  
  14  if not exist %GOTOOLDIR%\dist.exe (
  15      echo cannot find %GOTOOLDIR%\dist.exe; nothing to clean
  16      exit /b 1
  17  )
  18  
  19  "%GOBIN%\go" clean -i std
  20  "%GOBIN%\go" tool dist clean
  21  "%GOBIN%\go" clean -i cmd
  22