Adding source-dist target to build.xml.

http://code.google.com/p/arduino/issues/detail?id=193
This commit is contained in:
David A. Mellis 2010-10-03 21:21:27 -04:00
parent 3650b471b9
commit 224a7bf768
1 changed files with 32 additions and 0 deletions

View File

@ -472,6 +472,38 @@
</target>
<!-- - - - - - - - -->
<!-- Source -->
<!-- - - - - - - - -->
<target name="source-dist" depends="revision-check"
description="Build .tar.gz of source code">
<input message="Enter version number:"
addproperty="version"
defaultvalue="${revision}" />
<tar compression="gzip" destfile="arduino-${version}-src.tar.gz">
<tarfileset dir="../"
prefix="arduino-${version}"
excludes="**/*.tgz,
**/macosx/,
**/windows/,
**/work/,
**/.git/,
**/*.class"
/>
</tar>
<echo>
=======================================================
Arduino source distribution was built. Grab the archive from
arduino-${version}-src.tar.gz
=======================================================
</echo>
</target>
<!-- - - - - - - - -->
<!-- Run It! -->
<!-- - - - - - - - -->