2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-28 13:08:06 +00:00

automate insertion of copyright year list into Bv9ARM-book.xml

This commit is contained in:
Mark Andrews 2016-11-26 07:49:23 +11:00
parent 3941801b72
commit e527dcdb00
2 changed files with 7 additions and 0 deletions

View File

@ -10,6 +10,7 @@
<book xmlns="http://docbook.org/ns/docbook" version="5.0">
<info>
<title>BIND 9 Administrator Reference Manual</title>
<!-- insert copyright start -->
<copyright>
<year>2000</year>
<year>2001</year>
@ -27,8 +28,10 @@
<year>2013</year>
<year>2014</year>
<year>2015</year>
<year>2016</year>
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
</copyright>
<!-- insert copyright end -->
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="releaseinfo.xml"/>
</info>

View File

@ -555,6 +555,10 @@ foreach $file (keys %file_types) {
$r .= " <xi:include href=\"releaseinfo.xml\"/>\n";
s:<bookinfo>.*?</bookinfo>:<bookinfo>\n$r </bookinfo>:s;
}
if ($type eq 'SGML' && m:<!-- insert copyright start -->.*?<!-- insert copyright end -->:s) {
my $r = copyrights(@years);
s:<!-- insert copyright start -->.*?<!-- insert copyright end -->:<!-- insert copyright start -->\n$r <!-- insert copyright end -->:s;
}
my ($start, $end);
if ($type =~ /^PYTHON(|-BIN)$/) {