copybin.bat 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. if "%1"=="" goto Usage
  2. rem
  3. rem Copy the server related bits.
  4. rem
  5. if not exist %PROPDIR%\%1\server mkdir %PROPDIR%\%1\server
  6. if not exist %PROPDIR%\%1\server\config mkdir %PROPDIR%\%1\server\config
  7. if not exist %PROPDIR%\%1\server\debug mkdir %PROPDIR%\%1\server\debug
  8. if not exist %PROPDIR%\%1\server\retail mkdir %PROPDIR%\%1\server\retail
  9. if not exist %PROPDIR%\%1\server\shared mkdir %PROPDIR%\%1\server\shared
  10. xcopy %FEDDEBUGROOT%\fedsrv\fedsrv.exe %PROPDIR%\%1\server\debug
  11. xcopy %FEDDEBUGROOT%\fedsrv\fedsrv.pdb %PROPDIR%\%1\server\debug
  12. xcopy %FEDDEBUGROOT%\fedsrv\fedsrv.sym %PROPDIR%\%1\server\debug
  13. xcopy %FEDRETAILROOT%\fedsrv\fedsrv.exe %PROPDIR%\%1\server\retail
  14. xcopy %FEDRETAILROOT%\fedsrv\fedsrv.pdb %PROPDIR%\%1\server\retail
  15. xcopy %FEDRETAILROOT%\fedsrv\fedsrv.sym %PROPDIR%\%1\server\retail
  16. xcopy %FEDRETAILROOT%\fedperf\fedperf.dll %PROPDIR%\%1\server\shared
  17. xcopy %FEDRETAILROOT%\fedperf\fedperf.pdb %PROPDIR%\%1\server\shared
  18. xcopy %FEDSOURCEROOT%\setup\zticket.dll %PROPDIR%\%1\server\debug
  19. xcopy %FEDSOURCEROOT%\setup\zticketc.dll %PROPDIR%\%1\server\debug
  20. xcopy %FEDSOURCEROOT%\setup\zticket.dll %PROPDIR%\%1\server\retail
  21. xcopy %FEDSOURCEROOT%\setup\zticketc.dll %PROPDIR%\%1\server\retail
  22. xcopy %FEDSOURCEROOT%\fedperf\util\* %PROPDIR%\%1\server\config
  23. copy %FEDSOURCEROOT%\fedsrv\regini.txt %PROPDIR%\%1\server\config\fedsrv.txt
  24. rem
  25. rem Copy the database files.
  26. rem
  27. if not exist %PROPDIR%\%1\database mkdir %PROPDIR%\%1\database
  28. xcopy /E %FEDSOURCEROOT%\database\* %PROPDIR%\%1\database
  29. rem
  30. rem Copy the test related bits.
  31. rem
  32. if not exist %PROPDIR%\%1\test mkdir %PROPDIR%\%1\test
  33. xcopy %FEDDEBUGROOT%\test\pigs.exe %PROPDIR%\%1\test
  34. xcopy %FEDDEBUGROOT%\test\pigs.pdb %PROPDIR%\%1\test
  35. xcopy %FEDDEBUGROOT%\test\missctrl.exe %PROPDIR%\%1\test
  36. xcopy %FEDDEBUGROOT%\test\missctrl.pdb %PROPDIR%\%1\test
  37. xcopy %FEDSOURCEROOT%\test\sample\pigs\* %PROPDIR%\%1\test
  38. type %PROPDIR%\%1\test\setup.sed | sed s/BUILDNUM/%1/ > %PROPDIR%\%1\test\setup.bat
  39. xcopy %FEDDEBUGROOT%\test\techtree.exe %PROPDIR%\%1\test
  40. xcopy %FEDDEBUGROOT%\test\techtree.pdb %PROPDIR%\%1\test
  41. xcopy %FEDSOURCEROOT%\setup\zticketc.dll %PROPDIR%\%1\test
  42. xcopy %FEDSOURCEROOT%\setup\zticketc.pdb %PROPDIR%\%1\test
  43. xcopy %FEDSOURCEROOT%\tools\build\sed.exe %PROPDIR%\%1\test
  44. goto End
  45. :Usage
  46. echo Usage: copybin [build number]
  47. set BUILDERROR=1
  48. goto End
  49. :End