diff options
author | Christian Weiske <cweiske@cweiske.de> | 2011-05-26 18:03:46 +0200 |
---|---|---|
committer | Christian Weiske <cweiske@cweiske.de> | 2011-05-26 18:03:46 +0200 |
commit | 7820014667f04d5d0a9c2f6913b3d3fb261f1b07 (patch) | |
tree | 36f26102ac0bc80e053ae96b9a45850c38c1797e /build.xml | |
parent | 18989f97f1c4299f447b011c28961ca5c8310c13 (diff) | |
download | semanticscuttle-7820014667f04d5d0a9c2f6913b3d3fb261f1b07.tar.gz semanticscuttle-7820014667f04d5d0a9c2f6913b3d3fb261f1b07.tar.bz2 |
task to generate docs from rst files. does not fully work yet
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 21 |
1 files changed, 20 insertions, 1 deletions
@@ -41,7 +41,6 @@ Test your zip with: unzip -l SemanticScuttle-0.95.0.zip --> - <mkdir dir="dist" /> <echo msg="Creating distribution zip for SemanticScuttle ${version}"/> <delete file="${distfile}" failonerror="false"/> <zip destfile="${distfile}" prefix="${phing.project.name}-${version}/"> @@ -209,6 +208,23 @@ + <target name="build-docs"> + <foreach param="fname" absparam="abs-fname" target="build-doc-file"> + <fileset dir="."> + <include name="doc/ChangeLog"/> + <include name="doc/**.txt"/> + <include name="doc/**.rst"/> + </fileset> + </foreach> + </target> + + <target name="build-doc-file" depends="check"> + <echo msg="${fname}"/> + <exec command="rst2html ${fname} > dist/${fname}.html" checkreturn="1"/> + </target> + + + <target name="release" depends="check,zip,package,deploy-sf" description="Release the version on sourceforge" > @@ -315,6 +331,9 @@ <fail unless="sfuser" message="Sourceforge username not defined!" /> <fail unless="sfproject" message="Sourceforge project name not defined!" /> <fail unless="sffilepath" message="Sourceforge project file path not defined!" /> + + <mkdir dir="dist" /> + <mkdir dir="dist/doc" /> </target> </project> |