cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hans Ulrich Niedermann <n...@n-dimensional.de>
Subject [C2][PATCH] Version numbers in docs (was: cvs commit: xml-cocoon/xdocs httprequest.xml)
Date Fri, 02 Mar 2001 21:22:27 GMT
Index: build.xml
===================================================================
RCS file: /home/cvspublic/xml-cocoon/build.xml,v
retrieving revision 1.6.2.60
diff -u -r1.6.2.60 build.xml
--- build.xml	2001/02/27 20:08:55	1.6.2.60
+++ build.xml	2001/03/03 18:06:36
@@ -138,6 +138,7 @@
     <property name="build.src"      value="${build.dir}/src"/>
     <property name="build.dest"     value="${build.dir}/classes"/>
     <property name="build.docs"     value="${build.dir}/docs"/>
+    <property name="build.xdocs"    value="${build.dir}/xdocs"/>
     <property name="build.docs.printer" value="${build.dir}/printer-docs"/>
     <property name="build.war"      value="${build.dir}/webapp"/>
     <property name="build.javadocs" value="${build.dir}/javadocs"/>
@@ -375,14 +382,34 @@
   <!-- Prepares the docs                                                   -->
   <!-- =================================================================== -->
   <target name="prepare-docs" depends="init">
-    <copy todir="${build.docs}/images">
-      <fileset dir="${docs.dir}/images"/>
+    <mkdir dir="${build.xdocs}"/>
+
+    <!-- make filtered copy of XML docs -->
+    <copy todir="${build.xdocs}" filtering="on">
+      <fileset dir="${docs.dir}">
+        <exclude name="*.gif"/>
+        <exclude name="*.png"/>
+        <exclude name="*.jpg"/>
+      </fileset>
     </copy>
-    <copy file="changes.xml" tofile="${docs.dir}/changes.xml" filtering="on"/>
-    <copy file="todo.xml"    tofile="${docs.dir}/todo.xml"/>
+
+    <copy todir="${build.xdocs}" filtering="off">
+      <fileset dir="${docs.dir}/images">
+        <include name="*.gif"/>
+        <include name="*.png"/>
+        <include name="*.jpg"/>
+      </fileset>
+    </copy>
+
+    <copy todir="${build.docs}/images" filtering="off">
+      <fileset dir="${build.xdocs}/images"/>
+    </copy>
+
+    <copy file="changes.xml" tofile="${build.xdocs}/changes.xml" filtering="on"/>
+    <copy file="todo.xml"    tofile="${build.xdocs}/todo.xml"/>
 
-    <replace file="${docs.dir}/changes.xml" token="./xdocs/dtd/" value="dtd/"/>
-    <replace file="${docs.dir}/todo.xml"    token="./xdocs/dtd/" value="dtd/"/>
+    <replace file="${build.xdocs}/changes.xml" token="./xdocs/dtd/" value="dtd/"/>
+    <replace file="${build.xdocs}/todo.xml"    token="./xdocs/dtd/" value="dtd/"/>
   </target>
 
   <!-- =================================================================== -->
@@ -390,10 +417,10 @@
   <!-- =================================================================== -->
   <target name="docs" depends="prepare-docs" description="Generates the documentation">
     <mkdir dir="${build.docs}"/>
-    <copy file="${docs.dir}/docs-book.xml" tofile="${docs.dir}/book.xml" filtering="on"/>
+    <copy file="${build.xdocs}/docs-book.xml" tofile="${build.xdocs}/book.xml"/>
     <java classname="${doc.generator}" fork="yes">
       <classpath refid="classpath"/>
-      <arg line="targetDirectory=${build.docs} ${docs.dir}/book.xml ${browser.skin}"/>
+      <arg line="targetDirectory=${build.docs} ${build.xdocs}/book.xml ${browser.skin}"/>
     </java>
   </target>
 
@@ -402,10 +429,10 @@
   <!-- =================================================================== -->
   <target name="printer-docs" depends="prepare-docs" description="Generates printer-friendly
documentation">
     <mkdir dir="${build.docs.printer}"/>
-    <copy file="${docs.dir}/docs-book.xml" tofile="${docs.dir}/book.xml" filtering="on"/>
+    <copy file="${build.xdocs}/docs-book.xml" tofile="${build.xdocs}/book.xml"/>
     <java classname="${doc.generator}" fork="yes">
       <classpath refid="classpath"/>
-      <arg line="targetDirectory=${build.docs.printer} ${docs.dir}/book.xml ${printer.skin}"/>
+      <arg line="targetDirectory=${build.docs.printer} ${build.xdocs}/book.xml ${printer.skin}"/>
     </java>
   </target>
 
@@ -414,10 +441,10 @@
   <!-- =================================================================== -->
   <target name="site" depends="prepare-docs" description="Generates the web site (for
site maintainers only)">
     <mkdir dir="${site}"/>
-    <copy file="${docs.dir}/site-book.xml" tofile="${docs.dir}/book.xml" filtering="on"/>
+    <copy file="${build.xdocs}/site-book.xml" tofile="${build.xdocs}/book.xml"/>
     <java classname="${doc.generator}" fork="yes">
       <classpath refid="classpath"/>
-      <arg line="targetDirectory=${site} ${docs.dir}/book.xml ${browser.skin}"/>
+      <arg line="targetDirectory=${site} ${build.xdocs}/book.xml ${browser.skin}"/>
     </java>
   </target>
 
