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.

22 lines
766 B

  1. $DependencyListFile=$ARGV[0];
  2. $OutPutFile=($ARGV[1]);
  3. $BuildErrorMsg="nmake : error PTHVAR : ";
  4. open (DEPLIST,$DependencyListFile) || die "$BuildErrorMsg Unable to open dependencylist.txt at,".$DependencyListFile." for input\n";
  5. @Dependencies=<DEPLIST>;
  6. close DEPLIST;
  7. foreach (@Dependencies) {
  8. s/^\s*(.*?)\s*\\$/\L$1/;
  9. push @NewArray,((m/\\/) ? substr($_,$[,(rindex $_,"\\",(length $_)))."; \\\n" : ".; \\\n");
  10. }
  11. undef %DupSmasher;
  12. @UniqueArray = grep(!$DupSmasher{$_}++, @NewArray);
  13. open (OUTPUT,">$OutPutFile") || die "$BuildErrorMsg Unable to open $OutPutFile at ".$OutPutFile." for output\n";
  14. print OUTPUT "DEPENDENCY_PATHS=\\\n";
  15. print OUTPUT @UniqueArray;
  16. print OUTPUT "\nDEPENDENCY_PATHS=\$(DEPENDENCY_PATHS:; =;)\n";
  17. close OUTPUT;