harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r424056 - /incubator/harmony/enhanced/classlib/trunk/build.xml
Date Thu, 20 Jul 2006 20:46:28 GMT
Author: hindessm
Date: Thu Jul 20 13:46:27 2006
New Revision: 424056

URL: http://svn.apache.org/viewvc?rev=424056&view=rev
Log:
Make checksum files with format that works with "md5sum -c blah.zip.md5".

Modified:
    incubator/harmony/enhanced/classlib/trunk/build.xml

Modified: incubator/harmony/enhanced/classlib/trunk/build.xml
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/build.xml?rev=424056&r1=424055&r2=424056&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/build.xml (original)
+++ incubator/harmony/enhanced/classlib/trunk/build.xml Thu Jul 20 13:46:27 2006
@@ -180,7 +180,7 @@
                 includes="README-snapshot.txt"
                 fullpath="Harmony/README"/>
         </tar>
-        <checksum file="${deploy.tar}" fileext=".md5"/>
+        <md5sum file="${deploy.tar}" />
     </target>
 
     <!-- ================================= 
@@ -209,7 +209,7 @@
                 includes="README-snapshot.txt"
                 fullpath="Harmony/README.txt"/>
         </zip>
-        <checksum file="${deploy.zip}" fileext=".md5"/>
+        <md5sum file="${deploy.zip}" />
     </target>
 
     <target name="fetch-depends">
@@ -217,5 +217,15 @@
     </target>
 
     <target name="properties" depends="echo" />
+
+    <macrodef name="md5sum">
+        <attribute name="file" />
+        <attribute name="type" default="md5" />
+        <sequential>
+            <checksum property="@{file}.@{type}" file="@{file}" />
+            <echo file="@{file}.@{type}"
+                  message="${@{file}.@{type}}  @{file}" />
+        </sequential>
+    </macrodef>
 
 </project>



Mime
View raw message