anchor.diff:  set MOBILITY_MODULES_UNPARSED=%MOBILITY_MODULES_UNPARSED:xxx"=%
   set MOBILITY_MODULES_UNPARSED=%MOBILITY_MODULES_UNPARSED:xxx=%
   
  -shift
  +REM reset default modules as we expect a modules list
  +set MOBILITY_MODULES=
  +
  +echo Checking selected modules:
  +:modulesTag2
  +
  +for /f "tokens=1,*" %%a in ("%MOBILITY_MODULES_UNPARSED%") do ( 
  +    set FIRST=%%a 
  +    set REMAINING=%%b
  +)
  +
  +: What we want is a switch as we need to check module name and only want to
  +: distinguish between false and correct module names being passed
  +if %FIRST% == bearer (
  +    echo     Bearer Management selected
  +) else if %FIRST% == contacts (
  +    echo     Contacts selected
  +) else if %FIRST% == location (
  +    echo     Location selected
  +) else if %FIRST% == messaging (
  +    echo     Messaging selected
  +) else if %FIRST% == multimedia (
  +    echo     Multimedia selected
  +) else if %FIRST% == publishsubscribe (
  +    echo     PublishSubscribe selected
  +) else if %FIRST% == systeminfo (
  +    echo     Systeminfo selected
  +) else if %FIRST% == serviceframework (
  +    echo     SerficeFramework selected
  +) else if %FIRST% == versit (
  +    echo     Versit selected
  +) else (
  +    echo     Unknown module %FIRST%
  +    goto errorTag
  +)
  +
  +set MOBILITY_MODULES=%MOBILITY_MODULES% %FIRST%
  +if "%REMAINING%" == "" (
  +    shift
  +) else (
  +    set MOBILITY_MODULES_UNPARSED=%REMAINING%
  +    goto modulesTag2
  +)
  +
  +SET REMAINING=
  +SET FIRST=
   goto cmdline_parsing
   
   :startProcessing
  
positive.code: echo isEmpty($$QT_MOBILITY_INCLUDE):QT_MOBILITY_INCLUDE=$$QT_MOBILITY_PREFIX/include >> %PROJECT_CONFIG%
  echo isEmpty($$QT_MOBILITY_LIB):QT_MOBILITY_LIB=$$QT_MOBILITY_PREFIX/lib >> %PROJECT_CONFIG%
  echo isEmpty($$QT_MOBILITY_BIN):QT_MOBILITY_BIN=$$QT_MOBILITY_PREFIX/bin >> %PROJECT_CONFIG%
  
  REM now the modules
  if not "%MOBILITY_MODULES_UNPARSED%" == "" (
      REM error checking would be nice (e.g. for %%m in (%MOBILITY_MODULES) ... , with an "if" switch like the cmdline arg parsing
      set MOBILITY_MODULES=%MOBILITY_MODULES_UNPARSED%
  )
  
  echo mobility_modules = %MOBILITY_MODULES%  >> %PROJECT_CONFIG%
  echo maemo:mobility_modules -= systeminfo  >> %PROJECT_CONFIG%
  
negative.code: set SOURCE_PATH=
  set MOBILITY_MODULES=
  set MOBILITY_MODULES_UNPARSED=
  SET REMAINING=
  SET FIRST=
  SET MODULES_TEMP=
  exit /b 1
  
  :exitTag
  