diff options
author | Dean Sanner <dsanner@us.ibm.com> | 2013-10-08 14:48:49 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-10-10 21:53:56 -0500 |
commit | 4541c4a6046f2c8c325e4ef8b277b8da25bbec4e (patch) | |
tree | 83e6fac89ded5dd30496c7295aaa410645c44114 /src/build/tools | |
parent | 1a6ffb4281f186e1b6d08aff1163f55770e7a810 (diff) | |
download | talos-hostboot-4541c4a6046f2c8c325e4ef8b277b8da25bbec4e.tar.gz talos-hostboot-4541c4a6046f2c8c325e4ef8b277b8da25bbec4e.zip |
Updates to devtree for Stradale BU
Change-Id: I5d38b819d50e2f68e2d3b0de5ec3f020c49a9fc6
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/6559
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/build/tools')
-rwxr-xr-x | src/build/tools/addCopyright.pl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/build/tools/addCopyright.pl b/src/build/tools/addCopyright.pl index fd984a9ba..9b3107c72 100755 --- a/src/build/tools/addCopyright.pl +++ b/src/build/tools/addCopyright.pl @@ -259,6 +259,20 @@ foreach ( @Files ) next; } + ## + ## text files are valid, but should generate a warning. + if ("txt" eq $filetype) + { + print STDOUT "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n"; + print STDOUT "WARNING:: File $_ : Filetype: $filetype\n"; + print STDOUT " Skipping this file and continuing.\n"; + print STDOUT " If needed, Please add the copyright \n"; + print STDOUT " prolog manually.\n"; + print STDOUT "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n"; + + next; + } + ## extract the existing copyright block ( $DelimiterBegin, $CopyrightBlock, $DelimiterEnd ) = extractCopyrightBlock( $_ ); @@ -415,6 +429,10 @@ sub filetype { return "xml" } + if ( $filename =~ m/\.txt$/i ) + { + return "txt" + } if ( ( $filename =~ m/\.[cht]$/i ) ||( $filename =~ m/\.[cht]\+\+$/i ) ||( $filename =~ m/\.[cht]pp$/i ) |