anchor.diff:  pause
   echo.
   echo Downloading mingw packages
  -%PKTH_OldDir%\third_party_apps\curl -O http://%SOURCEFORGE_MIRROR%.sourceforge.net/sourceforge/tdm-gcc/gcc-4.3.3-tdm-1-dw2-core.tar.gz -O http://%SOURCEFORGE_MIRROR%.sourceforge.net/sourceforge/tdm-gcc/gcc-4.3.3-tdm-1-dw2-g++.tar.gz -O http://%SOURCEFORGE_MIRROR%.sourceforge.net/sourceforge/mingw/binutils-2.19.1-mingw32-bin.tar.gz -O http://%SOURCEFORGE_MIRROR%.sourceforge.net/sourceforge/mingw/mingwrt-3.15.2-mingw32-dev.tar.gz -O http://%SOURCEFORGE_MIRROR%.sourceforge.net/sourceforge/mingw/mingwrt-3.15.2-mingw32-dll.tar.gz -O http://%SOURCEFORGE_MIRROR%.sourceforge.net/sourceforge/mingw/w32api-3.11.tar.gz -O http://%SOURCEFORGE_MIRROR%.sourceforge.net/sourceforge/mingw/mingw32-make-3.81-20080326-3.tar.gz -O http://%SOURCEFORGE_MIRROR%.sourceforge.net/sourceforge/mingw/mingw-utils-0.3.tar.gz
  +%PKTH_OldDir%\third_party_apps\curl -O http://%SOURCEFORGE_MIRROR%.sourceforge.net/sourceforge/tdm-gcc/gcc-4.4.0-tdm-1-dw2-core-2.tar.gz -O http://%SOURCEFORGE_MIRROR%.sourceforge.net/sourceforge/tdm-gcc/gcc-4.4.0-tdm-1-dw2-g++-2.tar.gz -O http://%SOURCEFORGE_MIRROR%.sourceforge.net/sourceforge/mingw/binutils-2.19.1-mingw32-bin.tar.gz -O http://%SOURCEFORGE_MIRROR%.sourceforge.net/sourceforge/mingw/mingwrt-3.15.2-mingw32-dev.tar.gz -O http://%SOURCEFORGE_MIRROR%.sourceforge.net/sourceforge/mingw/mingwrt-3.15.2-mingw32-dll.tar.gz -O http://%SOURCEFORGE_MIRROR%.sourceforge.net/sourceforge/mingw/w32api-3.13-mingw32-dev.tar.gz -O http://%SOURCEFORGE_MIRROR%.sourceforge.net/sourceforge/mingw/mingw32-make-3.81-20080326-3.tar.gz -O http://%SOURCEFORGE_MIRROR%.sourceforge.net/sourceforge/mingw/mingw-utils-0.3.tar.gz
   if not errorlevel 0 goto downloadFailed
   echo.
   echo Unpacking mingw packages
   mkdir mingw
  -%PKTH_OldDir%\third_party_apps\7za x -y gcc-4.3.3-tdm-1-dw2-core.tar.gz
  -%PKTH_OldDir%\third_party_apps\7za x -y -omingw gcc-4.3.3-tdm-1-dw2-core.tar
  -del gcc-4.3.3-tdm-1-core.tar
  -%PKTH_OldDir%\third_party_apps\7za x -y gcc-4.3.3-tdm-1-dw2-g++.tar.gz
  -%PKTH_OldDir%\third_party_apps\7za x -y -omingw gcc-4.3.3-tdm-1-dw2-g++.tar
  -del gcc-4.3.3-tdm-1-g++.tar
  +%PKTH_OldDir%\third_party_apps\7za x -y gcc-4.4.0-tdm-1-dw2-core-2.tar.gz
  +%PKTH_OldDir%\third_party_apps\7za x -y -omingw gcc-4.4.0-tdm-1-dw2-core-2.tar
  +del gcc-4.4.0-tdm-1-dw2-core-2.tar
  +%PKTH_OldDir%\third_party_apps\7za x -y gcc-4.4.0-tdm-1-dw2-g++-2.tar.gz
  +%PKTH_OldDir%\third_party_apps\7za x -y -omingw gcc-4.4.0-tdm-1-dw2-g++-2.tar
  +del gcc-4.4.0-tdm-1-dw2-g++-2.tar
   %PKTH_OldDir%\third_party_apps\7za x -y binutils-2.19.1-mingw32-bin.tar.gz
   %PKTH_OldDir%\third_party_apps\7za x -y -omingw binutils-2.19.1-mingw32-bin.tar
   del binutils-2.19.1-mingw32-bin.tar
  
positive.code: %PKTH_OldDir%\third_party_apps\7za x -y mingwrt-3.15.2-mingw32-dll.tar.gz
  %PKTH_OldDir%\third_party_apps\7za x -y -omingw mingwrt-3.15.2-mingw32-dll.tar
  del mingwrt-3.15.2-mingw32-dll.tar
  %PKTH_OldDir%\third_party_apps\7za x -y w32api-3.11.tar.gz
  %PKTH_OldDir%\third_party_apps\7za x -y -omingw w32api-3.11.tar
  del w32api-3.11.tar
  %PKTH_OldDir%\third_party_apps\7za x -y mingw32-make-3.81-20080326-3.tar.gz
  %PKTH_OldDir%\third_party_apps\7za x -y -omingw mingw32-make-3.81-20080326-3.tar
  del mingw32-make-3.81-20080326-3.tar
  
negative.code: if not exist %PKTH_BaseDir%\svn. (
  echo.
  echo Downloading subversion
  %PKTH_OldDir%\third_party_apps\curl -O http://subversion.tigris.org/files/documents/15/45600/svn-win32-1.6.1.zip
  if not errorlevel 0 goto downloadFailed
  echo.
  echo Unpacking subversion
  %PKTH_OldDir%\third_party_apps\7za x -y svn-win32-1.6.1.zip
  REM Wait 5 seconds for the file cache, else ren might fail.
  @ping 127.0.0.1 -n 5 -w 1000 > nul
  ren svn-win32-1.6.1 svn
  )
  if not exist %PKTH_BaseDir%\svn\bin\svn.exe goto svnFailure
  if not exist %PKTH_BaseDir%\pokerth. (
  