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 mc...@apache.org on 2008/03/18 22:16:16 UTC

svn commit: r638575 - /db/jdo/bin/sign-directory

Author: mcaisse
Date: Tue Mar 18 14:16:15 2008
New Revision: 638575

URL: http://svn.apache.org/viewvc?rev=638575&view=rev
Log:
Added vars for windows/cygwin environment. Also added count of files to sign.

Modified:
    db/jdo/bin/sign-directory

Modified: db/jdo/bin/sign-directory
URL: http://svn.apache.org/viewvc/db/jdo/bin/sign-directory?rev=638575&r1=638574&r2=638575&view=diff
==============================================================================
--- db/jdo/bin/sign-directory (original)
+++ db/jdo/bin/sign-directory Tue Mar 18 14:16:15 2008
@@ -1,10 +1,22 @@
 #!/bin/sh
 
+# Select or add appropriate values for the tools and options in this section
 # tools
+# gpg/pgp
 GPG_CMD=gpg
 GPG_OPTS="--armor --detach-sign"
+
+# find
+#FIND=find
+FIND=c:/cygwin/bin/find
+
+# md5
+# Use these two lines for linux md5
+#MD5_CMD=md5
+#MD5_OPTS=-q
+# Use these two lines for http://www.fourmilab.ch/md5/
 MD5_CMD=md5
-MD5_OPTS=-q
+MD5_OPTS="-l -n"
 
 # Verify that there is a directory parameter
 if [ $# -eq 0 ]
@@ -23,14 +35,18 @@
 fi
 
 # Iterate the directory looking for instances of .pom, .jar, .gz, and .zip
-poms=`find $1 -name "*.pom"`
+poms=`$FIND $1 -name "*.pom"`
 echo Found .poms $poms
-jars=`find $1 -name "*.jar"`
+jars=`$FIND $1 -name "*.jar"`
 echo Found .jars $jars
-gzs=`find $1 -name "*.gz"`
+gzs=`$FIND $1 -name "*.gz"`
 echo Found .gzs $gzs
-zips=`find $1 -name "*.zip"`
+zips=`$FIND $1 -name "*.zip"`
 echo Found .zips $zips
+
+echo
+echo `echo $gzs $poms $jars $zips | wc -w` files to sign
+echo
 
 # For each such file, sign it and attach an md5
 for f in $gzs $poms $jars $zips