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.

54 lines
1.6 KiB

  1. @if not "%1" == "" goto start
  2. @echo cd to the CA directory, then run %0 %%windir%%\certocm.log
  3. @echo Or run %0 %%windir%%\certocm.log CA_Tree_Root
  4. @goto exit
  5. :start
  6. @set _inlog_=%1
  7. @set _catree_=%2
  8. @if "%_catree_%" == "" set _catree_=.
  9. @set _csfile_=%_catree_%\include\csfile.h
  10. @if not exist %_csfile_% set _csfile_=%_catree_%\include\initcert.h
  11. @set _res_=%_catree_%\include\clibres.h %_catree_%\include\setupids.h %_catree_%\ocmsetup\res.h
  12. @set _ocmtmp_=%temp%\ocmtmp.txt
  13. @set _ocmsed1_=%temp%\ocmtmp1.sed
  14. @set _ocmsed2_=%temp%\ocmtmp2.sed
  15. @rem #define __dwFILE_OCMSETUP_BROWSEDI_CPP__ 101
  16. @qgrep -e "#define.*__dwFILE_" %_csfile_% > %_ocmtmp_%
  17. @sed ^
  18. -e "s;\/*#define[ ][ ]*__dwFILE_;;" ^
  19. -e "s;\(.*\)__[ ][ ]*\([0-9][0-9]*\).*;\1 \2;" ^
  20. -e "s;_CPP;.CPP;" ^
  21. -e "s;_;\\\\;g" ^
  22. -e "s;\(.*\) \(.*\);s\;\^\2\\.\\([0-9][0-9]*\\)\\.\;\1(\\1): \;;" %_ocmtmp_% | tr [A-Z] [a-z] > %_ocmsed1_%
  23. @echo s;^^0\.\([0-9][0-9]*\)\.;MessageBox: \1: ;>> %_ocmsed1_%
  24. @rem #define IDS_LOG_BAD_VALIDITY_PERIOD_COUNT 1817
  25. @sed -e "s;//.*;;" %_res_% | qgrep -e "\<IDS_" > %_ocmtmp_%
  26. @sed ^
  27. -e "s;#define[ ][ ]*;;" ^
  28. -e "s;\([^ ]*\)[ ][ ]*\([0-9][0-9]*\).*;\1 \2;" ^
  29. -e "s;\(.*\) \(.*\);s\;: \2: \;: \1: \;;" %_ocmtmp_% > %_ocmsed2_%
  30. @echo s;^^\(==*\)$;}\>> %_ocmsed2_%
  31. @echo \1\>> %_ocmsed2_%
  32. @echo {;>> %_ocmsed2_%
  33. @sed -f %_ocmsed1_% %_inlog_% | sed -f %_ocmsed2_%
  34. @if exist %_ocmtmp_% del %_ocmtmp_%
  35. @if exist %_ocmsed1_% del %_ocmsed1_%
  36. @if exist %_ocmsed2_% del %_ocmsed2_%
  37. @set _inlog_=
  38. @set _catree_=
  39. @set _csfile_=
  40. @set _res_=
  41. :exit