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.

71 lines
1.8 KiB

  1. @REM -----------------------------------------------------------------
  2. @REM
  3. @REM ChkSource.cmd - AndrewOt
  4. @REM
  5. @REM Run a few checks on our build sources
  6. @REM
  7. @REM Copyright (c) Microsoft Corporation. All rights reserved.
  8. @REM
  9. @REM -----------------------------------------------------------------
  10. @if defined _CPCMAGIC goto CPCBegin
  11. @perl -x "%~f0" %*
  12. @goto :EOF
  13. #!perl
  14. use strict;
  15. use lib $ENV{RAZZLETOOLPATH} . "\\PostBuildScripts";
  16. use lib $ENV{RAZZLETOOLPATH};
  17. use PbuildEnv;
  18. use ParseArgs;
  19. sub Usage { print<<USAGE; exit(1) }
  20. Run as a scheduled task to verify accuracy of sources. There are
  21. no variables the program will verify client sources match SD sources
  22. for the same file version number.
  23. The script sends a mail with a link to the log file. (hard-coded)
  24. USAGE
  25. parseargs('?' => \&Usage);
  26. # *** TEMPLATE CODE ***
  27. $ENV{"_CPCMAGIC"}++;exit(system($0)>>8);
  28. __END__
  29. @:CPCBegin
  30. @set _CPCMAGIC=
  31. @setlocal ENABLEDELAYEDEXPANSION ENABLEEXTENSIONS
  32. @if not defined DEBUG echo off
  33. REM ------------------------SCRIPT-----------------------------------------
  34. REM SD verification commands
  35. pushd %SDXROOT%
  36. set Projects=admin base com drivers ds enduser inetcore inetsrv multimedia net printscan . sdktools shell termsrv windows
  37. for %%a in (%Projects%) do (
  38. if exist %%a (
  39. pushd %%a
  40. sd diff -sE ...>%_NTDRIVE%\release\ChkSource.txt
  41. sd opened ...
  42. popd
  43. )
  44. )
  45. popd
  46. REM Send mail variables below.
  47. set sender=%COMPUTERNAME%
  48. set Title=ChkSource Results from %COMPUTERNAME%
  49. REM Change location below to a known share with wright permissioins.
  50. set Message=ChkSource results are at \\\%COMPUTERNAME%\release\ChkSource.txt
  51. REM Enter user alias/s to recieve mail here.
  52. set Receiver=andrewot
  53. REM Perl send mail function.
  54. perl -e "require '%RazzleToolPath%\sendmsg.pl';sendmsg('-v','%COMPUTERNAME%','%Title%','%Message%','%Receiver%');"