anchor.diff:  
   REM ------------------------------------------------------------------
   REM Clean build
  -
   call :distclean
   if ERRORLEVEL 1 goto :EOF
   
   REM ------------------------------------------------------------------
   REM Update
  -
   echo updating...
   hg -q update
   if ERRORLEVEL 1 goto error
   
   REM ------------------------------------------------------------------
   REM Build Tools
  -
   call :build utils\incversion incversion.pro
   if ERRORLEVEL 1 goto :EOF
   
   REM ------------------------------------------------------------------
   REM Increment version if necessary
  -
   call :bumpdlls
   if "%1" == "-bump" call :bump
   if ERRORLEVEL 1 goto :EOF
   
   REM ------------------------------------------------------------------
   REM get version
  -
  +if "%1" == "-v" goto manualversion
   for /f usebackq %%v in (`utils\incversion\release\incversion.exe -nobump version.txt`) do set NEUROLAB_VERSION=%%v
   if ERRORLEVEL 1 goto error
  +goto doneversion
  +:manualversion
  +set NEUROLAB_VERSION=%2
  +:doneversion
   echo version is %NEUROLAB_VERSION%
   
   REM ------------------------------------------------------------------
   REM hg id
  -
   for /f usebackq %%i in (`hg -q id`) do set HG_ID=%%i
   if ERRORLEVEL 1 goto error
   echo hg id is %HG_ID%
   
   REM ------------------------------------------------------------------
   REM build NeuroLab
  -
   if not exist "%SHADOW_DIR%" mkdir "%SHADOW_DIR%"
   call :build "%SHADOW_DIR%" ..\src\neurolab_all.pro
   if ERRORLEVEL 1 goto :EOF
   
   REM ------------------------------------------------------------------
   REM create release directory
  -
   if not exist "%DISTRIB_DIR%\zips" mkdir "%DISTRIB_DIR%\zips"
   set RELEASE_DIR=%DISTRIB_DIR%\%NEUROLAB_VERSION%-%HG_ID%
   
  
positive.code: popd
  goto :EOF
  
  :build
  pushd .
  call :qmake %1 %2
  
negative.code: popd
  goto :EOF
  
  REM ----------------------------
  :wrongdir
  pushd .
  echo You must be in the src directory to run the makedist.bat script!
  goto error
  
  REM ----------------------------
  :error
  popd
  cd %OLDDIR%
  