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

Remove support for adding copyright to zone data

parent d9978804
Pipeline #6477 failed with stages
in 8 minutes and 47 seconds
This diff is collapsed.
......@@ -42,6 +42,17 @@ while (<CHANGES>) {
util/newcopyrights | # our output
\.bak$ | # created by update_copyrights
\.md$ | # READMEs and such
\.data$ | # zone files
\.data[0-9]$ | # zone files
\.data\.in$ | # zone files
\.db$ | # zone files
\.db\.in$ | # zone files
/db\.[^/]*$ | # zone files
/[^/]*\.db\.[^/]* | # zone files
\.hints?$ | # zone files
\.hints?\.in$ | # zone files
/hints$ | # zone files
\.zone$ | # zone files
\.conf$ | # configuration files
\.conf\.in$ | # configuration files
/(dnssafe|openssl)/.*\.[ch]$ | # imported
......@@ -96,8 +107,6 @@ while (<CHANGES>) {
$file_types{$_} = "MAKE";
} elsif ($base =~ /\/resolv.?\.conf$/) {
$file_types{$_} = "CONF-SH";
} elsif ($base =~ /\.(db|hint)$/) {
$file_types{$_} = "ZONE";
} elsif ($base =~ /\.md$/) {
$file_types{$_} = "MKD";
} elsif ($base =~ /(\/\.(gitignore|gitattributes)|Atffile|Kyuafile|\.(gif|jpg))$/i) {
......
......@@ -177,7 +177,6 @@ foreach $file (keys %file_types) {
$m4_comment = 0;
$sgml_comment = 0;
$mkd_comment = 0;
$zone_comment = 0;
$man_comment = 0;
$python_comment = 0;
$python_bin_comment = 0;
......@@ -202,9 +201,6 @@ foreach $file (keys %file_types) {
$start_comment = "############################################################################\n";
$prefix = "# ";
$end_comment = "############################################################################\n"
} elsif ($type eq "ZONE" || $type eq "MC") {
$zone_comment = 1;
$prefix = "; ";
} elsif ($type eq "MAN") {
$man_comment = 1;
$prefix = ".\\\" ";
......@@ -305,7 +301,7 @@ foreach $file (keys %file_types) {
} else {
$first = $_;
}
} elsif (($m4_comment || $zone_comment || $man_comment) &&
} elsif (($m4_comment || $man_comment) &&
/^\Q$nonspaceprefix\E/) {
while (/^\Q$nonspaceprefix\E\s*$/) {
......
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