diff options
author | Stuart Sierra <mail@stuartsierra.com> | 2010-01-04 12:14:52 -0500 |
---|---|---|
committer | Stuart Sierra <mail@stuartsierra.com> | 2010-01-04 12:14:52 -0500 |
commit | 4e06c275ecab1e4e1e6d0dd44e450c7d5daff6e2 (patch) | |
tree | ecab452af89653e8488d9e803c3514d067ee7155 | |
parent | 9f5951791193115f1d5ac724603a056f15d1c19f (diff) |
Add ZIP dist target to build1.1.0-RC1
Requires setting contrib version in build.xml
-rw-r--r-- | build.xml | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -8,6 +8,9 @@ <property name="src" location="src"/> <property name="build" location="classes"/> + <property name="dist" location="dist"/> + <property name="contrib.version.label" value="1.1.0-RC1"/> + <property name="zip" location="clojure-contrib-${contrib.version.label}.zip"/> <property file="local.properties"/> <available property="hasclojure" file="${clojure.jar}"/> @@ -29,7 +32,9 @@ <target name="clean" description="Remove generated files and directories."> <delete file="${jarfile}"/> <delete file="${slimjarfile}"/> + <delete file="${zip}"/> <delete dir="${build}"/> + <delete dir="${dist}"/> </target> <target name="test_contrib" @@ -201,5 +206,16 @@ <deploy target-dir="${stable.repo.dir}"/> </target> - + <target name="dist" depends="jar" + description="Builds distribution ZIP file."> + <property name="distdir" value="${dist}/clojure-contrib-${contrib.version.label}"/> + <mkdir dir="${distdir}"/> + <copy todir="${distdir}" includeEmptyDirs="false"> + <fileset dir="${basedir}"> + <exclude name="**/.git/**"/> + <exclude name="**/*.class"/> + </fileset> + </copy> + <zip basedir="${dist}" destfile="${zip}"/> + </target> </project> |