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.

48 lines
1.3 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 %7 %8 %9
  6. set logfile=%logpath%\%~n0.log
  7. for %%f in (%logfile%) do mkdir %%~dpf 2>nul
  8. for %%f in (%patching%\update\z) do mkdir %%~dpf 2>nul
  9. echo %~n0: start %date% %time% > %logfile%
  10. if exist %patching%\update\%updatever% erase %patching%\update\%updatever%
  11. call %bldtools%\setlog %loglinkpath% %logpath%
  12. :urlcheck
  13. if exist %patching%\update\update.url goto verbuild
  14. :urlfail
  15. echo %~n0: File %patching%\update\update.url is missing. >> %logfile%
  16. echo %~n0: File %patching%\update\update.url is missing.
  17. goto leave
  18. :verbuild
  19. echo vertool %newfiles%\update\update.inf %patching%\update\update.url /files:%newfiles% /out:%patching%\update\%updatever% >> %logfile%
  20. vertool %newfiles%\update\update.inf %patching%\update\update.url /files:%newfiles% /out:%patching%\update\%updatever% >> %logfile%
  21. if not errorlevel 1 goto done
  22. :verfail
  23. echo %~n0: VERTOOL failed: errorlevel %errorlevel%
  24. goto leave
  25. :done
  26. if not exist %patching% goto verfail
  27. echo %~n0 finished %patching%\update\%updatever%
  28. :leave
  29. echo %~n0: end %date% %time% >> %logfile%
  30. endlocal