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.

25 lines
777 B

  1. # outlist.pl - Generates an output file suitable for session.exe.
  2. #
  3. # [email protected] July 1997
  4. #
  5. # usage: perl outlist.pl
  6. #
  7. # -- Run from the lowest common directory.
  8. # -- Output goes to stdout, so you'll probably want to pipe it to a file.
  9. open(INFILE, "status -r |");
  10. while (<INFILE>) {
  11. next if /^$/;
  12. if (/^Status for \\\\(..)[^\\]*([^,]*)/) {
  13. $mshtml_root = "$1$2";
  14. $mshtml_root =~ tr/[A-Z]/[a-z]/;
  15. }
  16. elsif (/^Subdirectory ([^,]*)/) {
  17. $subdir = $1;
  18. $subdir .= "\\" if not substr($subdir, -1, 1) eq "\\";
  19. }
  20. else {
  21. @args = split(" +", $_);
  22. print "$mshtml_root$subdir$args[0]\n" unless ($args[1] eq "local-ver" or $args[3] eq "*update" or $args[3] eq "*add");
  23. }
  24. }