Skip to content

Apache Lucene open-source search software

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

Uwe Schindlerf011f59fe22e
diff --git a/build.xml b/build.xml
index e8de557cdea..15a4c766072 100644
--- a/build.xml
+++ b/build.xml
@@ -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>