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.

56 lines
1.3 KiB

  1. set FileName=%1
  2. set FilePath=%2
  3. rem %3 is file type
  4. set FileType=%3
  5. rem %7 bin path in loctree
  6. set LocTreePath=%7
  7. if %FileType%==external goto :eof
  8. if %FileType%==notloc goto :eof
  9. if %FileType%==fe-file goto :eof
  10. if %FileType%==manual goto :eof
  11. if %FileType%==perf goto :eof
  12. if %FileType%==nobin goto :eof
  13. if Not %_BuildArch%==ia64 (
  14. if %Filetype%==win64 goto :eof
  15. if %Filetype%==inf64 goto :eof
  16. )
  17. if %LocTreePath%==lab06 (
  18. if NOT %LabName%==lab06 goto :eof
  19. )
  20. SHIFT /2
  21. SHIFT /2
  22. rem 11's arg for ia64 is shifted to %9
  23. set is64flag=%9
  24. if %is64flag%==ia64 goto eof
  25. if %is64flag%==ia64only goto eof
  26. set ResourcePath=%TmpResPath%
  27. if Not exist %ResourcePath%\us\%FilePath%\%FileName%.tok (
  28. echo US %FilePath%\%FileName%.tok FailedToTokenize >> %LogFile%
  29. set _ErrorFlag=FAIL
  30. goto end
  31. )
  32. if Not exist %ResourcePath%\pseudo\%FilePath%\%FileName%.tok (
  33. echo Pseudo %FilePath%\%FileName%.tok FailedToTokenize >> %LogFile%
  34. set _ErrorFlag=FAIL
  35. goto end
  36. )
  37. rem if tokenization passed check if file ploced correctly.
  38. fc /u %ResourcePath%\us\%FilePath%\%FileName%.tok %ResourcePath%\pseudo\%FilePath%\%FileName%.tok 2> nul > nul
  39. if %errorlevel%==0 (
  40. echo PlocError %FilePath%\%FileName%.tok did not ploc >> %LogFile%
  41. set _ErrorFlag=FAIL
  42. )
  43. :end
  44. :eof