add xsltproc and diff to travis deps
[grauphel.git] / build.xml
index 0db8a62c50aaf1504bab4dfdd9eb2fe5aadf302d..4349f174e4a1a84c19fa90c78a0151bf013aac6e 100644 (file)
--- a/build.xml
+++ b/build.xml
       </replaceregexp>
     </filterchain>
   </loadfile>
-  <property name="zipfile"  value="${phing.project.name}-${version}.tar.bz2" />
+  <property name="zipfile"  value="${phing.project.name}-${version}.tar.gz" />
   <property name="distfile" value="dist/${zipfile}" />
 
   <fileset id="fs.zip" dir=".">
    <include name="**"/>
    <exclude name="dist/"/>
    <exclude name=".git"/>
+   <exclude name=".travis.yml"/>
    <exclude name="**/.gitignore"/>
    <exclude name="**/build.xml"/>
    <exclude name="**/README.html"/>
      </then>
     </if>
     <!--<delete file="${distfile}" failonerror="false"/>-->
-    <tar destfile="${distfile}" prefix="grauphel/" compression="bzip2">
+    <tar destfile="${distfile}" prefix="grauphel/" compression="gzip">
       <fileset refid="fs.zip"/>
     </tar>
   </target>
 
+ <target name="docs" description="render documentation">
+  <rst file="README.rst"/>
+ </target>
+
+ <target name="update-website" depends="docs">
+  <exec command="xmlstarlet sel -t -c '/_:html/_:body/_:div' README.html
+   | xmllint --format -
+   |grep -v '?xml version'
+   > ~/Dev/html/cweiske.de/www/grauphel.htm"/>
+ </target>
+
 </project>