Index: webapp/stylesheets/simple-samples2html.xsl
===================================================================
RCS file: /home/cvspublic/xml-cocoon/webapp/stylesheets/Attic/simple-samples2html.xsl,v
retrieving revision 1.1.2.8
diff -u -r1.1.2.8 simple-samples2html.xsl
--- webapp/stylesheets/simple-samples2html.xsl	2001/02/28 13:37:35	1.1.2.8
+++ webapp/stylesheets/simple-samples2html.xsl	2001/03/03 18:09:22
@@ -5,20 +5,20 @@
  <xsl:template match="/">
   <html>
    <head>
-    <title>Apache Cocoon 2.0a4</title>
+    <title>Apache Cocoon @version@</title>
    </head>
    <body bgcolor="#ffffff" link="#0086b2" vlink="#00698c" alink="#743e75">
     <p align="center"><font size="+0" face="arial,helvetica,sanserif" color="#000000">The
Apache Software Foundation is proud to present...</font></p>
 
     <p align="center"><img border="0" src="images/cocoon.gif"/></p>
 
-    <p align="center"><font size="+0" face="arial,helvetica,sanserif" color="#000000"><b>version
2.0a4</b></font></p>
+    <p align="center"><font size="+0" face="arial,helvetica,sanserif" color="#000000"><b>version
@version@</b></font></p>
 
     <xsl:apply-templates/>
 
     <p align="center">
      <font size="-1">
-      Copyright &#169; 1999-2000 <a href="http://www.apache.org">The Apache Software
Foundation</a>.<br/>
+      Copyright &#169; @year@ <a href="http://www.apache.org">The Apache Software
Foundation</a>.<br/>
       All rights reserved.
      </font>
     </p>
Index: webapp/stylesheets/svg-samples2html.xsl
===================================================================
RCS file: /home/cvspublic/xml-cocoon/webapp/stylesheets/Attic/svg-samples2html.xsl,v
retrieving revision 1.1.2.3
diff -u -r1.1.2.3 svg-samples2html.xsl
--- webapp/stylesheets/svg-samples2html.xsl	2001/02/28 13:37:35	1.1.2.3
+++ webapp/stylesheets/svg-samples2html.xsl	2001/03/03 18:09:22
@@ -6,20 +6,20 @@
  <xsl:template match="/">
   <html>
    <head>
-    <title>Apache Cocoon 2.0a4</title>
+    <title>Apache Cocoon @version@</title>
    </head>
    <body bgcolor="#ffffff" link="#0086b2" vlink="#00698c" alink="#743e75">
     <p align="center"><font size="+0" face="arial,helvetica,sanserif" color="#000000">The
Apache Software Foundation is proud to present...</font></p>
 
     <p align="center"><img border="0" src="images/cocoon.gif"/></p>
 
-    <p align="center"><font size="+0" face="arial,helvetica,sanserif" color="#000000"><b>version
2.0a4</b></font></p>
+    <p align="center"><font size="+0" face="arial,helvetica,sanserif" color="#000000"><b>version
@version@</b></font></p>
 
     <xsl:apply-templates/>
 
     <p align="center">
      <font size="-1">
-      Copyright &#169; 1999-2000 <a href="http://www.apache.org">The Apache Software
Foundation</a>.<br/>
+      Copyright &#169; @year@ <a href="http://www.apache.org">The Apache Software
Foundation</a>.<br/>
       All rights reserved.
      </font>
     </p>
Index: xdocs/httprequest.xml
===================================================================
RCS file: /home/cvspublic/xml-cocoon/xdocs/Attic/httprequest.xml,v
retrieving revision 1.1.2.4
diff -u -r1.1.2.4 httprequest.xml
--- xdocs/httprequest.xml	2001/02/28 13:37:36	1.1.2.4
+++ xdocs/httprequest.xml	2001/03/03 18:09:27
@@ -2,20 +2,20 @@
 <!DOCTYPE document SYSTEM "dtd/document-v10.dtd">
 <document> 
   <header> 
-	 <title>Cocoon 2a4</title>
+	 <title>Cocoon @version@</title>
 	 <subtitle>What happens if a http request arrives</subtitle> 
 	 <version>0.1</version> 
 	 <type>Technical Document</type> 
 	 <authors><person name="Tom Klaasen" email="tom.klaasen@the-ecorp.com"/> 
 	 </authors> 
 	 <abstract>This document tries to explain Cocoon 2 (based on the version
-		2a4) technically. We do this by describing what happens if somebody types in
+		@version@) technically. We do this by describing what happens if somebody types in
 		the URL of a simple Cocoon page.</abstract> 
   </header> 
   <body> 
 	 <s1 title="Introduction"> 
 		<s2 title="Goal"> 
-		  <p>This document tries to explain Cocoon 2 (based on the version 2a4)
+		  <p>This document tries to explain Cocoon 2 (based on the version @version@)
 			 technically. We do this by describing what happens if somebody types in the URL
 			 of a simple Cocoon page.</p> 
 		</s2> 
@@ -38,7 +38,7 @@
 			 apply to URI's called in one's browser.</p> 
 		  <p>This is the minimal sitemap that is necessary. The lines here are
 			 included in the standard sitemap.xmap that comes with the distribution of
-			 Cocoon 2a4.</p> 
+			 Cocoon @version@.</p> 
 		  <p>The sitemap is defined in <code>${cocoon}/sitemap.xmap</code>.</p>

 		  <source><![CDATA[ 
           <?xml version="1.0"?>
@@ -93,7 +93,7 @@
 		  <p><code>cocoon.xconf</code> is the file that defines the
 			 <link href="avalon.html">Avalon</link> Components.</p> 
 		  <p>For our study, we need the standard <code>cocoon.xconf</code> file
-			 of Cocoon 2a4.</p> 
+			 of Cocoon @version@.</p> 
 		  <p>It can be found in <code>${cocoon}/cocoon.xconf</code>.</p>

 		  <source><![CDATA[
 <?xml version="1.0"?>

Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message