Permalink
Browse files

Added Ant doc.xml build file for converting documentation to HTML

git-svn-id: https://cdk.svn.sourceforge.net/svnroot/cdk/trunk/cdk@2361 eb4e18e3-b210-0410-a6ab-dec725e4b171
  • Loading branch information...
1 parent 3556cd5 commit 4c075df495a872ce73577ccc13afdf7f11e525bc egonw committed Jan 27, 2004
Showing with 49 additions and 0 deletions.
  1. +2 −0 CHANGELOG
  2. +47 −0 doc.xml
View
@@ -6,10 +6,12 @@ Changes in CVS
New:
* Added a JPanel of the periodic table
* Added a reader and writer for Hyperchem HIN files
+* Added Ant doc.xml build file for converting documentation to HTML
Fixes:
* cdk-* shell wrapper now accept -X java options (closes #882990)
* Refactored build process (closes #883519)
+* Fixed rendering of stereo bonds in rings (closes #884935)
API changes:
* Moved a number of Swing based classes to cdk.applications.swing (addresses #847584)
View
@@ -0,0 +1,47 @@
+<project name="CDK Documentation" default="doc" basedir=".">
+
+ <property name="build.dir" value="build" />
+ <property name="doc.dir" value="doc" />
+ <property name="docbook-xsl" value="docbook-xsl-1.61.2" />
+ <property name="docbook.dir" value="${build.dir}/${docbook-xsl}" />
+
+ <target id="init" name="init">
+ <tstamp />
+ <mkdir dir="${build.dir}" />
+ <uptodate property="userGuide.uptodate" targetfile="${build.dir}/${doc.dir}/UserGuide/index.html">
+ <srcfiles dir="${doc.dir}/user-guide" includes="*.xml" />
+ </uptodate>
+ <uptodate property="docbook-xsl.uptodate"
+ targetfile="${build.dir}/${docbook-xsl}"
+ srcfile="${doc.dir}/${docbook-xsl}.tar.gz" />
+ </target>
+
+ <target name="initdoc" depends="check.docbook" />
+
+ <target name="check.docbook" depends="init" unless="docbook-xsl.uptodate" >
+ <delete dir="${build.dir}/${docbook-xsl}" />
+ <mkdir dir="${build.dir}/${docbook-xsl}" />
+ <untar src="${doc.dir}/${docbook-xsl}.tar.gz" dest="${build.dir}"
+ compression="gzip" />
+ </target>
+
+ <target name="userGuide" id="userGuide" depends="initdoc" unless="userGuide.uptodate" >
+ <echo message="Generating UserGuide" />
+ <mkdir dir="${build.dir}/${doc.dir}/UserGuide" />
+ <xslt basedir="${doc.dir}/user-guide"
+ includes="guide.xml"
+ destdir="${build.dir}/${doc.dir}/UserGuide"
+ style="${docbook.dir}/html/chunk.xsl"/>
+ </target>
+
+ <target id="doc" name="doc" depends="userGuide"/>
+
+ <target id="clean" name="clean" description="Removes files and dirs that can be restored by other tasks">
+ <delete dir="${build.dir}/${doc.dir}" />
+ <delete dir="${build.dir}/${docbook-xsl}" />
+ </target>
+
+</project>
+
+
+

0 comments on commit 4c075df

Please sign in to comment.