]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
task to generate docs from rst files. does not fully work yet
authorChristian Weiske <cweiske@cweiske.de>
Thu, 26 May 2011 16:03:46 +0000 (18:03 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Thu, 26 May 2011 16:03:46 +0000 (18:03 +0200)
build.xml

index 7b3896b4af1526fecb2126c51282bac62312dcf0..cd80c062dd9872725a05b6fd1595152a91266fe3 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -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}/">
 
 
 
+  <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"
    >
     <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>