mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 10:29:59 -04:00
Exclude configuration files from the copyright mumbo-jumbo
This commit is contained in:
parent
62a92b7784
commit
d99788042d
3 changed files with 31 additions and 664 deletions
685
util/copyrights
685
util/copyrights
File diff suppressed because it is too large
Load diff
|
|
@ -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>) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue