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.

82 lines
1.5 KiB

  1. @echo off
  2. REM
  3. REM Copies the binaries from the localization to the source tree
  4. REM
  5. REM Set the location to usa if it wasn't passed in
  6. REM
  7. IF "%1" == "" (
  8. Echo No locale specified, exiting...
  9. exit
  10. ) ELSE (
  11. set LOC=%1
  12. )
  13. set SRC_SHARE=\\intlnt\ntdsclnt\build
  14. set SRC_BIN_LOC=%SRC_SHARE%\%LOC%\BINARIES
  15. set SRC_TOKEN=%SRC_SHARE%\%LOC%\TOKENS\dsclient.ex_
  16. set TARGET_BIN_LOC=.\binaries\%LOC%
  17. set SRC_HLP=%SRC_SHARE%\%LOC%\DOC\HELP\dsclient.hlp
  18. set SRC_HLP_DIR=%SRC_SHARE%\%LOC%\DOC\HELP
  19. set SRC_EULA=%SRC_SHARE%\%LOC%\DOC\EULA\EULA.TXT
  20. set SRC_EULA_DIR=%SRC_SHARE%\%LOC%\DOC\EULA
  21. set TARGET_HELP=.\HELP\%LOC%
  22. set TARGET_EULA=.\PACKAGE\%LOC%
  23. IF NOT EXIST %TARGET_BIN_LOC% (
  24. Echo "creating bin directory"
  25. Echo
  26. md %TARGET_BIN_LOC%
  27. )
  28. IF NOT EXIST %TARGET_HELP% (
  29. Echo "creating help directory"
  30. Echo
  31. md %TARGET_HELP%
  32. )
  33. IF NOT EXIST %TARGET_EULA% (
  34. Echo "creating package directory"
  35. Echo
  36. md %TARGET_EULA%
  37. )
  38. ECHO "Copying the binaries from..."
  39. ECHO %SRC_BIN_LOC%
  40. ECHO
  41. xcopy /Y %SRC_BIN_LOC% %TARGET_BIN_LOC%
  42. xcopy /Y %SRC_TOKEN% %TARGET_BIN_LOC%
  43. ECHO ""
  44. ECHO "Copying Help files from..."
  45. ECHO %SRC_HLP%
  46. ECHO ""
  47. REM if no help, we'll copy from US temporarily
  48. if NOT EXIST %SRC_HLP% (
  49. xcopy /y .\help\usa\*.* %TARGET_HELP%
  50. ) ELSE (
  51. xcopy /y %SRC_HLP_DIR%\*.* %TARGET_HELP%
  52. )
  53. ECHO ""
  54. ECHO "Copying EULA from..."
  55. ECHO %SRC_EULA%
  56. ECHO ""
  57. REM if no eula, we'll copy from US temporarily
  58. xcopy /y .\package\usa\*.* %TARGET_EULA%
  59. xcopy /y .\binaries\%LOC%\*.inf %TARGET_EULA%
  60. if EXIST %SRC_EULA% (
  61. xcopy /y %SRC_EULA_DIR%\*.* %TARGET_EULA%
  62. )