poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r1000901 - in /poi/trunk: maven/multisign.sh src/documentation/content/xdocs/status.xml
Date Fri, 24 Sep 2010 15:11:16 GMT
Author: nick
Date: Fri Sep 24 15:11:16 2010
New Revision: 1000901

URL: http://svn.apache.org/viewvc?rev=1000901&view=rev
Log:
Generate SHA1 hashes as well as MD5 ones. Also, use md5sum/sha1sum in preference to openssl
(if found), as the former include the filenames in the hashes which is helpful when verifying

Modified:
    poi/trunk/maven/multisign.sh
    poi/trunk/src/documentation/content/xdocs/status.xml

Modified: poi/trunk/maven/multisign.sh
URL: http://svn.apache.org/viewvc/poi/trunk/maven/multisign.sh?rev=1000901&r1=1000900&r2=1000901&view=diff
==============================================================================
--- poi/trunk/maven/multisign.sh (original)
+++ poi/trunk/maven/multisign.sh Fri Sep 24 15:11:16 2010
@@ -22,10 +22,29 @@ echo "enter your GPG passphrase"
 read passphrase
 stty echo
 
+# Do we have md5sum and sha1sum?
+# (We can use openssl if not, but the files it produces aren't as nice)
+which md5sum > /dev/null
+LACKING_MD5SUM=$?
+which sha1sum > /dev/null
+LACKING_SHA1SUM=$?
+
 for i in *; do
+    echo ""
     echo Signing $i
     echo $passphrase | gpg --passphrase-fd 0 --output $i.asc --detach-sig --armor $i
     gpg --verify $i.asc $i
     echo Hashing $i
-    openssl md5 < $i > $i.md5
+
+    if [ "$LACKING_MD5SUM" = "1" ]; then
+       openssl md5 < $i > $i.md5
+    else
+       md5sum $i > $i.md5
+    fi
+
+    if [ "$LACKING_SHA1SUM" = "1" ]; then
+       openssl sha1 < $i > $i.sha1
+    else
+       sha1sum $i > $i.sha1
+    fi
 done

Modified: poi/trunk/src/documentation/content/xdocs/status.xml
URL: http://svn.apache.org/viewvc/poi/trunk/src/documentation/content/xdocs/status.xml?rev=1000901&r1=1000900&r2=1000901&view=diff
==============================================================================
--- poi/trunk/src/documentation/content/xdocs/status.xml (original)
+++ poi/trunk/src/documentation/content/xdocs/status.xml Fri Sep 24 15:11:16 2010
@@ -33,10 +33,9 @@
     </developers>
 
     <changes>
-<!--
         <release version="3.7-beta4" date="2010-??-??">
+           <action dev="poi-developers" type="add">Generate SHA1 hashes of distribution
files, alongside existing MD5 ones</action>
         </release>
--->
         <release version="3.7-beta3" date="2010-09-24">
            <action dev="poi-developers" type="fix">48325 - If a HSSF header or footer
lacks left/right/centre information, assume it is a centre one</action>
            <action dev="poi-developers" type="fix">49966 - Correctly remove calcChain
entries for XSSF cells that stop holding formulas</action>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message