]>
git.saurik.com Git - apple/icu.git/blob - icuSources/tools/cpysearch/cpyscan.pl
2 # ***********************************************************************
4 # * Copyright (c) 2002-2005, International Business Machines Corporation
5 # * and others. All Rights Reserved.
6 # ***********************************************************************
8 # Search for and list files which don't have a copyright notice, and should.
12 my $icuSource = $ARGV[0];
13 my $ignore = "data/out/build|CVS|\\~|\\#|Debug|Release|\\.dll|\\.ilk|\\.idb|\\.pdb|\\.dsp|\\.dsw|\\.opt|\\.ncb|\\.vcproj|\\.sln|\\.suo|\\.cvsignore|\\.cnv|\\.res|\\.icu|\\.exe|\\.obj|\\.bin|\\.exp|\\.lib|\\.out|\\.plg|positions|unidata|\\.jar|\\.spp|\\.stub|\\.policy";
15 my $command = "find $icuSource -type f | fgrep -v -f cpyskip.txt";
16 my @files = `$command`;
17 @files = grep(!/$ignore/, @files);
19 foreach $file (@files) {
21 my @lines = `head
-n
20 "$file"`;
22 if (grep(/copyright.*(international|ibm)/i, @lines) == 0) {