Skip to content

Commit 224a7bf

Browse files
committed
Adding source-dist target to build.xml.
http://code.google.com/p/arduino/issues/detail?id=193
1 parent 3650b47 commit 224a7bf

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

build/build.xml

+32
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,39 @@
471471
</echo>
472472
</target>
473473

474+
475+
<!-- - - - - - - - -->
476+
<!-- Source -->
477+
<!-- - - - - - - - -->
478+
479+
<target name="source-dist" depends="revision-check"
480+
description="Build .tar.gz of source code">
481+
<input message="Enter version number:"
482+
addproperty="version"
483+
defaultvalue="${revision}" />
484+
485+
<tar compression="gzip" destfile="arduino-${version}-src.tar.gz">
486+
<tarfileset dir="../"
487+
prefix="arduino-${version}"
488+
excludes="**/*.tgz,
489+
**/macosx/,
490+
**/windows/,
491+
**/work/,
492+
**/.git/,
493+
**/*.class"
494+
/>
495+
</tar>
496+
497+
<echo>
498+
=======================================================
499+
Arduino source distribution was built. Grab the archive from
500+
501+
arduino-${version}-src.tar.gz
502+
=======================================================
503+
</echo>
504+
</target>
474505

506+
475507
<!-- - - - - - - - -->
476508
<!-- Run It! -->
477509
<!-- - - - - - - - -->

0 commit comments

Comments
 (0)