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.

20 lines
527 B

  1. #genmk.pl
  2. #this script can be helpful in generating mkrsys
  3. #usage: genmk.pl inputfile src_dir
  4. #
  5. # pass in two columsn to STDIN,
  6. # left side = src name
  7. # right side = dest name
  8. #
  9. # nadima
  10. $dest_prefix = "\$(binaries)\\";
  11. $src_prefix = $ARGV[1];
  12. open(INFILE, $ARGV[0]);
  13. while(<INFILE>)
  14. {
  15. chomp; #eat \n
  16. s/(\S*)\s*(\S*)//;
  17. print $dest_prefix . $2 . ": " . $src_prefix . $1 . "\n";
  18. # print $dest_prefix . $2 . ": " . "\$(tscbin)\\idfile" . "\n";
  19. print " copy \$** \$@\n\n";
  20. }