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.

57 lines
1.5 KiB

  1. @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. for /f "tokens=1 delims=" %%i in ('..\tools\GetBuildVer.vbs') do (set BUILD_VERSION=%%i )
  13. for /f "tokens=1,2,3,4 delims=." %%i in ('GetBuildVer.vbs') do set BUILD_COMMA_VERSION=%%i,%%j,%%k,%%l
  14. set BUILD_DEST=c:\bluescreen\release\%BUILD_PATH%\%BUILD_VERSION%
  15. if "%BUILD_VERSION%"=="" goto :ErrNoBuildNum
  16. sd sync -f ocarpt.rc
  17. sd edit ocarpt.rc
  18. incaxver ocarpt.rc FILEVERSION "FILEVERSION %BUILD_COMMA_VERSION%" 0
  19. incaxver ocarpt.rc FileVersion "%BUILD_COMMA_VERSION%" 1
  20. incaxver ocarpt.rc PRODUCTVERSION "PRODUCTVERSION %BUILD_COMMA_VERSION%" 0
  21. incaxver ocarpt.rc ProductVersion "%BUILD_COMMA_VERSION%" 1
  22. pushd %BUILDTYPE%
  23. sd sync -f ocarpt.inf
  24. sd edit ocarpt.inf
  25. incaxver ocarpt.inf FileVersion= "FileVersion=%BUILD_COMMA_VERSION%" 0 1
  26. echo err: %ERRORLEVEL%
  27. popd
  28. pushd ..\web\secure\%BUILDTYPE%
  29. sd sync -f dataconnections.inc
  30. sd edit dataconnections.inc
  31. incaxver dataconnections.inc "strGlobalVersion=" "%BUILD_COMMA_VERSION%" 2
  32. echo err: %ERRORLEVEL%
  33. Set SDFORMEDITOR=sdforms.exe -c�Update OCARPT version to %BUILD_COMMA_VERSION%
  34. Sd submit
  35. Set SDFORMEDITOR=
  36. goto :EOF
  37. :ErrNoBuildNum
  38. echo Could not get build version .. .sayo
  39. goto :EOF