You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-commits@db.apache.org by cl...@apache.org on 2006/05/04 00:17:00 UTC
svn commit: r399457 - in /db/jdo/bin: ./ sign-directory
Author: clr
Date: Wed May 3 15:16:57 2006
New Revision: 399457
URL: http://svn.apache.org/viewcvs?rev=399457&view=rev
Log:
JDO-365 add a sign-directory script
Added:
db/jdo/bin/
db/jdo/bin/sign-directory (with props)
Added: db/jdo/bin/sign-directory
URL: http://svn.apache.org/viewcvs/db/jdo/bin/sign-directory?rev=399457&view=auto
==============================================================================
--- db/jdo/bin/sign-directory (added)
+++ db/jdo/bin/sign-directory Wed May 3 15:16:57 2006
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+# tools
+GPG_CMD=gpg
+GPG_OPTS="--armor --detach-sign"
+MD5_CMD=md5
+MD5_OPTS=-q
+
+# Verify that there is a directory parameter
+if [ $# -eq 0 ]
+then
+ echo Missing parameter.
+ echo Usage: \"sign-directory directory-name\"
+ exit 1
+fi
+if [ -d $1 ]
+then
+ echo Signing files in directory \"$1\".
+else
+ echo \"$1\" is not a directory.
+ echo Usage: \"sign-directory directory-name\"
+ exit 1
+fi
+
+# Iterate the directory looking for instances of .pom, .jar, .gz, and .zip
+poms=`find $1 -name "*.pom"`
+echo Found .poms $poms
+jars=`find $1 -name "*.jar"`
+echo Found .jars $jars
+gzs=`find $1 -name "*.gz"`
+echo Found .gzs $gzs
+zips=`find $1 -name "*.zip"`
+echo Found .zips $zips
+
+# For each such file, sign it and attach an md5
+for f in $gzs $poms $jars $zips
+do
+ echo Signing file $f
+ ${GPG_CMD} ${GPG_OPTS} $f
+ ${MD5_CMD} ${MD5_OPTS} $f > $f.md5
+done
+
Propchange: db/jdo/bin/sign-directory
------------------------------------------------------------------------------
svn:executable = *