automate insertion of copyright year list into Bv9ARM-book.xml
(cherry picked from commit cd1465de0e)
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
<book xmlns="http://docbook.org/ns/docbook" version="5.0">
|
||||
<info>
|
||||
<title>BIND 9 Administrator Reference Manual</title>
|
||||
<!-- insert copyright start -->
|
||||
<copyright>
|
||||
<year>2004</year>
|
||||
<year>2005</year>
|
||||
@@ -32,6 +33,7 @@
|
||||
<year>2013</year>
|
||||
<year>2014</year>
|
||||
<year>2015</year>
|
||||
<year>2016</year>
|
||||
<holder>Internet Systems Consortium, Inc. ("ISC")</holder>
|
||||
</copyright>
|
||||
<copyright>
|
||||
@@ -41,6 +43,7 @@
|
||||
<year>2003</year>
|
||||
<holder>Internet Software Consortium.</holder>
|
||||
</copyright>
|
||||
<!-- insert copyright end -->
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="releaseinfo.xml"/>
|
||||
</info>
|
||||
|
||||
|
||||
@@ -600,6 +600,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)$/) {
|
||||
|
||||
Reference in New Issue
Block a user