Fix #41: Use correct SQL datetime format for tokens
[grauphel.git] / build.xml
index 32e6a81b9519d7478ceec6900564a9294cbac283..4349f174e4a1a84c19fa90c78a0151bf013aac6e 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -11,7 +11,7 @@
       </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=".">
      </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>