Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.6 KiB

  1. rem @echo off
  2. SETLOCAL ENABLEEXTENSIONS
  3. echo.
  4. echo.
  5. echo This script will increment the build version of the ocarpt control
  6. echo This script will also check in the changes. IF you have any open
  7. echo files from the depot, they will also be checked in by this script
  8. echo so please be sure there are no open changelists prior to running
  9. echo this script.
  10. echo.
  11. echo.
  12. pause
  13. for /f "tokens=1 delims=" %%i in ('..\tools\GetBuildVer.vbs') do (set BUILD_VERSION=%%i )
  14. for /f "tokens=1,2,3,4 delims=." %%i in ('GetBuildVer.vbs') do set BUILD_COMMA_VERSION=%%i,%%j,%%k,%%l
  15. set BUILD_DEST=c:\bluescreen\release\%BUILD_PATH%\%BUILD_VERSION%
  16. if "%BUILD_VERSION%"=="" goto :ErrNoBuildNum
  17. sd sync -f cerupload.rc
  18. sd edit cerupload.rc
  19. incaxver cerupload.rc FILEVERSION "FILEVERSION %BUILD_COMMA_VERSION%" 0
  20. incaxver cerupload.rc FileVersion "%BUILD_COMMA_VERSION%" 1
  21. incaxver cerupload.rc PRODUCTVERSION "PRODUCTVERSION %BUILD_COMMA_VERSION%" 0
  22. incaxver cerupload.rc ProductVersion "%BUILD_COMMA_VERSION%" 1
  23. pushd %BUILDTYPE%
  24. sd sync -f cerclient.inf
  25. sd edit cerclient.inf
  26. incaxver cerclient.inf "FileVersion=" "FileVersion=%BUILD_COMMA_VERSION%" 0 0
  27. echo err: %ERRORLEVEL%
  28. popd
  29. pushd ..\web\secure\%BUILDTYPE%
  30. sd sync -f dataconnections.inc
  31. sd edit dataconnections.inc
  32. incaxver dataconnections.inc "strCerVersion = " "%BUILD_COMMA_VERSION%" 2
  33. echo err: %ERRORLEVEL%
  34. Set SDFORMEDITOR=sdforms.exe -c "Update OCARPT version to %BUILD_COMMA_VERSION%"
  35. Sd submit
  36. Set SDFORMEDITOR=
  37. goto :EOF
  38. :ErrNoBuildNum
  39. echo Could not get build version .. .sayo
  40. goto :EOF