Commit d9978804 authored by Ondřej Surý's avatar Ondřej Surý

Exclude configuration files from the copyright mumbo-jumbo

parent 62a92b77
This diff is collapsed.
......@@ -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)$/) {
......
......@@ -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>) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment