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.

33 lines
829 B

  1. @if "%echo%"=="" echo off
  2. if "%1"=="all" goto :doall
  3. setlocal
  4. set _tooldir=%2
  5. if not "%_tooldir%"=="" goto :checktooldir
  6. if "%processor_architecture%"=="x86" set _tooldir=i386
  7. if "%processor_architecture%"=="X86" set _tooldir=i386
  8. if "%processor_architecture%"=="IA64" set _tooldir=ia64
  9. :checktooldir
  10. if "%_tooldir%"=="i386" goto :step2
  11. if "%_tooldir%"=="ia64" goto :step2
  12. goto :usage
  13. :step2
  14. if "%1"=="pdlparse" goto :step3
  15. if "%1"=="nfparse" goto :step3
  16. if "%1"=="ascparse" goto :step3
  17. goto :usage
  18. :step3
  19. cd %1
  20. build -cZ
  21. cd ..
  22. :step4
  23. sd edit bin\%_tooldir%\%1.exe
  24. copy %1\obj\%_tooldir%\%1.exe bin\%_tooldir%\%1.exe
  25. goto :done
  26. :usage
  27. echo usage: update [all^|pdlparse^|ascparse^|nfparse] {i386^|a64}
  28. goto :done
  29. :doall
  30. call update pdlparse %2
  31. call update ascparse %2
  32. call update nfparse %2
  33. :done