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.

58 lines
1.3 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. rem
  13. rem Move to the right place in the enlistment tree
  14. rem
  15. echo The following script will replace all the source files
  16. echo under %sdxroot%\printscan\faxsrv\src
  17. echo Press Ctrl-C now to abort or
  18. pause
  19. echo Marking source files are non-Read-only
  20. attrib -r %1\*.* /s
  21. echo Deleting all sources...
  22. cd %sdxroot%\printscan\faxsrv\src
  23. sd delete ...
  24. cd %sdxroot%\printscan\faxsrv
  25. sd submit
  26. rem *******************************************************
  27. rem * *
  28. rem * S O U R C E S *
  29. rem * *
  30. rem *******************************************************
  31. echo Copying new sources...
  32. cd %sdxroot%\printscan\faxsrv\src
  33. xcopy %1\src\*.* . /s
  34. echo Adding sources...
  35. dir /s/b/a-d-h | sd -x - add
  36. sd submit
  37. echo All done.
  38. goto end
  39. :not_razzle
  40. echo Please run this script from a Whistler razzle environment.
  41. goto end
  42. :usage
  43. echo Please type the path to the root of the sources and binaries (root of SRC and USA dirs)
  44. goto end
  45. :end
  46. endlocal