anchor.diff:      echo -no-docs .......... Do not build documentation (build by default)
       echo -modules ^<list^> ... Build only the specified modules (default all)
       echo                     Choose from: bearer location publishsubscribe location
  -    echo                     multimedia contacts versit messaging systeminfo
  +    echo                     multimedia contacts versit messaging systeminfo serviceframework
       echo                     Modules should be separated by a space. If a
       echo                     selected module depends on other modules they
       echo                     will automatically be enabled.
  
positive.code: set MOBILITY_MODULES_UNPARSED=%MOBILITY_MODULES_UNPARSED:xxx"=%
  set MOBILITY_MODULES_UNPARSED=%MOBILITY_MODULES_UNPARSED:xxx=%
  
  shift
  goto cmdline_parsing
  
  :startProcessing
  
negative.code: rd /s /q %BUILD_PATH%\include
  mkdir %BUILD_PATH%\include
  perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\global
  
  set MODULES_TEMP=%MOBILITY_MODULES%
  
  :generateHeaders
  
  for /f "tokens=1,*" %%a in ("%MODULES_TEMP%") do ( 
      set FIRST=%%a 
      set REMAINING=%%b
  )
  
  if %FIRST% == bearer (
      perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\bearer
  ) else if %FIRST% == contacts (
      perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\contacts
  ) else if %FIRST% == location (
      perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\location
  ) else if %FIRST% == messaging (
      perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\messaging
  ) else if %FIRST% == multimedia (
      perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\multimedia
      perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\multimedia\experimental
  ) else if %FIRST% == publishsubscribe (
      perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\publishsubscribe
  ) else if %FIRST% == systeminfo (
      perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\systeminfo
  ) else if %FIRST% == serviceframework (
      perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\serviceframework
  ) else if %FIRST% == versit (
      perl -S %SOURCE_PATH%\bin\syncheaders %BUILD_PATH%\include %SOURCE_PATH%\src\versit
  )
  
  if "%REMAINING%" == "" (
      shift
  ) else (
      set MODULES_TEMP=%REMAINING%
      goto generateHeaders
  )
  
  SET REMAINING=
  SET FIRST=
  SET MODULES_TEMP=
  
  if exist config.pri del config.pri
  ren %PROJECT_CONFIG% config.pri
  