Source code of Windows XP (NT5)
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.

134 lines
4.4 KiB

  1. @setlocal
  2. @echo off
  3. rem
  4. rem Make sure the source path is given and correct
  5. rem
  6. if "%sdxroot%" == "" goto not_razzle
  7. if "%1" == "" goto usage
  8. rem
  9. rem checking a sample file to see if the given path is ok
  10. rem
  11. if not exist %1\USA\CHK\fax\i386\fyi.cov goto usage
  12. echo The following script will replace all the binaries + symbols + public SDK + help files and SLD files
  13. echo in the printscan\faxsrv source depot project.
  14. echo Press Ctrl-C now to abort or
  15. pause
  16. echo Marking source files are non-Read-only (can't add files when they are read only)
  17. attrib -r %1\*.* /s
  18. echo Open for edit all "binaries..."
  19. cd %sdxroot%\printscan\faxsrv\binaries\i386
  20. sd edit ...
  21. cd %sdxroot%\printscan\faxsrv\win9xmig\chk
  22. sd edit ...
  23. cd %sdxroot%\printscan\faxsrv\win9xmig\fre
  24. sd edit ...
  25. cd %sdxroot%\printscan\faxsrv\mantis
  26. sd edit ...
  27. cd %sdxroot%\printscan\faxsrv\FaxVerify
  28. sd edit ...
  29. rem *******************************************************
  30. rem * *
  31. rem * C H K X 8 6 *
  32. rem * *
  33. rem *******************************************************
  34. echo Replacing with new binaries / SDK / Help (chk x86)...
  35. cd %sdxroot%\printscan\faxsrv\binaries\i386\chk
  36. xcopy %1\USA\CHK\fax\i386\*.* .
  37. cd %sdxroot%\printscan\faxsrv\binaries\i386\chk\sdk
  38. xcopy %1\USA\CHK\fax\i386\sdk\*.* .
  39. cd %sdxroot%\printscan\faxsrv\binaries\i386\chk\help
  40. xcopy %1\USA\CHK\fax\i386\help\*.* .
  41. echo Copying symbols next to binaries (chk x86)...
  42. cd %sdxroot%\printscan\faxsrv\binaries\i386\chk
  43. xcopy %1\USA\CHK\fax\i386\symbols.pri\retail\dll\*.* .
  44. xcopy %1\USA\CHK\fax\i386\symbols.pri\retail\exe\*.* .
  45. echo Copying migration DLL (chk x86)...
  46. cd %sdxroot%\printscan\faxsrv\win9xmig\chk
  47. xcopy %1\USA\CHK\fax\i386\win9xmig\fax\*.* .
  48. xcopy %1\USA\CHK\fax\i386\symbols.pri\win9xmig\dll\*.* .
  49. xcopy %1\USA\CHK\fax\i386\symbols.pri\win9xmig\exe\*.* .
  50. echo Copying FaxVerify...
  51. cd %sdxroot%\printscan\faxsrv\FaxVerify
  52. xcopy %1\USA\CHK\TEST\FaxVerifier\*.*
  53. xcopy %1\USA\CHK\TEST\FaxVerifier\symbols.pri\retail\exe\faxvrfy.pdb
  54. xcopy %1\USA\CHK\TEST\FaxVerifier\symbols.pri\retail\dll\faxrcv.pdb
  55. rem *******************************************************
  56. rem * *
  57. rem * F R E X 8 6 *
  58. rem * *
  59. rem *******************************************************
  60. echo Replacing with new binaries / SDK / Help (fre x86)...
  61. cd %sdxroot%\printscan\faxsrv\binaries\i386\fre
  62. xcopy %1\USA\FRE\fax\i386\*.* .
  63. cd %sdxroot%\printscan\faxsrv\binaries\i386\fre\sdk
  64. xcopy %1\USA\FRE\fax\i386\sdk\*.* .
  65. cd %sdxroot%\printscan\faxsrv\binaries\i386\fre\help
  66. xcopy %1\USA\FRE\fax\i386\help\*.* .
  67. echo Copying symbols next to binaries (fre x86)...
  68. cd %sdxroot%\printscan\faxsrv\binaries\i386\fre
  69. xcopy %1\USA\FRE\fax\i386\symbols.pri\retail\dll\*.* .
  70. xcopy %1\USA\FRE\fax\i386\symbols.pri\retail\exe\*.* .
  71. echo Copying migration DLL (fre x86)...
  72. cd %sdxroot%\printscan\faxsrv\win9xmig\fre
  73. xcopy %1\USA\FRE\fax\i386\win9xmig\fax\*.* .
  74. xcopy %1\USA\FRE\fax\i386\symbols.pri\win9xmig\dll\*.* .
  75. xcopy %1\USA\FRE\fax\i386\symbols.pri\win9xmig\exe\*.* .
  76. echo Copying SLD files to Mantis folder
  77. cd %sdxroot%\printscan\faxsrv\mantis
  78. xcopy %1\USA\FRE\fax\mantis\*.* .
  79. rem *******************************************************
  80. rem * *
  81. rem * B U I L D N U M . T X T *
  82. rem * *
  83. rem *******************************************************
  84. echo updating 'BuildNum.txt'
  85. :GetBuildNum
  86. set /p buildnum=Please type the (Haifa) build number:
  87. if "%buildnum%" == "" goto BadGetBuildNum
  88. goto UpdateBuildNum
  89. :BadGetBuildNum
  90. echo Bad build number entered. Let's try this again
  91. goto GetBuildNum
  92. :UpdateBuildNum
  93. sd edit %sdxroot%\printscan\faxsrv\buildnum.txt
  94. echo Equivalent to build #%buildnum% of Haifa Whistler Fax. > %sdxroot%\printscan\faxsrv\buildnum.txt
  95. echo All the files replaced with new one.
  96. echo You have to submit the files right now
  97. echo You have to "sd submit" to make the change or "sd revert" to revert
  98. goto end
  99. :not_razzle
  100. echo Please run this script from a Whistler razzle environment.
  101. goto end
  102. :usage
  103. echo Please type the path to the root of the sources and binaries (root of SRC and USA dirs)
  104. goto end
  105. :end
  106. endlocal