Exclude configuration files from the copyright mumbo-jumbo

This commit is contained in:
Ondřej Surý
2018-11-12 15:30:40 +01:00
parent 62a92b7784
commit d99788042d
3 changed files with 31 additions and 664 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -42,6 +42,8 @@ while (<CHANGES>) {
util/newcopyrights | # our output
\.bak$ | # created by update_copyrights
\.md$ | # READMEs and such
\.conf$ | # configuration files
\.conf\.in$ | # configuration files
/(dnssafe|openssl)/.*\.[ch]$ | # imported
doc/(draft|expired|rfc)/ # imported
%x);
@@ -92,10 +94,6 @@ while (<CHANGES>) {
$base = $base . ".docbook";
} elsif ($base =~ /\/Makefile$/) {
$file_types{$_} = "MAKE";
} elsif ($base =~ /\/(named|rndc|good|bad).{0,2}\.conf$/) {
$file_types{$_} = "CONF-C";
} elsif ($base =~ /\/checkconf\/(good|bad)-.*\.conf$/) {
$file_types{$_} = "CONF-C";
} elsif ($base =~ /\/resolv.?\.conf$/) {
$file_types{$_} = "CONF-SH";
} elsif ($base =~ /\.(db|hint)$/) {

View File

@@ -184,7 +184,7 @@ foreach $file (keys %file_types) {
$start_comment = "";
$end_comment = "";
$first = "";
if ($type =~ /^(C|YACC|CONF-C)$/) {
if ($type =~ /^(C|YACC)$/) {
$c_comment = 1;
$start_comment = "/*\n";
$prefix = " * ";
@@ -518,7 +518,7 @@ foreach $file (keys %file_types) {
print TARGET "\n";
}
if (($type eq "C" || $type eq "CONF-C") &&
if (($type eq "C") &&
$sysyears =~ /$this_year/) {
my $body = "";
while (<SOURCE>) {