You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by cu...@apache.org on 2010/03/12 21:53:17 UTC
svn commit: r922423 - in /hadoop/avro/trunk: CHANGES.txt build.sh
lang/c++/build.sh lang/c/build.sh lang/java/build.xml lang/ruby/Manifest
Author: cutting
Date: Fri Mar 12 20:53:17 2010
New Revision: 922423
URL: http://svn.apache.org/viewvc?rev=922423&view=rev
Log:
AVRO-446. Add a build.sh task that signs and checksums artifacts.
Modified:
hadoop/avro/trunk/CHANGES.txt
hadoop/avro/trunk/build.sh
hadoop/avro/trunk/lang/c++/build.sh
hadoop/avro/trunk/lang/c/build.sh
hadoop/avro/trunk/lang/java/build.xml
hadoop/avro/trunk/lang/ruby/Manifest
Modified: hadoop/avro/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/avro/trunk/CHANGES.txt?rev=922423&r1=922422&r2=922423&view=diff
==============================================================================
--- hadoop/avro/trunk/CHANGES.txt (original)
+++ hadoop/avro/trunk/CHANGES.txt Fri Mar 12 20:53:17 2010
@@ -37,6 +37,9 @@ Avro 1.3.1 (unreleased)
AVRO-440. config.h output not correctly used (Bruce Mitchener via massie)
AVRO-460. Performance improvement to write_long() (Bruce Mitchener via massie)
+ AVRO-455. Update Java dependencies. (David Dabbs via cutting)
+
+ AVRO-446. Add a build.sh task that signs and checksums artifacts. (cutting)
BUG FIXES
Modified: hadoop/avro/trunk/build.sh
URL: http://svn.apache.org/viewvc/hadoop/avro/trunk/build.sh?rev=922423&r1=922422&r2=922423&view=diff
==============================================================================
--- hadoop/avro/trunk/build.sh (original)
+++ hadoop/avro/trunk/build.sh Fri Mar 12 20:53:17 2010
@@ -74,8 +74,6 @@ case "$target" in
mkdir -p dist
(cd build; tar czf ../dist/avro-src-$VERSION.tar.gz avro-src-$VERSION)
- md5sum dist/avro-src-$VERSION.tar.gz > dist/avro-src-$VERSION.tar.gz.md5
- sha1sum dist/avro-src-$VERSION.tar.gz > dist/avro-src-$VERSION.tar.gz.sha1
# build lang-specific artifacts
(cd lang/java; ant dist)
@@ -95,6 +93,25 @@ case "$target" in
cp DIST_README.txt dist/README.txt
;;
+ sign)
+
+ set +x
+
+ echo -n "Enter password: "
+ stty -echo
+ read password
+ stty echo
+
+ for f in $(find dist -type f \
+ \! -name '*.sha1' \! -name '*.asc' \! -name '*.txt' );
+ do
+ sha1sum $f > $f.sha1
+ gpg --passphrase $password --armor --output $f.asc --detach-sig $f
+ done
+
+ set -x
+ ;;
+
clean)
rm -rf build dist
(cd doc; ant clean)
Modified: hadoop/avro/trunk/lang/c++/build.sh
URL: http://svn.apache.org/viewvc/hadoop/avro/trunk/lang/c%2B%2B/build.sh?rev=922423&r1=922422&r2=922423&view=diff
==============================================================================
--- hadoop/avro/trunk/lang/c++/build.sh (original)
+++ hadoop/avro/trunk/lang/c++/build.sh Fri Mar 12 20:53:17 2010
@@ -97,7 +97,6 @@ function do_tar_file {
exit 1
fi
cp -f $build_dir/$tarfile $dist_dir/$tarfile
- md5sum $dist_dir/$tarfile > $dist_dir/$tarfile.md5
}
function do_dist {
Modified: hadoop/avro/trunk/lang/c/build.sh
URL: http://svn.apache.org/viewvc/hadoop/avro/trunk/lang/c/build.sh?rev=922423&r1=922422&r2=922423&view=diff
==============================================================================
--- hadoop/avro/trunk/lang/c/build.sh (original)
+++ hadoop/avro/trunk/lang/c/build.sh Fri Mar 12 20:53:17 2010
@@ -60,8 +60,6 @@ case "$1" in
fi
mv $build_dir/$tarball $dist_dir
cp $build_dir/docs/*.html $doc_dir
- md5file="$dist_dir/$tarball.md5"
- md5sum $dist_dir/$tarball > $md5file 2>/dev/null || md5 $dist_dir/$tarball > $md5file 2>/dev/null
clean
;;
Modified: hadoop/avro/trunk/lang/java/build.xml
URL: http://svn.apache.org/viewvc/hadoop/avro/trunk/lang/java/build.xml?rev=922423&r1=922422&r2=922423&view=diff
==============================================================================
--- hadoop/avro/trunk/lang/java/build.xml (original)
+++ hadoop/avro/trunk/lang/java/build.xml Fri Mar 12 20:53:17 2010
@@ -501,22 +501,6 @@
</copy>
<chmod file="${dist.dir}/avro-tools-${version}.jar" perm="ugo+x"/>
- <checksum algorithm="md5">
- <fileset file="${dist.dir}/${fullname}.jar"/>
- <fileset file="${dist.dir}/${fullname}-sources.jar"/>
- <fileset file="${dist.dir}/${fullname}-javadoc.jar"/>
- <fileset file="${dist.dir}/avro-tools-${version}.jar"/>
- <fileset file="${dist.dir}/${fullname}.pom"/>
- </checksum>
-
- <checksum algorithm="sha1">
- <fileset file="${dist.dir}/${fullname}.jar"/>
- <fileset file="${dist.dir}/${fullname}-sources.jar"/>
- <fileset file="${dist.dir}/${fullname}-javadoc.jar"/>
- <fileset file="${dist.dir}/avro-tools-${version}.jar"/>
- <fileset file="${dist.dir}/${fullname}.pom"/>
- </checksum>
-
<copy todir="${top.build}/avro-doc-${version}/api/java">
<fileset dir="${build.javadoc}"/>
</copy>
Modified: hadoop/avro/trunk/lang/ruby/Manifest
URL: http://svn.apache.org/viewvc/hadoop/avro/trunk/lang/ruby/Manifest?rev=922423&r1=922422&r2=922423&view=diff
==============================================================================
--- hadoop/avro/trunk/lang/ruby/Manifest (original)
+++ hadoop/avro/trunk/lang/ruby/Manifest Fri Mar 12 20:53:17 2010
@@ -16,4 +16,3 @@ test/sample_ipc_server.rb
test/test_help.rb
test/test_io.rb
test/test_protocol.rb
-tmp/test.rb.avro