From: <jen...@us...> - 2009-04-20 11:02:22
|
Revision: 1717 http://dl-learner.svn.sourceforge.net/dl-learner/?rev=1717&view=rev Author: jenslehmann Date: 2009-04-20 11:02:19 +0000 (Mon, 20 Apr 2009) Log Message: ----------- added ant task to automatically build the manual for a new release Modified Paths: -------------- trunk/build.xml trunk/doc/manual/manual.tex Added Paths: ----------- trunk/lib/ant_latex.jar Modified: trunk/build.xml =================================================================== --- trunk/build.xml 2009-04-20 10:21:12 UTC (rev 1716) +++ trunk/build.xml 2009-04-20 11:02:19 UTC (rev 1717) @@ -28,7 +28,7 @@ </path> <!-- build target --> - <target name="full_release" depends="javadoc,build" description="full release, javadoc, scripts"> + <target name="full_release" depends="manual,javadoc,build" description="full release, javadoc, scripts"> </target> <!-- build target --> @@ -281,6 +281,31 @@ <echo file="bin/gui" message="#!/bin/bash${line.separator}java -Xmx${max_memory}m -Djava.library.path=lib/fact/ -cp ${pathStringUnix} org.dllearner.gui.StartGUI $@"/> </target> + <!-- generate manual --> + <taskdef name="latex" classname="de.dokutransdata.antlatex.LaTeX" + classpath="lib/ant_latex.jar"/> + <target name="manual"> + + <!-- automatically adds correct build number in manual --> + <replaceregexp file="doc/manual/manual.tex" + match="DL-Learner (.*) command line interface" + replace="DL-Learner ${today} command line interface" + byline="true"/> + + <!-- run pdflatex and bibtex over doc/manual/ --> + <latex + latexfile="manual.tex" + verbose="off" + clean="on" + pdftex="on" + workingDir="doc/manual"> + <bibtex + run="on" + workingDir="doc/manual/" + /> + </latex> + </target> + <!-- generate Javadoc --> <target name="javadoc"> <pathconvert refid="classpath" property="jdocclasspath"/> Modified: trunk/doc/manual/manual.tex =================================================================== --- trunk/doc/manual/manual.tex 2009-04-20 10:21:12 UTC (rev 1716) +++ trunk/doc/manual/manual.tex 2009-04-20 11:02:19 UTC (rev 1717) @@ -69,7 +69,7 @@ \emph{Conf files}, e.g. \verb|examples/father.conf| in this case, describe the learning problem and specify which algorithm you want to use to solve it. In the simplest case they just say where to find the background knowledge to use (in the OWL file \verb|examples/father.owl| in this case) and the positive and negative examples (marked by ``+'' and ``-'', respectively). When running the above command, you should get something similar to the following: \begin{verbatim} -DL-Learner 2008-10-13 command line interface +DL-Learner 2009-04-20 command line interface starting component manager ... OK (157ms) initialising component "OWL file" ... OK (0ms) initialising component "fast instance checker" ... OK (842ms) Added: trunk/lib/ant_latex.jar =================================================================== (Binary files differ) Property changes on: trunk/lib/ant_latex.jar ___________________________________________________________________ Added: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |