]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
automate insertion of copyright year list into Bv9ARM-book.xml
authorMark Andrews <marka@isc.org>
Fri, 25 Nov 2016 20:49:23 +0000 (07:49 +1100)
committerMark Andrews <marka@isc.org>
Fri, 25 Nov 2016 20:49:23 +0000 (07:49 +1100)
doc/arm/Bv9ARM-book.xml
util/update_copyrights

index 9681c9cbcffea92909ae3bc971019878504050c7..debef67cc51a1340be649412809e9b064dbc43bd 100644 (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>
       <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>
 
index 398a24f5b4cb2ae830907d2d97c48e6208cc8c46..874e47d8e1ec1f56bfc307bf3a38b7e640ac4ee6 100644 (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)$/) {