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.

49 lines
1.4 KiB

  1. @if not "%1" == "" goto usage
  2. @if not exist certocm0.inf goto wrondir
  3. @goto start
  4. :wrongdir
  5. @echo certocm0.inf does not exist!
  6. @echo %0 must be invoked in the ISPU\ca\ocmsetup subdirectory.
  7. @goto exit
  8. :usage
  9. @echo.
  10. @echo.Usage: %0
  11. @echo.
  12. @echo. %0 builds a new certocm.inf
  13. @goto exit
  14. :start
  15. @set inftmp=inf.tmp
  16. @set lsttmp=lst.tmp
  17. @set csinf_slmfiles=certcdf.bat certsrv.ddf certocm.inf certsrv.inf mkcsrel.bat
  18. sd edit %csinf_slmfiles%
  19. @copy certsrv0.ddf certsrv.ddf
  20. @sed -e "1,/;CERTSRV FILES:/d" -e "/[;=\[]/d" -e "/DELETE_ONLY/d" -e "/HKLM/d" -e "s/.*, //" -e "s;,,.*;;" certocm0.inf > %lsttmp%
  21. @type %lsttmp% >> certsrv.ddf
  22. @sed -e "/^$/d" -e "s;^\.\.\\;;" -e "s;\(.*\);@echo ^<HASH^>%%binaries%%\\\1=%%binaries%%\\\1;" %lsttmp% | sort > certcdf.bat
  23. @copy mkcsrel0.bat mkcsrel.bat
  24. @sed -f mkcsrel.sed %lsttmp% >> mkcsrel.bat
  25. @echo :exit>> mkcsrel.bat
  26. @sed -e "s;DELETE_ONLY;;" -e "s;^\.\.\\;;" -e "s;, \.\.\\;, ;" certocm0.inf > %inftmp%
  27. @sed -e "s;BASEINSTALL_ONLY;;" -e "/START_CABINSTALL_ONLY/,$d" %inftmp% > certocm.inf
  28. @qgrep -v BASEINSTALL_ONLY %inftmp% > certsrv.inf
  29. @echo.
  30. @echo Don't forget to check in the following files in CA\ocmsetup:
  31. @for %%i in (%csinf_slmfiles%) do @echo %%i
  32. @echo.
  33. :exit
  34. @rem @if exist %inftmp% del %inftmp%
  35. @rem @if exist %lsttmp% del %lsttmp%
  36. @set inftmp=
  37. @set lsttmp=
  38. @set csinf_slmfiles=