From be93b4f758a5cfcdf5f67ee78b4972d54755c715 Mon Sep 17 00:00:00 2001
From: Mark Craig <mark.craig@forgerock.com>
Date: Fri, 31 Aug 2012 14:31:44 +0000
Subject: [PATCH] CR-643 Fix for COMMWEB-80: Release documentation builds should include product release date in at least release notes

---
 opendj3/src/main/docbkx/dev-guide/index.xml     |    2 +-
 opendj3/src/main/docbkx/install-guide/index.xml |    2 +-
 opendj3/src/main/docbkx/admin-guide/index.xml   |    2 +-
 opendj3/src/main/docbkx/release-notes/index.xml |    3 ++-
 opendj3/pom.xml                                 |    8 ++++++++
 5 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/opendj3/pom.xml b/opendj3/pom.xml
index 95da10f..e70f1da 100644
--- a/opendj3/pom.xml
+++ b/opendj3/pom.xml
@@ -109,6 +109,14 @@
     <siteDistributionURL>scp://forgerock.org/var/www/vhosts/opendj.forgerock.org/httpdocs</siteDistributionURL>
     <i18nFrameworkVersion>1.4.0</i18nFrameworkVersion>
     <gaId>UA-23412190-8</gaId>
+    <!--
+      Release date is specified only when building the documentation
+      for publication. For example:
+          -D"releaseDate=Software release date: January 1, 1970"
+      Otherwise release date should remain empty.
+    -->
+    <releaseDate />
+    <softwareReleaseDate>${releaseDate}</softwareReleaseDate>
     <checkstyleHeaderLocation>org/forgerock/checkstyle/opendj-java-header</checkstyleHeaderLocation>
   </properties>
   <build>
diff --git a/opendj3/src/main/docbkx/admin-guide/index.xml b/opendj3/src/main/docbkx/admin-guide/index.xml
index b1dacf3..e025859 100644
--- a/opendj3/src/main/docbkx/admin-guide/index.xml
+++ b/opendj3/src/main/docbkx/admin-guide/index.xml
@@ -52,7 +52,7 @@
   </authorgroup>
   <xinclude:include href='../legal.xml' />
   <date><?dbtimestamp format="B d, Y"?></date>
-  <pubdate>Last updated: <?dbtimestamp format="B d, Y"?></pubdate>
+  <pubdate>Publication date: <?dbtimestamp format="B d, Y"?></pubdate>
  </info>
 
  <toc />
diff --git a/opendj3/src/main/docbkx/dev-guide/index.xml b/opendj3/src/main/docbkx/dev-guide/index.xml
index d713b7a..0a0fe61 100644
--- a/opendj3/src/main/docbkx/dev-guide/index.xml
+++ b/opendj3/src/main/docbkx/dev-guide/index.xml
@@ -49,7 +49,7 @@
   </authorgroup>
   <xinclude:include href='../legal.xml' />
   <date><?dbtimestamp format="B d, Y"?></date>
-  <pubdate>Last updated: <?dbtimestamp format="B d, Y"?></pubdate>
+  <pubdate>Publication date: <?dbtimestamp format="B d, Y"?></pubdate>
  </info>
 
  <toc />
diff --git a/opendj3/src/main/docbkx/install-guide/index.xml b/opendj3/src/main/docbkx/install-guide/index.xml
index 91a7a09..36ae4e2 100644
--- a/opendj3/src/main/docbkx/install-guide/index.xml
+++ b/opendj3/src/main/docbkx/install-guide/index.xml
@@ -46,7 +46,7 @@
   </authorgroup>
   <xinclude:include href='../legal.xml' />
   <date><?dbtimestamp format="B d, Y"?></date>
-  <pubdate>Last updated: <?dbtimestamp format="B d, Y"?></pubdate>
+  <pubdate>Publication date: <?dbtimestamp format="B d, Y"?></pubdate>
  </info>
 
  <toc />
diff --git a/opendj3/src/main/docbkx/release-notes/index.xml b/opendj3/src/main/docbkx/release-notes/index.xml
index 496d23e..8fad519 100644
--- a/opendj3/src/main/docbkx/release-notes/index.xml
+++ b/opendj3/src/main/docbkx/release-notes/index.xml
@@ -47,7 +47,8 @@
   </authorgroup>
   <xinclude:include href='../legal.xml' />
   <date><?dbtimestamp format="B d, Y"?></date>
-  <pubdate>Last updated: <?dbtimestamp format="B d, Y"?></pubdate>
+  <pubdate>Publication date: <?dbtimestamp format="B d, Y"?></pubdate>
+  <releaseinfo><?eval ${softwareReleaseDate}?></releaseinfo>
  </info>
 
  <toc />

--
Gitblit v1.10.0