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.

93 lines
1.9 KiB

  1. @setlocal
  2. @if "%_echo%" == "" echo off
  3. set bldtools=%~dp0
  4. path %bldtools%;%path%
  5. call %1 %1 %2 %3 %4 %5
  6. set logfile=%logpath%\%~n0.log
  7. for %%f in (%logfile%) do mkdir %%~dpf 2>nul
  8. echo %~n0: start %date% %time% > %logfile%
  9. call %bldtools%\setlog %loglinkpath% %logpath%
  10. set prop=0
  11. :psfprop
  12. if not %psfroot%.==. goto targetpsf
  13. echo %~n0: no PSF root defined >> %logfile%
  14. echo %~n0: no PSF root defined
  15. goto endpsf
  16. :targetpsf
  17. if not %psfname%.==. goto sourcepsf
  18. echo %~n0: no PSF produced >> %logfile%
  19. echo %~n0: no PSF produced
  20. goto endpsf
  21. :sourcepsf
  22. if exist %psfname% goto dopsf
  23. echo %~n0: file %psfname% not found. >> %logfile%
  24. echo %~n0: file %psfname% not found.
  25. goto endpsf
  26. :dopsf
  27. set /a prop=%prop% + 1
  28. :endpsf
  29. if not %wwwroot%.==. goto targetexe
  30. echo %~n0: no WWW root defined >> %logfile%
  31. echo %~n0: no WWW root defined
  32. goto endexe
  33. :targetexe
  34. if not %patchexe%.==. goto sourceexe
  35. echo %~n0: no patch EXE produced >> %logfile%
  36. echo %~n0: no patch EXE produced
  37. goto endexe
  38. :sourceexe
  39. if exist %patchexe% goto doexe
  40. echo %~n0: file %patchexe% not found. >> %logfile%
  41. echo %~n0: file %patchexe% not found.
  42. goto endexe
  43. :doexe
  44. set /a prop=%prop% + 1
  45. :endexe
  46. if %prop% neq 2 goto leave
  47. for %%f in (%psfname%) do set src=%%~dpf
  48. for %%f in (%psfname%) do set file=%%~nxf
  49. echo call doprop %src% %psfroot% %file% >> %logfile%
  50. call doprop %src% %psfroot% %file%
  51. for %%f in (%patchexe%) do set src=%%~dpf
  52. for %%f in (%patchexe%) do set file=%%~nxf
  53. echo call doprop %src% %wwwroot% %file% >> %logfile%
  54. call doprop %src% %wwwroot% %file%
  55. :leave
  56. echo %~n0: end %date% %time% >> %logfile%
  57. endlocal