blob: 0cf0d2b3c7f2a25c6ee8b28ae0946c4289fd2cb4 [file] [log] [blame]
#!/usr/bin/perl -w
# ********************************************************************
# * COPYRIGHT:
# * Copyright (c) 2002-2004, International Business Machines Corporation and
# * others. All Rights Reserved.
# ********************************************************************
use strict;
my $icuSource = $ARGV[0];
my $ignore = "data/out/build|CVS|\\~|\\#|Debug|Release|\\.dsp|\\.dsw|\\.opt|\\.ncb|\\.vcproj|\\.sln|\\.suo|\\.cvsignore|\\.cnv|\\.res|\\.icu|\\.exe|\\.obj|\\.exp|\\.lib|\\.out|\\.plg|positions|unidata|\\.jar|\\.spp|\\.stub|\\.policy";
my $command = "find $icuSource -type f";
my @files = `$command`;
@files = grep(!/$ignore/, @files);
my $file;
foreach $file (@files) {
chomp $file;
my @lines = `head -n 10 "$file"`;
if (grep(/copyright.*(international|ibm)/i, @lines) == 0) {
print "$file\n";
}
}