2002-12-18 08:33:21 +00:00
|
|
|
#!/usr/bin/perl -w
|
|
|
|
# ********************************************************************
|
|
|
|
# * COPYRIGHT:
|
2003-12-19 23:30:30 +00:00
|
|
|
# * Copyright (c) 2002-2003, International Business Machines Corporation and
|
2002-12-18 08:33:21 +00:00
|
|
|
# * others. All Rights Reserved.
|
|
|
|
# ********************************************************************
|
|
|
|
use strict;
|
|
|
|
|
2003-12-19 23:30:30 +00:00
|
|
|
my $icuSource = $ARGV[0];
|
2003-12-20 03:24:06 +00:00
|
|
|
my $ignore = "CVS|\\~|\\#|Debug|Release|\\.dsp|\\.dsw|\\.opt|\\.ncb|\\.vcproj|\\.sln|\\.suo|\\.cvsignore|\\.cnv|\\.res|\\.icu|\\.exe|\\.out|build|\\.plg|positions|unidata|\\.jar|\\.spp|\\.stub|\\.policy";
|
2002-12-18 08:33:21 +00:00
|
|
|
|
2003-12-19 23:30:30 +00:00
|
|
|
my ($sec, $min, $hour, , $day, $mon, $year, $wday, $yday, $isdst) = localtime;
|
|
|
|
$year += 1900;
|
|
|
|
|
|
|
|
my $command = "find $icuSource -type f -mtime -$yday";
|
2002-12-18 08:33:21 +00:00
|
|
|
my @files = `$command`;
|
|
|
|
@files = grep(!/$ignore/, @files);
|
|
|
|
my $file;
|
|
|
|
foreach $file (@files) {
|
|
|
|
my @lines = `head -n 10 $file`;
|
2003-12-19 23:30:30 +00:00
|
|
|
if (grep(/copyright.*$year/i, @lines) == 0) {
|
2002-12-18 08:33:21 +00:00
|
|
|
print "$file";
|
|
|
|
}
|
|
|
|
}
|