svn: /pear/peardoc/trunk/ configure.php en/bookinfo.xml en/copyright.xml entities/version.ent.in
[email protected] (Richard Quadling) Thu, 24 Mar 2011 19:30:59 +0000
| Newsgroups | php.pear.doc |
|---|---|
| Message-ID | <[email protected]> |
rquadling Thu, 24 Mar 2011 19:30:59 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=309663
Log:
Add automatic copyright year update. Uses the same technique as PHPDOC.
Changed paths:
U pear/peardoc/trunk/configure.php
U pear/peardoc/trunk/en/bookinfo.xml
U pear/peardoc/trunk/en/copyright.xml
U pear/peardoc/trunk/entities/version.ent.in
Modified: pear/peardoc/trunk/configure.php
===================================================================
--- pear/peardoc/trunk/configure.php 2011-03-24 19:10:47 UTC (rev 309662)
+++ pear/peardoc/trunk/configure.php 2011-03-24 19:30:59 UTC (rev 309663)
@@ -148,7 +148,8 @@
file_put_contents(
$entitiesfile,
str_replace(
- '@PEARDOC_BUILD_DATE@', date('Y-m-d'),
+ array('@PEARDOC_BUILD_DATE@', '@PEARDOC_COPYRIGHT_YEAR@'),
+ array(date('Y-m-d'), date('Y')),
file_get_contents($entitiesfile . '.in')
)
);
Modified: pear/peardoc/trunk/en/bookinfo.xml
===================================================================
--- pear/peardoc/trunk/en/bookinfo.xml 2011-03-24 19:10:47 UTC (rev 309662)
+++ pear/peardoc/trunk/en/bookinfo.xml 2011-03-24 19:30:59 UTC (rev 309663)
@@ -6,7 +6,7 @@
&frontpage.editors;
<copyright>
- <year>2001-2009</year>
+ <year>2001-&peardoc.copyright-year;</year>
<holder>The PEAR Documentation Group</holder>
</copyright>
Modified: pear/peardoc/trunk/en/copyright.xml
===================================================================
--- pear/peardoc/trunk/en/copyright.xml 2011-03-24 19:10:47 UTC (rev 309662)
+++ pear/peardoc/trunk/en/copyright.xml 2011-03-24 19:30:59 UTC (rev 309663)
@@ -2,7 +2,7 @@
<legalnotice xml:id="copyright" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Copyright</title>
<simpara>
- Copyright © 2001 - 2008 by the PEAR Documentation Group.
+ Copyright © 2001 - &peardoc.copyright-year; by the PEAR Documentation Group.
This material may be distributed only subject to the terms and
conditions set forth in the Open Publication License, v1.0 or
later (the latest version is presently available at
Modified: pear/peardoc/trunk/entities/version.ent.in
===================================================================
--- pear/peardoc/trunk/entities/version.ent.in 2011-03-24 19:10:47 UTC (rev 309662)
+++ pear/peardoc/trunk/entities/version.ent.in 2011-03-24 19:30:59 UTC (rev 309663)
@@ -1 +1,2 @@
<!ENTITY peardoc.build-date "@PEARDOC_BUILD_DATE@">
+<!ENTITY peardoc.copyright-year "@PEARDOC_COPYRIGHT_YEAR@">
\ No newline at end of file