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.

37 lines
855 B

  1. package ToolFix;
  2. #
  3. # (c) 2001 Microsoft Corporation. All rights reserved.
  4. #
  5. # ToolFix: use the PATH environment to pick the LANG specific binaries
  6. # to build self-extracting bits
  7. # Version: 0.01 (6/5/2001) : Inital
  8. #---------------------------------------------------------------------
  9. #
  10. $class='ToolFix';
  11. $VERSION = '0.01';
  12. require 5.003;
  13. # Use section
  14. use lib $ENV{RAZZLETOOLPATH};
  15. use GetParams;
  16. use Logmsg;
  17. use cklang;
  18. use strict;
  19. no strict 'vars';
  20. require Exporter;
  21. @ISA = qw(Exporter);
  22. @EXPORT= qw(AddToPath);
  23. $DEBUG = 0;
  24. my $ToolfixPath=$ENV{_NTDRIVE}."\\Toolfix";
  25. sub AddToPath{
  26. my $class=shift;
  27. my $lang =shift;
  28. $ENV{PATH}="$ToolfixPath\\$lang;$ENV{PATH}" if
  29. ($lang =~ /\S/ and $lang !~ /usa/i) ;
  30. $DEBUG and print STDERR $ENV{PATH}."\n";
  31. }
  32. 1;