avro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r996642 - in /avro/trunk: CHANGES.txt build.sh
Date Mon, 13 Sep 2010 19:04:29 GMT
Author: cutting
Date: Mon Sep 13 19:04:29 2010
New Revision: 996642

URL: http://svn.apache.org/viewvc?rev=996642&view=rev
Log:
AVRO-657. Fix build so that md5 and sha1 checksum files contain only a file's basename without
directories.

Modified:
    avro/trunk/CHANGES.txt
    avro/trunk/build.sh

Modified: avro/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/avro/trunk/CHANGES.txt?rev=996642&r1=996641&r2=996642&view=diff
==============================================================================
--- avro/trunk/CHANGES.txt (original)
+++ avro/trunk/CHANGES.txt Mon Sep 13 19:04:29 2010
@@ -16,6 +16,9 @@ Avro 1.4.1 (unreleased)
     AVRO-666. Remove an extraneous pdb.set_trace() that crept into schema.py
     (hammer)
 
+    AVRO-657. Fix build so that md5 and sha1 checksum files contain
+    only the file's basename without any directories. (cutting)
+
 Avro 1.4.0 (31 August 2010)
 
   INCOMPATIBLE CHANGES

Modified: avro/trunk/build.sh
URL: http://svn.apache.org/viewvc/avro/trunk/build.sh?rev=996642&r1=996641&r2=996642&view=diff
==============================================================================
--- avro/trunk/build.sh (original)
+++ avro/trunk/build.sh Mon Sep 13 19:04:29 2010
@@ -108,10 +108,11 @@ case "$target" in
 	stty echo
 
 	for f in $(find dist -type f \
-	    \! -name '*.sha1' \! -name '*.asc' \! -name '*.txt' );
+	    \! -name '*.md5' \! -name '*.sha1' \
+	    \! -name '*.asc' \! -name '*.txt' );
 	do
-	    md5sum $f > $f.md5
-	    sha1sum $f > $f.sha1
+	    (cd `dirname $f`; md5sum `basename $f`) > $f.md5
+	    (cd `dirname $f`; sha1sum `basename $f`) > $f.sha1
 	    gpg --passphrase $password --armor --output $f.asc --detach-sig $f
 	done
 



Mime
View raw message