Use better format for md5sum/sha1 sum on package build (binary files should have * before file name). The format attribute does that automatically.

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@887617 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2009-12-06 00:28:04 +00:00
parent a92e6e8240
commit f011f59fe2
1 changed files with 3 additions and 6 deletions

View File

@ -683,15 +683,12 @@
<fail if="contribs.failed">Contrib tests failed!</fail>
</target>
<!-- Macro for building checksum files
This is only needed until the "format" option is supported
by ant's built in checksum task
-->
<!-- Macro for building checksum files -->
<macrodef name="lucene-checksum">
<attribute name="file"/>
<sequential>
<checksum file="@{file}" algorithm="md5" pattern="{0} {1}" forceoverwrite="yes" readbuffersize="65536"/>
<checksum file="@{file}" algorithm="sha1" pattern="{0} {1}" forceoverwrite="yes" readbuffersize="65536"/>
<checksum file="@{file}" algorithm="md5" format="MD5SUM" forceoverwrite="yes" readbuffersize="65536"/>
<checksum file="@{file}" algorithm="sha1" format="MD5SUM" forceoverwrite="yes" readbuffersize="65536"/>
</sequential>
</macrodef>