generate tar.bz2 instead of zip
authorChristian Weiske <cweiske@cweiske.de>
Fri, 25 May 2012 20:18:54 +0000 (22:18 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Fri, 25 May 2012 20:18:54 +0000 (22:18 +0200)
build.xml

index 551f2ce..31a8bba 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -14,7 +14,7 @@
   <property name="releasenotes" value="
 First release
 " />
-  <property name="zipfile"     value="${phing.project.name}-${version}.zip" />
+  <property name="zipfile"     value="${phing.project.name}-${version}.tar.bz2" />
   <property name="pkgfile"     value="${phing.project.name}-${version}.tgz" />
   <property name="distfile"    value="dist/${zipfile}" />
   <property name="distpkgfile" value="dist/pear/${pkgfile}" />
@@ -49,9 +49,11 @@ First release
     -->
     <echo msg="Creating distribution zip for phorkie ${version}"/>
     <delete file="${distfile}" failonerror="false"/>
-    <zip destfile="${distfile}" prefix="${phing.project.name}-${version}/">
+    <tar compression="bzip2" destfile="${distfile}"
+         prefix="${phing.project.name}-${version}/"
+    >
      <fileset refid="fs.zip"/>
-    </zip>
+    </tar>
   </target>