diff options
author | Mark Wenning <wenning@us.ibm.com> | 2011-08-24 18:20:42 -0500 |
---|---|---|
committer | Mark W. Wenning <wenning@us.ibm.com> | 2011-08-24 18:27:23 -0500 |
commit | 63e86a511680723c3cedaa6728bb9f13d40ce848 (patch) | |
tree | d350704b8f72348f4a42d56fc55c5e507aff31d7 /src/build/tools | |
parent | a30566703a3c0c3511cfc20ab1fbc837234dabde (diff) | |
download | talos-hostboot-63e86a511680723c3cedaa6728bb9f13d40ce848.tar.gz talos-hostboot-63e86a511680723c3cedaa6728bb9f13d40ce848.zip |
copyright fix
Change-Id: I2076dfcfe88b7c598ad24a64e1602df4961cc618
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/281
Tested-by: Jenkins Server
Reviewed-by: Mark W. Wenning <wenning@us.ibm.com>
Diffstat (limited to 'src/build/tools')
-rwxr-xr-x | src/build/tools/addCopyright.pl | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/build/tools/addCopyright.pl b/src/build/tools/addCopyright.pl index d57b713bb..a8941d20b 100755 --- a/src/build/tools/addCopyright.pl +++ b/src/build/tools/addCopyright.pl @@ -135,30 +135,31 @@ while (defined($_ = shift)) { if ("Unknown" eq $filetype) { - print "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"; - print "WARNING:: File $_ :Unknown Filetype: $_"; - print "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"; + print "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n"; + print "WARNING:: File $_ :Unknown Filetype: $_\n"; + print "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n"; ## exit 1; + next; } if ( hasoldcopyrightblock( $_, $filetype ) ) { print "ERROR File $_: has old copyright block, please fix\n"; exit 2; } - + if ( ! hascopyrightblock( $_, $filetype ) ) { print "ERROR File $_: Missing Copyright notice!!!\n"; exit 3; } - + # good file next; } ## ## update - ## Continue with a warning for unknown filetype - + ## Continue with a warning for unknown filetype - ## if ($operation =~ m/update/i) { @@ -315,7 +316,7 @@ sub filetype ||( $filename =~ m/\.lidhdr$/i ) ||( $filename =~ m/\.vpdinfo$/i ) ||( $filename =~ m/\.pdf$/i ) - + ) { # Known, but we can't deal with it so call it unknown. @@ -414,7 +415,7 @@ sub hascopyrightblock { my ( $filename, $filetype ) = @_; my $file = `head -180 $filename`; # Must appear in first 180 lines. - + #print $filename; #print $file; #print $DELIMITER_BEGIN; |