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.

67 lines
1.7 KiB

  1. @echo off
  2. REM ------------------------------------------------------------------
  3. REM
  4. REM indexsym.cmd
  5. REM Begin symbol indexing for the current build
  6. REM
  7. REM Copyright (c) Microsoft Corporation. All rights reserved.
  8. REM
  9. REM ------------------------------------------------------------------
  10. perl -x "%~f0" %*
  11. goto :EOF
  12. #!perl
  13. use strict;
  14. use lib $ENV{RAZZLETOOLPATH} . "\\PostBuildScripts";
  15. use lib $ENV{RAZZLETOOLPATH};
  16. use PbuildEnv;
  17. use ParseArgs;
  18. use Logmsg;
  19. use BuildName;
  20. use symindex;
  21. sub Usage { print<<USAGE; exit(1) }
  22. indexsym [-l <language>]
  23. Begins symbol indexing of symbols found under the binaries tree.
  24. USAGE
  25. parseargs('?' => \&Usage);
  26. if ($ENV{LANG} !~ /usa/i) {
  27. #logmsg( "Symbol indexing is not currently implemented for localized builds.");
  28. #return;
  29. }
  30. # the next two checks are redundant because of the $lang !~ /usa/i check above
  31. # but if that check is ever taken out, we still want to skip symbol indexing
  32. # for pseudo and mirror
  33. # Don't index symbols for pseudoloc builds
  34. if ($ENV{LANG} =~ /psu/i) {
  35. logmsg("Don't index pseudoloc builds - exiting");
  36. exit;
  37. }
  38. # Don't index symbols for mirrored builds
  39. if ($ENV{LANG} =~ /mir/i) {
  40. logmsg("Don't index mirrored builds - exiting");
  41. exit;
  42. }
  43. # check if there is a binaries tree to work with
  44. if (!-e $ENV{_NTPOSTBLD}) {
  45. errmsg("Binaries tree $ENV{_NTPOSTBLD} does not exist");
  46. exit;
  47. }
  48. # get BuildName:
  49. my $BuildName = build_name();
  50. logmsg( "Symbols will be indexed for $BuildName.");
  51. # this variable does not appear to be used anywhere, I'm setting it to a
  52. # resonable value for now until I can clean up symindex --JeremyD
  53. my $LogFileName = "$ENV{TEMP}\\indexsym.log";
  54. &symindex::IndexSymbols($ENV{LANG}, $BuildName, $LogFileName);