diff options
author | Zane Shelley <zshelle@us.ibm.com> | 2012-08-09 16:05:45 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2012-08-22 15:26:03 -0500 |
commit | dd6e436cdb10ef09a73490e8ddb8df6f84d74817 (patch) | |
tree | 7d8bb41bc2f3001fc2dcc0857910de1d3fee0b15 /src/build/tools/addCopyright.pl | |
parent | f6e44f49e8ab7a25afb7293388df37311c55bf95 (diff) | |
download | talos-hostboot-dd6e436cdb10ef09a73490e8ddb8df6f84d74817.tar.gz talos-hostboot-dd6e436cdb10ef09a73490e8ddb8df6f84d74817.zip |
Added support in addCopyright.pl for PRD rule files
Change-Id: Id99d42632fe7a9259e6ab3e8474b0aa3caa3a059
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1511
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/build/tools/addCopyright.pl')
-rwxr-xr-x | src/build/tools/addCopyright.pl | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/build/tools/addCopyright.pl b/src/build/tools/addCopyright.pl index c603c4014..c3116a973 100755 --- a/src/build/tools/addCopyright.pl +++ b/src/build/tools/addCopyright.pl @@ -486,6 +486,10 @@ sub filetype { return "xml" } + if ( $filename =~ m/\.rule$/i ) + { + return "PrdRuleFile" + } if ( ( $filename =~ m/\.emx$/i ) ||( $filename =~ m/\.odt$/i ) ||( $filename =~ m/\.gitignore$/i ) @@ -508,7 +512,7 @@ sub filetype } $type =~ s/^\s*//; $type =~ s/\s*$//; - my %knownTypes = qw/Assembly Assembly Automake Automake Autoconf Autoconf C C CVS CVS EmxFile EmxFile LinkerScript LinkerScript Makefile Makefile MofFile MofFile Perl Perl Python Python RPC RPC Shellscript Shellscript Tcl Tcl/; + my %knownTypes = qw/Assembly Assembly Automake Automake Autoconf Autoconf C C CVS CVS EmxFile EmxFile LinkerScript LinkerScript Makefile Makefile MofFile MofFile Perl Perl PrdRuleFile PrdRuleFile Python Python RPC RPC Shellscript Shellscript Tcl Tcl/; return $type if defined($knownTypes{$type}); } { # Other random files containing non-printable characters. @@ -764,6 +768,7 @@ sub removeCopyrightBlock( $$ ) ("CVS" eq $filetype) or ("Makefile" eq $filetype) or ("Perl" eq $filetype) or + ("PrdRuleFile" eq $filetype) or ("Python" eq $filetype) or ("Shellscript" eq $filetype) or ("Tcl" eq $filetype) @@ -823,7 +828,8 @@ sub addEmptyCopyrightBlock( $$$ ) { print OUTPUT "# $DELIMITER_BEGIN $DELIMITER_END \n"; } - elsif ("Makefile" eq $filetype ) + elsif ( ("Makefile" eq $filetype) or + ("PrdRuleFile" eq $filetype) ) { print OUTPUT "# $DELIMITER_BEGIN $DELIMITER_END \n"; } @@ -1003,7 +1009,8 @@ EOF { $IBMCopyrightBlock = addPrologComments($IBMCopyrightBlock, '#', ''); } - elsif ( "Makefile" eq $filetype ) + elsif ( ("Makefile" eq $filetype) or + ("PrdRuleFile" eq $filetype) ) { $IBMCopyrightBlock = addPrologComments($IBMCopyrightBlock, '#', ''); } |