Added proper 'snapshot' target.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4426 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2006-10-13 22:33:56 +00:00
parent 96a7202d75
commit 0962f1035b
+8 -28
View File
@@ -9,7 +9,6 @@
<property name="app.name" value="narya"/> <property name="app.name" value="narya"/>
<property name="deploy.dir" value="dist"/> <property name="deploy.dir" value="dist"/>
<property name="savedoc.dir" value="docs"/> <property name="savedoc.dir" value="docs"/>
<property name="lib.version" value="1.0"/>
<!-- derived properties --> <!-- derived properties -->
<property name="javadoc.home" value="${deploy.dir}/docs"/> <property name="javadoc.home" value="${deploy.dir}/docs"/>
@@ -254,35 +253,16 @@
</viztool> </viztool>
</target> </target>
<!-- creates a tarball and zipfile for source distribution --> <!-- creates a zipfile with our source distribution -->
<target name="distrib"> <target name="snapshot">
<echo message="You may want to stop and run 'ant savedoc' first."/> <echo message="You may want to stop and run 'ant savedoc' first."/>
<echo message="Building ${lib.version} tar.gz distribution..."/> <delete file="${app.name}-snapshot.zip"/>
<tar destfile="narya-${lib.version}.tar.gz" compression="gzip"> <zip destfile="${app.name}-snapshot.zip">
<tarfileset dir=".." mode="0775" dirmode="0775">
<include name="narya/bin/**"/>
<include name="narya/tests/bin/**"/>
<exclude name="**/CVS"/>
</tarfileset>
<tarfileset dir=".." mode="0664" dirmode="0775">
<include name="narya/**"/>
<exclude name="**/CVS"/>
<exclude name="narya/bin/**"/>
<exclude name="narya/tests/bin/**"/>
<exclude name="narya/tests/dist/**"/>
<exclude name="narya/dist/**"/>
<exclude name="narya/code/**"/>
<exclude name="narya/narya-*.*"/>
</tarfileset>
</tar>
<echo message="Building ${lib.version} zip distribution..."/>
<zip destfile="narya-${lib.version}.zip">
<fileset dir=".."> <fileset dir="..">
<include name="narya/**"/> <include name="${app.name}/**"/>
<exclude name="**/CVS"/> <exclude name="${app.name}/dist/**"/>
<exclude name="narya/dist/**"/> <exclude name="${app.name}/tests/dist/**"/>
<exclude name="narya/code/**"/> <exclude name="${app.name}/${app.name}-*.zip"/>
<exclude name="narya/narya-*.*"/>
</fileset> </fileset>
</zip> </zip>
</target> </target>