anchor.diff:  
   :DownloadFile
   rem parameters: TargetFileName Address
  +if NOT "x%HTTP_CLIENT%" == "x" (
  +    %HTTP_CLIENT% %1 %2
  +    goto EOF
  +)
  +wget >nul 2>&1
  +if NOT ERRORLEVEL 9009 (
  +    wget --no-check-certificate -O %1 %2
  +    goto EOF
  +)
  +curl >nul 2>&1
  +if NOT ERRORLEVEL 9009 (
  +    rem We set CURL_PROXY to a space character below to pose as a no-op argument
  +    set CURL_PROXY= 
  +    if NOT "x%HTTPS_PROXY%" == "x" set CURL_PROXY="-x %HTTPS_PROXY%"
  +    curl %CURL_PROXY% --insecure -f -L -o  %1 %2
  +    goto EOF
  +)
   powershell -? >nul 2>&1
   if NOT ERRORLEVEL 9009 (
       powershell -Command "& {param($a,$f) (new-object System.Net.WebClient).DownloadFile($a, $f)}" ""%2"" ""%1""
  -) else (
  -    wget >nul 2>&1
  -    if NOT ERRORLEVEL 9009 (
  -        wget --no-check-certificate -O %1 %2
  -    ) else (
  -        curl>nul 2>&1
  -        if ERRORLEVEL 9009 goto NO_HTTP_CLIENT
  -        curl --insecure -f -L -o  %1 %2
  -    )
  -)
  -
  -goto EOF
  +    goto EOF
  +)
  +goto NO_HTTP_CLIENT
   
   
   :NO_LEIN_JAR
  
positive.code: 
  setLocal EnableExtensions EnableDelayedExpansion
  
  set LEIN_VERSION=2.2.0
  
  if "%LEIN_VERSION:~-9%" == "-SNAPSHOT" (
      set SNAPSHOT=YES
  
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
  