anchor.diff:  :YES_UPGRADE
   echo Downloading latest Leiningen batch script...
   
  -set LEIN_BAT_URL=https://raw.github.com/technomancy/leiningen/stable/bin/lein.bat
  +set LEIN_BAT_URL=https://github.com/technomancy/leiningen/raw/%TARGET_VERSION%/bin/lein.bat
   set TEMP_BAT=%~dp0temp-lein-%RANDOM%%RANDOM%.bat
   call :DownloadFile "%LEIN_BAT%.pending" "%LEIN_BAT_URL%"
   if ERRORLEVEL 1 (
  
positive.code: :: LEIN_JAR and LEIN_HOME variables can be set manually.
  
  if "x%LEIN_HOME%" == "x" (
      set LEIN_HOME=%USERPROFILE%\.lein
  )
  
  if "x%LEIN_JAR%" == "x" set LEIN_JAR=!LEIN_HOME!\self-installs\leiningen-!LEIN_VERSION!-standalone.jar
  
  if "%1" == "self-install" goto SELF_INSTALL
  if "%1" == "upgrade"      goto UPGRADE
  	
  if exist "%~dp0..\src\leiningen\version.clj" (
      :: Running from source checkout.
  
negative.code: 
  :UPGRADE
  set LEIN_BAT=%~dp0%~nx0
  set TARGET_VERSION=%2
  if "x%2" == "x" set TARGET_VERSION=stable
  echo The script at %LEIN_BAT% will be upgraded to the latest %TARGET_VERSION% version.
  set /P ANSWER=Do you want to continue (Y/N)?
  if /i {%ANSWER%}=={y}   goto YES_UPGRADE
  if /i {%ANSWER%}=={yes} goto YES_UPGRADE
  