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.

75 lines
2.0 KiB

  1. rem @echo off
  2. REM
  3. REM This setup depends on runing Data before Debug and Release !!!
  4. REM See nt_build.cmd
  5. REM
  6. subst s: /d
  7. subst s: %_NTDRIVE%\
  8. set sapiroot=%SPEECH_ROOT%
  9. rem if %SPEECH_ROOT%=="" goto :configerr
  10. if "%1" == "release" goto :release
  11. if "%1" == "debug" goto :debug
  12. if "%1" == "data" goto :data
  13. if "%1" == "" goto err
  14. rem ---------------------- DATA ---------------------
  15. :data
  16. attrib -R %SPEECH_ROOT%\tts\build\data\*.ism
  17. for /r %SPEECH_ROOT%\tts\build\data %%f in (*.ini) do iscmdbld -i "%%f" >> %SPEECH_ROOT%\builder\logs\tts%1.log
  18. attrib +R %SPEECH_ROOT%\tts\build\data\*.ism
  19. goto :EOF
  20. rem ---------------------- DEBUG --------------------
  21. :debug
  22. attrib -R %SPEECH_ROOT%\tts\build\debug\*.ism
  23. rem build msms
  24. for /r %SPEECH_ROOT%\tts\build\debug %%f in (*.ini) do iscmdbld -i "%%f" >> %SPEECH_ROOT%\builder\logs\tts%1.log
  25. rem build msi for TrueTalk
  26. iscmdbld -p %SPEECH_ROOT%\tts\build\debug\ttsall.ism -d "TrueTalk" -r "Debug" -a "TrueTalk" >> %SPEECH_ROOT%\builder\logs\ttsdebug.log
  27. rem build msi for Prompt Engine
  28. iscmdbld -p %SPEECH_ROOT%\tts\build\debug\PromptEng.ism -d "MS Prompt Engine" -r "Debug" -a "Prompt Engine" >> %SPEECH_ROOT%\builder\logs\PEdebug.log
  29. attrib +R %SPEECH_ROOT%\tts\build\debug\*.ism
  30. goto :EOF
  31. rem ---------------------- RELEASE --------------------
  32. :release
  33. attrib -R %SPEECH_ROOT%\tts\build\release\*.ism
  34. rem build msms
  35. for /r %SPEECH_ROOT%\tts\build\release %%f in (*.ini) do iscmdbld -i "%%f" >> %SPEECH_ROOT%\builder\logs\tts%1.log
  36. rem build msi for TrueTalk
  37. iscmdbld -p %SPEECH_ROOT%\tts\build\release\ttsall.ism -d "TrueTalk" -r "Release" -a "TrueTalk" >> %SPEECH_ROOT%\builder\logs\ttsrelease.log
  38. rem build msi for Prompt Engine
  39. iscmdbld -p %SPEECH_ROOT%\tts\build\release\PromptEng.ism -d "MS Prompt Engine" -r "Release" -a "Prompt Engine" >> %SPEECH_ROOT%\builder\logs\PEdebug.log
  40. attrib +R %SPEECH_ROOT%\tts\build\release\*.ism
  41. goto :EOF
  42. :err
  43. echo "Usage: ttssetup [ debug | release ]"
  44. echo "Makes tts setup module(s)"
  45. goto :EOF
  46. :configerr
  47. echo Environment variable SPEECH_ROOT not set
  48. goto :EOF
  49. :EOF