db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcai...@apache.org
Subject svn commit: r638575 - /db/jdo/bin/sign-directory
Date Tue, 18 Mar 2008 21:16:16 GMT
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



Mime
View raw message