Jar files don't preserve file permissions (yay!) so instead we create a
tar.gz and zip file just like all the other poor bastards trying to distribute source in the Java world. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3101 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
build.properties
|
build.properties
|
||||||
narya-*.jar
|
narya-*.*
|
||||||
|
|||||||
@@ -210,19 +210,23 @@
|
|||||||
</viztool>
|
</viztool>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- creates a tarball for source distribution -->
|
<!-- creates a tarball and zipfile for source distribution -->
|
||||||
<target name="distrib">
|
<target name="distrib">
|
||||||
<echo message="Building ${lib.version} distribution..."/>
|
|
||||||
<echo message="You may want to stop and run 'ant savedoc' first."/>
|
<echo message="You may want to stop and run 'ant savedoc' first."/>
|
||||||
<jar destfile="narya-${lib.version}.jar">
|
<echo message="Building ${lib.version} tar.gz distribution..."/>
|
||||||
|
<tar destfile="narya-${lib.version}.tar.gz" compression="gzip"
|
||||||
|
basedir=".." includes="narya/**"
|
||||||
|
excludes="**/CVS, narya/dist/**, narya/code/**, narya/narya-*.*"/>
|
||||||
|
<echo message="Building ${lib.version} zip distribution..."/>
|
||||||
|
<zip destfile="narya-${lib.version}.zip">
|
||||||
<fileset dir="..">
|
<fileset dir="..">
|
||||||
<exclude name="**/CVS"/>
|
|
||||||
<include name="narya/**"/>
|
<include name="narya/**"/>
|
||||||
|
<exclude name="**/CVS"/>
|
||||||
<exclude name="narya/dist/**"/>
|
<exclude name="narya/dist/**"/>
|
||||||
<exclude name="narya/code/**"/>
|
<exclude name="narya/code/**"/>
|
||||||
<exclude name="narya/*.jar"/>
|
<exclude name="narya/narya-*.*"/>
|
||||||
</fileset>
|
</fileset>
|
||||||
</jar>
|
</zip>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
Reference in New Issue
Block a user