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:
Michael Bayne
2004-08-27 17:22:22 +00:00
parent 22b602f974
commit 1fe5adff0b
2 changed files with 11 additions and 7 deletions
+10 -6
View File
@@ -210,19 +210,23 @@
</viztool>
</target>
<!-- creates a tarball for source distribution -->
<!-- creates a tarball and zipfile for source distribution -->
<target name="distrib">
<echo message="Building ${lib.version} distribution..."/>
<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="..">
<exclude name="**/CVS"/>
<include name="narya/**"/>
<exclude name="**/CVS"/>
<exclude name="narya/dist/**"/>
<exclude name="narya/code/**"/>
<exclude name="narya/*.jar"/>
<exclude name="narya/narya-*.*"/>
</fileset>
</jar>
</zip>
</target>
</project>