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.

71 lines
1.5 KiB

  1. @echo off
  2. echo. >> %bldDir%\myssync.out
  3. echotime /t "*** MYSSYNC.BAT Started ***" >> %bldDir%\myssync.out
  4. echo. >> %bldDir%\myssync.out
  5. if "%1%" == "" goto usage
  6. if exist myssync.dat del myssync.dat
  7. :loopTop
  8. if "%1%" == "" goto loopExit
  9. set TGT=%1%
  10. if not exist %TGT%???.dat goto noDat
  11. echotime /t "*** Processing build data file %TGT%" >> %bldDir%\myssync.out
  12. echo Processing data file %1...
  13. cat %TGT%???.dat >> myssync.dat
  14. shift
  15. goto loopTop
  16. :loopExit
  17. echo. >> %bldDir%\myssync.out
  18. if exist %bldDir%\ssync.out del %bldDir%\ssync.out
  19. awk -f ssync1.awk myssync.dat | sort > myssync.tmp
  20. uniq myssync.tmp | awk -f ssync2.awk > tmpssync.bat
  21. del myssync.tmp
  22. :lock
  23. REM cookie -r -c "Locked for build ssync - AnthonyR"
  24. if errorlevel 0 goto lockX
  25. sleep 5
  26. goto lock
  27. :lockX
  28. call tmpssync.bat
  29. %bldDrive%
  30. cd %bldDir%
  31. del tmpssync.bat
  32. :unlock
  33. REM cookie -f
  34. if errorlevel 0 goto unlockX
  35. sleep 5
  36. goto unlock
  37. :unlockX
  38. cat %bldDir%\ssync.out
  39. %myGrep% -v -y installing %bldDir%\ssync.out >> %bldDir%\myssync.out
  40. goto exit
  41. :noDat
  42. echo.
  43. echo ERROR: No data file found for %TGT%
  44. goto usage
  45. :usage
  46. echo.
  47. echo usage: myssync Target
  48. echo.
  49. echo Examples:
  50. echo.
  51. echo myssync wfw
  52. echo myssync ifs
  53. echo myssync ids
  54. echo.
  55. goto exit
  56. :exit
  57. set TGT=
  58. if exist myssync.dat del myssync.dat
  59. echotime /t "*** myssync.bat Done ***" >> %bldDir%\myssync.out