2004-10-22 20:06:05 +04:00
|
|
|
#!/usr/bin/perl
|
2004-11-22 03:37:56 +03:00
|
|
|
#
|
2004-11-22 04:38:40 +03:00
|
|
|
# Copyright (c) 2004-2005 The Trustees of Indiana University.
|
|
|
|
# All rights reserved.
|
|
|
|
# Copyright (c) 2004-2005 The Trustees of the University of Tennessee.
|
|
|
|
# All rights reserved.
|
2004-11-28 23:09:25 +03:00
|
|
|
# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
# University of Stuttgart. All rights reserved.
|
2004-11-22 04:38:40 +03:00
|
|
|
# $COPYRIGHT$
|
|
|
|
#
|
|
|
|
# Additional copyrights may follow
|
|
|
|
#
|
2004-11-22 03:37:56 +03:00
|
|
|
# $HEADER$
|
|
|
|
#
|
2004-10-22 20:06:05 +04:00
|
|
|
|
|
|
|
if (scalar(@ARGV) != 1) {
|
|
|
|
print "Usage: generate_file_list <diff file>\n";
|
|
|
|
exit(3);
|
|
|
|
}
|
|
|
|
|
|
|
|
$file_name = @ARGV[0];
|
|
|
|
open(FILE,"$file_name") || print "File count not be opened\n";
|
|
|
|
open(TEMP,"> file_list") || print "Could not open file for writing\n";
|
|
|
|
while (<FILE>) {
|
|
|
|
if (/Index/) {
|
|
|
|
s/^Index:\s*//g;
|
|
|
|
print TEMP;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
close(TEMP);
|
|
|
|
close($file_name);
|
|
|
|
|