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.

426 lines
17 KiB

  1. @echo off
  2. rem nt_build.cmd
  3. rem Automated build script for SAPI
  4. echo Running automated SAPI build...
  5. set ORIGINAL_PATH=%PATH%
  6. set SPEECHPATH=c:\nt\enduser\Speech
  7. set SAPI_BUILD_PATH=c:\builds
  8. set RAZZLEPATH=%SPEECHPATH%\common\bin\spgrazzle.cmd
  9. set LOCSTUDIOPATH=%PROGRAMFILES%\LocStudio
  10. set SDNBUILD=%2%
  11. if exist %RAZZLEPATH% goto FoundRazzle
  12. echo Can't find %RAZZLEPATH% ...
  13. echo Fatal error - script dying ...
  14. goto End
  15. :FoundRazzle
  16. if "%2%" == "" goto UsageError
  17. if "%1%" == "" goto UsageError
  18. rem Get build number
  19. echo Generating build number...
  20. cd %SPEECHPATH%
  21. attrib -r %SPEECHPATH%\setup\installer\currver.inc
  22. cscript %SPEECHPATH%\builder\makebldnum.%SDNBUILD%.vbs
  23. set SAPI_BUILD_NUM=%errorlevel%
  24. if "%SDNBUILD%" == "sapi5.01" goto Build501
  25. if "%SDNBUILD%" == "sapi5.10" goto Build510
  26. rem Default to 6.0.xxxx.0 for unknown builds.
  27. set MAJOR=6
  28. set MINOR=0
  29. goto GotMajorMinor
  30. :Build501
  31. set MAJOR=5
  32. set MINOR=0
  33. goto GotMajorMinor
  34. :Build510
  35. set MAJOR=5
  36. set MINOR=1
  37. goto GotMajorMinor
  38. :GotMajorMinor
  39. goto %1%
  40. :UsageError
  41. echo.
  42. echo Usage : nt_build [section] [branch]
  43. echo.
  44. echo section = all, datafiles, localization, setup, cleanmsm, msmver, msi,
  45. echo msiver, copies, copytruetalk, copysource, copytobuildstore
  46. echo branch = sapi5.01, sapi5.10, sapi6.0
  47. goto End
  48. :all
  49. echo Deleting %SAPI_BUILD_PATH%
  50. rmdir /s /q %SAPI_BUILD_PATH%
  51. echo Remaking %SAPI_BUILD_PATH%
  52. mkdir %SAPI_BUILD_PATH%
  53. echo Running free 64 bit razzle to delete the binaries.ia64fre dir...
  54. set _BuildArch=
  55. set 386=
  56. set ia64=
  57. set PATH=%ORIGINAL_PATH%
  58. call %RAZZLEPATH% Win64 free
  59. echo Deleting %_nttree% ...
  60. rmdir /s /q %_nttree%
  61. echo Running checked 64 bit razzle to delete the binaries.ia64chk dir...
  62. set _BuildArch=
  63. set ia64=
  64. set 386=
  65. set PATH=%ORIGINAL_PATH%
  66. call %RAZZLEPATH% Win64
  67. echo Deleting %_nttree% ...
  68. rmdir /s /q %_nttree%
  69. echo Running free 32 bit razzle to delete the binaries.x86fre dir...
  70. set _BuildArch=
  71. set ia64=
  72. set 386=
  73. set PATH=%ORIGINAL_PATH%
  74. call %RAZZLEPATH% free
  75. echo Deleting %_nttree% ...
  76. rmdir /s /q %_nttree%
  77. echo Running checked 32 bit razzle to delete the binaries.x86chk dir...
  78. set _BuildArch=
  79. set ia64=
  80. set 386=
  81. set PATH=%ORIGINAL_PATH%
  82. call %RAZZLEPATH%
  83. echo Deleting %_nttree% ...
  84. rmdir /s /q %_nttree%
  85. echo !!! Running scorch !!! This is not a drill! This will wipe out
  86. echo anyfiles in the speech directory that are
  87. echo not checked into the SD tree.
  88. cd %SPEECHPATH%
  89. perl %RazzleToolPath%\scorch.pl -scorch=%SPEECHPATH%
  90. del /q /s build.err build.log build.wrn
  91. if "%SDNBUILD%" == "sapi5.01" goto Sync501
  92. rem Otherwise normal sync up
  93. cd %SPEECHPATH%
  94. call sdx sync -f
  95. goto RestOfBuild
  96. :Sync501
  97. rem SYNC UP but not compiler
  98. cd %_NTBINDIR%
  99. call sd sync -f @2000/12/14
  100. cd %_NTBINDIR%\public\sdk\lib
  101. call sd sync -f placefil.txt
  102. cd %_NTBINDIR%\published\sdk\lib
  103. call sd sync -f placefil.txt
  104. cd %_NTBINDIR%\tools
  105. call sd sync -f coffbase.txt
  106. cd %SPEECHPATH%
  107. call sd sync -f
  108. goto RestOfBuild
  109. :RestOfBuild
  110. echo Running free 64 bit razzle to build in binaries.ia64fre dir...
  111. set _BuildArch=
  112. set ia64=
  113. set 386=
  114. set PATH=%ORIGINAL_PATH%
  115. call %RAZZLEPATH% Win64 free
  116. rem Reset these parameters as they get incorrectly set by razzle - RAID 9430
  117. set _CL_=
  118. set _LINK_=
  119. set IA64FREPATH=%_nttree%
  120. cd %SPEECHPATH%
  121. build -cZ
  122. xcopy build.* %IA64FREPATH%\build_logs /F /I /C /Y
  123. echo !!! Running scorch !!! This is not a drill! This will wipe out
  124. echo anyfiles in the speech directory that are
  125. echo not checked into the SD tree.
  126. cd %SPEECHPATH%
  127. perl %RazzleToolPath%\scorch.pl -scorch=%SPEECHPATH%
  128. del /q /s build.err build.log build.wrn
  129. echo Running checked 64 bit razzle to build in binaries.ia64chk dir...
  130. set _BuildArch=
  131. set ia64=
  132. set 386=
  133. set PATH=%ORIGINAL_PATH%
  134. call %RAZZLEPATH% Win64
  135. rem Reset these parameters as they get incorrectly set by razzle - RAID 9430
  136. set _CL_=
  137. set _LINK_=
  138. set IA64CHKPATH=%_nttree%
  139. cd %SPEECHPATH%
  140. build -cZ
  141. xcopy build.* %IA64CHKPATH%\build_logs /F /I /C /Y
  142. echo !!! Running scorch !!! This is not a drill! This will wipe out
  143. echo anyfiles in the speech directory that are
  144. echo not checked into the SD tree.
  145. cd %SPEECHPATH%
  146. perl %RazzleToolPath%\scorch.pl -scorch=%SPEECHPATH%
  147. del /q /s build.err build.log build.wrn
  148. echo Running checked 32 bit razzle to build in binaries.x86chk dir...
  149. set _BuildArch=
  150. set ia64=
  151. set 386=
  152. set PATH=%ORIGINAL_PATH%
  153. call %RAZZLEPATH%
  154. set X86CHKPATH=%_nttree%
  155. cd %SPEECHPATH%
  156. set NO_MAPSYM=
  157. build -c -1 docs sdk sr qa tools lang common truetalk ms_entropic prompts regvoices setup
  158. xcopy build.* %X86CHKPATH%\build_logs /F /I /C /Y
  159. rem Do the SRTel debug build
  160. call %SPEECHPATH%\srtel\builder\nt_build_srtel.cmd debug
  161. rem !!!!!!!!!!!
  162. rem Don't scorch here! If you do, Setup for x86chk won't have files to use!
  163. rem !!!!!!!!!!!
  164. del /q /s build.err build.log build.wrn
  165. echo Running free 32 bit razzle to build in binaries.x86fre dir...
  166. set _BuildArch=
  167. set ia64=
  168. set 386=
  169. set PATH=%ORIGINAL_PATH%
  170. call %RAZZLEPATH% free
  171. set X86FREPATH=%_nttree%
  172. cd %SPEECHPATH%
  173. set NO_MAPSYM=
  174. build -c -1 docs sdk sr qa tools lang common truetalk ms_entropic prompts regvoices setup
  175. xcopy build.* %X86FREPATH%\build_logs /F /I /C /Y
  176. rem Do the SRTel release build
  177. call %SPEECHPATH%\srtel\builder\nt_build_srtel.cmd release
  178. :datafiles
  179. REM Build the SR datafiles
  180. echo Running free 32 bit razzle to build SR datafiles...
  181. set _BuildArch=
  182. set ia64=
  183. set 386=
  184. set PATH=%ORIGINAL_PATH%
  185. call %RAZZLEPATH% free
  186. cd %SPEECHPATH%\sr\datafiles
  187. nmake -f local.mak MAIL_ON_ERROR=1
  188. :localization
  189. REM Apply LocStudio
  190. echo Running free 32 bit razzle to build CPL and SPSRX resources...
  191. set _BuildArch=
  192. set ia64=
  193. set 386=
  194. set PATH=%ORIGINAL_PATH%
  195. call %RAZZLEPATH% free
  196. cd %SPEECHPATH%\sapi\cplui
  197. nmake -f local.mak
  198. cd %SPEECHPATH%\sr\engine\spsrxui
  199. nmake -f local.mak
  200. REM echo Running free 64 bit razzle to build CPL resources...
  201. REM Is there a Win64 version of LocStudio?
  202. REM set _BuildArch=
  203. REM set ia64=
  204. REM set 386=
  205. REM set PATH=%ORIGINAL_PATH%
  206. REM call %RAZZLEPATH% Win64 free
  207. REM cd %SPEECHPATH%\sapi\cplui
  208. REM nmake -f local.mak
  209. :setup
  210. REM Build MSMs Here
  211. cd %SPEECHPATH%\builder
  212. set SAPIROOT=%SPEECHPATH%
  213. call makemsm debug
  214. cd %SPEECHPATH%\builder
  215. call makemsm release
  216. :cleanmsm
  217. REM Clean the MSMs
  218. cd %SPEECHPATH%\builder
  219. call cleanmsm
  220. :msmver
  221. REM Set version number in MSMs
  222. echo on
  223. cd %SPEECHPATH%\build
  224. for /f %%f in ('dir /b /s /a-d *.msm') do %SPEECHPATH%\tools\msiquery "UPDATE ModuleSignature SET Version='%MAJOR%.%MINOR%.%SAPI_BUILD_NUM%.0'" %%f
  225. rem Do SRTel MSMs
  226. call %SPEECHPATH%\srtel\builder\nt_srtel_setup.cmd
  227. :msi
  228. REM Build MSIs Here
  229. cd %SPEECHPATH%\builder
  230. call makemsi debug
  231. cd %SPEECHPATH%\builder
  232. call makemsi release
  233. :msiver
  234. REM Set version number in MSIs
  235. cd %SPEECHPATH%\setup
  236. %SPEECHPATH%\tools\msiquery "UPDATE Property SET Value='%MAJOR%.%MINOR%.%SAPI_BUILD_NUM%.0' WHERE Property='ProductVersion'" "%SPEECHPATH%\setup\installer\debug\sdk\Output\Build\DiskImages\Disk1\Microsoft Speech SDK 5.1d.msi"
  237. %SPEECHPATH%\tools\msiquery "UPDATE Property SET Value='%MAJOR%.%MINOR%.%SAPI_BUILD_NUM%.0' WHERE Property='ProductVersion'" "%SPEECHPATH%\setup\installer\release\sdk\Output\Build\DiskImages\Disk1\Microsoft Speech SDK 5.1.msi"
  238. :copies
  239. REM Copy MSMs
  240. xcopy %SPEECHPATH%\build\debug\1033\sp5\Sp5-1033\DiskImages\Disk1\Sp5d.Msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\debug\msm\1033\ /F /C /Y
  241. xcopy %SPEECHPATH%\build\debug\1033\sp5ccint\Sp5ccint-1033\DiskImages\Disk1\Sp5CCIntd.Msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\debug\msm\1033\ /F /C /Y
  242. xcopy %SPEECHPATH%\build\debug\1033\sp5dcint\Sp5dcint-1033\DiskImages\Disk1\Sp5DCIntd.Msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\debug\msm\1033\ /F /C /Y
  243. xcopy %SPEECHPATH%\build\debug\1033\sp5intl\Sp5intl-1033\DiskImages\Disk1\Sp5Intld.Msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\debug\msm\1033\ /F /C /Y
  244. xcopy %SPEECHPATH%\build\debug\1033\sp5itn\Sp5itn-1033\DiskImages\Disk1\Sp5itnd.Msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\debug\msm\1033\ /F /C /Y
  245. xcopy %SPEECHPATH%\build\debug\1033\sp5sr\Sp5sr\DiskImages\Disk1\Sp5SRd.Msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\debug\msm\1033\ /F /C /Y
  246. xcopy %SPEECHPATH%\build\debug\1033\sp5ttint\Sp5TTInt\DiskImages\Disk1\Sp5TTIntd.Msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\debug\msm\1033\ /F /C /Y
  247. xcopy %SPEECHPATH%\build\debug\1033\spcommon\spcommon-1033\DiskImages\Disk1\Spcommond.Msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\debug\msm\1033\ /F /C /Y
  248. xcopy %SPEECHPATH%\build\debug\1041\sp5ccint\Sp5ccint-1041\DiskImages\Disk1\Sp5CCIntd.Msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\debug\msm\1041\ /F /C /Y
  249. xcopy %SPEECHPATH%\build\debug\1041\sp5dcint\Sp5dcint-1041\DiskImages\Disk1\Sp5DCIntd.Msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\debug\msm\1041\ /F /C /Y
  250. xcopy %SPEECHPATH%\build\debug\1041\sp5intl\Sp5intl-1041\DiskImages\Disk1\Sp5Intld.Msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\debug\msm\1041\ /F /C /Y
  251. xcopy %SPEECHPATH%\build\debug\1041\sp5itn\Sp5itn-1041\DiskImages\Disk1\Sp5Itnd.Msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\debug\msm\1041\ /F /C /Y
  252. xcopy %SPEECHPATH%\build\debug\2052\sp5ccint\Sp5ccint-2052\DiskImages\Disk1\Sp5CCIntd.Msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\debug\msm\2052\ /F /C /Y
  253. xcopy %SPEECHPATH%\build\debug\2052\sp5dcint\Sp5dcint-2052\DiskImages\Disk1\Sp5DCIntd.Msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\debug\msm\2052\ /F /C /Y
  254. xcopy %SPEECHPATH%\build\debug\2052\sp5intl\Sp5intl-2052\DiskImages\Disk1\Sp5Intld.Msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\debug\msm\2052\ /F /C /Y
  255. xcopy %SPEECHPATH%\build\debug\2052\sp5itn\Sp5itn-2052\DiskImages\Disk1\Sp5itnd.Msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\debug\msm\2052\ /F /C /Y
  256. xcopy %SPEECHPATH%\build\debug\2052\sp5ttint\Sp5ttint-2052\DiskImages\Disk1\SP5TTINTd.Msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\debug\msm\2052\ /F /C /Y
  257. xcopy %SPEECHPATH%\build\release\1033\sp5\Sp5-1033\DiskImages\Disk1\Sp5.Msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\release\msm\1033\ /F /C /Y
  258. xcopy %SPEECHPATH%\build\release\1033\sp5ccint\Sp5ccint-1033\DiskImages\Disk1\Sp5CCInt.Msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\release\msm\1033\ /F /C /Y
  259. xcopy %SPEECHPATH%\build\release\1033\sp5dcint\Sp5dcint-1033\DiskImages\Disk1\Sp5DCInt.Msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\release\msm\1033\ /F /C /Y
  260. xcopy %SPEECHPATH%\build\release\1033\sp5intl\Sp5intl-1033\DiskImages\Disk1\Sp5Intl.Msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\release\msm\1033\ /F /C /Y
  261. xcopy %SPEECHPATH%\build\release\1033\sp5itn\Sp5itn-1033\DiskImages\Disk1\Sp5itn.Msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\release\msm\1033\ /F /C /Y
  262. xcopy %SPEECHPATH%\build\release\1033\sp5sr\Sp5sr\DiskImages\Disk1\Sp5SR.Msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\release\msm\1033\ /F /C /Y
  263. xcopy %SPEECHPATH%\build\release\1033\sp5ttint\Sp5TTInt\DiskImages\Disk1\Sp5TTInt.Msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\release\msm\1033\ /F /C /Y
  264. xcopy %SPEECHPATH%\build\release\1033\spcommon\spcommon-1033\DiskImages\Disk1\Spcommon.Msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\release\msm\1033\ /F /C /Y
  265. xcopy %SPEECHPATH%\build\release\1041\sp5ccint\Sp5ccint-1041\DiskImages\Disk1\Sp5CCInt.Msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\release\msm\1041\ /F /C /Y
  266. xcopy %SPEECHPATH%\build\release\1041\sp5dcint\Sp5dcint-1041\DiskImages\Disk1\Sp5DCInt.Msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\release\msm\1041\ /F /C /Y
  267. xcopy %SPEECHPATH%\build\release\1041\sp5intl\Sp5intl-1041\DiskImages\Disk1\Sp5Intl.Msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\release\msm\1041\ /F /C /Y
  268. xcopy %SPEECHPATH%\build\release\1041\sp5itn\Sp5itn-1041\DiskImages\Disk1\Sp5Itn.Msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\release\msm\1041\ /F /C /Y
  269. xcopy %SPEECHPATH%\build\release\2052\sp5ccint\Sp5ccint-2052\DiskImages\Disk1\Sp5CCInt.Msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\release\msm\2052\ /F /C /Y
  270. xcopy %SPEECHPATH%\build\release\2052\sp5dcint\Sp5dcint-2052\DiskImages\Disk1\Sp5DCInt.Msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\release\msm\2052\ /F /C /Y
  271. xcopy %SPEECHPATH%\build\release\2052\sp5intl\Sp5intl-2052\DiskImages\Disk1\Sp5Intl.Msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\release\msm\2052\ /F /C /Y
  272. xcopy %SPEECHPATH%\build\release\2052\sp5itn\Sp5itn-2052\DiskImages\Disk1\Sp5itn.Msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\release\msm\2052\ /F /C /Y
  273. xcopy %SPEECHPATH%\build\release\2052\sp5ttintr\Sp5TTInt-2052\DiskImages\Disk1\SP5TTINTr.Msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\release\msm\2052\ /F /C /Y
  274. REM Copy L&H MSMs
  275. xcopy %SPEECHPATH%\setup\installer\lh\1033\lhttint.msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\debug\msm\LH_1033\ /F /C /Y
  276. xcopy %SPEECHPATH%\setup\installer\lh\1033\lhttint.msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\release\msm\LH_1033\ /F /C /Y
  277. xcopy %SPEECHPATH%\setup\installer\lh\1041\lhttint.msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\debug\msm\LH_1041\ /F /C /Y
  278. xcopy %SPEECHPATH%\setup\installer\lh\1041\lhttint.msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\release\msm\LH_1041\ /F /C /Y
  279. xcopy %SPEECHPATH%\setup\installer\lh\shared\LHTTS3000Shared.msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\debug\msm\LH_shared\ /F /C /Y
  280. xcopy %SPEECHPATH%\setup\installer\lh\shared\LHTTS3000Shared.msm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\release\msm\LH_shared\ /F /C /Y
  281. REM Copy MSIs
  282. xcopy %SPEECHPATH%\setup\installer\debug\sdk\Output\Build\DiskImages\Disk1 %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\debug\msi /F /I /C /S /Y
  283. xcopy %SPEECHPATH%\setup\installer\release\sdk\Output\Build\DiskImages\Disk1 %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\release\msi /F /I /C /S /Y
  284. REM Copy Docs
  285. xcopy %SPEECHPATH%\docs\release\license.chm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\debug\msi /F /I /C /Y
  286. xcopy %SPEECHPATH%\docs\release\readme.htm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\debug\msi /F /I /C /Y
  287. xcopy %SPEECHPATH%\docs\release\license.chm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\release\msi /F /I /C /Y
  288. xcopy %SPEECHPATH%\docs\release\readme.htm %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\release\msi /F /I /C /Y
  289. REM BUILD/RUN BVTs HERE
  290. REM MAKE CABS HERE
  291. REM Copy binaries
  292. xcopy %IA64FREPATH% %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\release64\bin /F /I /C /S /Y
  293. xcopy %IA64CHKPATH% %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\debug64\bin /F /I /C /S /Y
  294. xcopy %X86FREPATH% %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\release\bin /F /I /C /S /Y
  295. xcopy %X86CHKPATH% %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\debug\bin /F /I /C /S /Y
  296. REM Copy Sapi Test Data
  297. xcopy %SPEECHPATH%\qa\sapi\data\*.* %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\sapitestdata /F /I /C /S /Y
  298. xcopy %SPEECHPATH%\qa\sapi\tools\tux\*.* %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\sapitestdata /F /I /C /S /Y
  299. xcopy %SPEECHPATH%\qa\sapi\tools\bin\tuxreloc.exe %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\sapitestdata /F /I /C /S /Y
  300. xcopy %SPEECHPATH%\qa\sapi\testsuites\*.tux %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\sapitestdata /F /I /C /S /Y
  301. xcopy %SPEECHPATH%\qa\sapi\testsuites\*.bat %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\sapitestdata /F /I /C /S /Y
  302. xcopy %SPEECHPATH%\qa\sr\testsuites\*.tux %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\sapitestdata /F /I /C /S /Y
  303. xcopy %SPEECHPATH%\qa\sr\testsuites\*.bat %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\sapitestdata /F /I /C /S /Y
  304. xcopy %SPEECHPATH%\qa\sr\testsuites\*.wav %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\sapitestdata /F /I /C /S /Y
  305. xcopy %SPEECHPATH%\qa\sr\testsuites\*.ini %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\sapitestdata /F /I /C /S /Y
  306. xcopy %SPEECHPATH%\qa\sdk\sdkbvt\*.* %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\sapitestdata /F /I /C /S /Y
  307. xcopy %SPEECHPATH%\qa\tts\bvt\*.* %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\sapitestdata /F /I /C /S /Y
  308. xcopy %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\release\bin\dump %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\sapitestdata\ /F /I /C /Y
  309. REM TrueTalk and Prompt Engine setup
  310. cd %SPEECHPATH%\builder
  311. call ttssetup data
  312. cd %SPEECHPATH%\builder
  313. call ttssetup debug
  314. cd %SPEECHPATH%\builder
  315. call ttssetup release
  316. :copytruetalk
  317. cd %SPEECHPATH%\builder
  318. call ttscopyall
  319. REM Copy build logs
  320. xcopy %IA64FREPATH%\build_logs\*.* %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\logs.ia64fre\ /F /I /C /S /Y
  321. xcopy %IA64CHKPATH%\build_logs\*.* %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\logs.ia64chk\ /F /I /C /S /Y
  322. xcopy %X86FREPATH%\build_logs\*.* %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\logs.x86fre\ /F /I /C /S /Y
  323. xcopy %X86CHKPATH%\build_logs\*.* %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\logs.x86chk\ /F /I /C /S /Y
  324. REM Copy MSM/MSI logs
  325. xcopy %SPEECHPATH%\builder\logs\*.* %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\logs.msmmsi\ /F /I /C /S /Y
  326. :copysource
  327. REM Copy source
  328. xcopy %SPEECHPATH%\*.cpp %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\src\ /F /I /C /S /Y
  329. xcopy %SPEECHPATH%\*.h %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\src\ /F /I /C /S /Y
  330. xcopy %SPEECHPATH%\*.pdb %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\src\ /F /I /C /S /Y
  331. xcopy %SPEECHPATH%\*.sym %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM%\src\ /F /I /C /S /Y
  332. :copytobuildstore
  333. REM Copy to B11NLBUILDS
  334. if "%SDNBUILD%" == "sapi5.01" goto :copy501b11
  335. goto dontcopy501b11
  336. :copy501b11
  337. rem xcopy %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM% \\b11nlbuilds\sapi5\DONT_TOUCH_YET_%SAPI_BUILD_NUM% /F /I /C /S /Y
  338. rem move /Y \\b11nlbuilds\sapi5\DONT_TOUCH_YET_%SAPI_BUILD_NUM% \\b11nlbuilds\sapi5\%SAPI_BUILD_NUM%
  339. :dontcopy501b11
  340. REM Copy to SDNBUILDS
  341. xcopy %SAPI_BUILD_PATH%\%SAPI_BUILD_NUM% \\sdnbuilds\%SDNBUILD%\DONT_TOUCH_YET_%SAPI_BUILD_NUM% /F /I /C /S /Y
  342. move /Y \\sdnbuilds\%SDNBUILD%\DONT_TOUCH_YET_%SAPI_BUILD_NUM% \\sdnbuilds\%SDNBUILD%\%SAPI_BUILD_NUM%
  343. :End
  344. echo.
  345. echo Script End!