You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wookie.apache.org by ps...@apache.org on 2011/06/29 17:47:57 UTC

svn commit: r1141137 - /incubator/wookie/branches/0.9.x/etc/release/runsignatures.bat

Author: psharples
Date: Wed Jun 29 15:47:57 2011
New Revision: 1141137

URL: http://svn.apache.org/viewvc?rev=1141137&view=rev
Log:
A windows batch file that automates the MD5, SHA512 and ASC signatures for all of the builds. TODO - improve this into an ant specific implementation or at least create a runsignatures.sh shell script too.

Added:
    incubator/wookie/branches/0.9.x/etc/release/runsignatures.bat

Added: incubator/wookie/branches/0.9.x/etc/release/runsignatures.bat
URL: http://svn.apache.org/viewvc/incubator/wookie/branches/0.9.x/etc/release/runsignatures.bat?rev=1141137&view=auto
==============================================================================
--- incubator/wookie/branches/0.9.x/etc/release/runsignatures.bat (added)
+++ incubator/wookie/branches/0.9.x/etc/release/runsignatures.bat Wed Jun 29 15:47:57 2011
@@ -0,0 +1,79 @@
+rem
+rem Licensed under the Apache License, Version 2.0 (the "License");
+rem you may not use this file except in compliance with the License.
+rem You may obtain a copy of the License at
+rem
+rem      http://www.apache.org/licenses/LICENSE-2.0
+rem
+rem Unless required by applicable law or agreed to in writing, software
+rem distributed under the License is distributed on an "AS IS" BASIS,
+rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+rem See the License for the specific language governing permissions and
+rem limitations under the License.
+
+set WOOKIE-VERSION=0.9.0
+set ROOT-FOLDER=%WOOKIE-VERSION%-incubating
+set SOURCE-FOLDER=source
+set SRC-BUILD-TAR=apache-wookie-%WOOKIE-VERSION%-incubating-src.tar.gz
+set SRC-BUILD-ZIP=apache-wookie-%WOOKIE-VERSION%-incubating-src.zip
+set BINARY-FOLDER-STANDALONE=binary/standalone
+set BINARY-STANDALONE-TAR=apache-wookie-%WOOKIE-VERSION%-incubating-standalone.tar.gz
+set BINARY-STANDALONE-ZIP=apache-wookie-%WOOKIE-VERSION%-incubating-standalone.zip
+set BINARY-FOLDER-WAR=binary/war
+set BINARY-WAR-TAR=apache-wookie-%WOOKIE-VERSION%-incubating-war.tar.gz
+set BINARY-WAR-ZIP=apache-wookie-%WOOKIE-VERSION%-incubating-war.zip
+
+cd %ROOT-FOLDER%/%SOURCE-FOLDER%
+gpg2 --armor --output %SRC-BUILD-TAR%.asc --detach-sig %SRC-BUILD-TAR%
+echo verifying the signature for %SRC-BUILD-TAR%
+gpg2 --verify %SRC-BUILD-TAR%.asc %SRC-BUILD-TAR%
+echo Creating MD5 value for %SRC-BUILD-TAR%
+gpg2 --print-md MD5 %SRC-BUILD-TAR% > %SRC-BUILD-TAR%.md5
+echo Creating SHA512 value for %SRC-BUILD-TAR%
+gpg2 --print-md SHA512 %SRC-BUILD-TAR% > %SRC-BUILD-TAR%.sha
+
+gpg2 --armor --output %SRC-BUILD-ZIP%.asc --detach-sig %SRC-BUILD-ZIP%
+echo verifying the signature for %SRC-BUILD-ZIP%
+gpg2 --verify %SRC-BUILD-ZIP%.asc %SRC-BUILD-ZIP%
+echo Creating MD5 value for %SRC-BUILD-ZIP%
+gpg2 --print-md MD5 %SRC-BUILD-ZIP% > %SRC-BUILD-ZIP%.md5
+echo Creating SHA512 value for %SRC-BUILD-ZIP%
+gpg2 --print-md SHA512 %SRC-BUILD-ZIP% > %SRC-BUILD-ZIP%.sha
+
+cd ../%BINARY-FOLDER-STANDALONE%
+
+gpg2 --armor --output %BINARY-STANDALONE-TAR%.asc --detach-sig %BINARY-STANDALONE-TAR%
+echo verifying the signature for %BINARY-STANDALONE-TAR%
+gpg2 --verify %BINARY-STANDALONE-TAR%.asc %BINARY-STANDALONE-TAR%
+echo Creating MD5 value for %BINARY-STANDALONE-TAR%
+gpg2 --print-md MD5 %BINARY-STANDALONE-TAR% > %BINARY-STANDALONE-TAR%.md5
+echo Creating SHA512 value for %BINARY-STANDALONE-TAR%
+gpg2 --print-md SHA512 %BINARY-STANDALONE-TAR% > %BINARY-STANDALONE-TAR%.sha
+
+gpg2 --armor --output %BINARY-STANDALONE-ZIP%.asc --detach-sig %BINARY-STANDALONE-ZIP%
+echo verifying the signature for %BINARY-STANDALONE-ZIP%
+gpg2 --verify %BINARY-STANDALONE-ZIP%.asc %BINARY-STANDALONE-ZIP%
+echo Creating MD5 value for %BINARY-STANDALONE-ZIP%
+gpg2 --print-md MD5 %BINARY-STANDALONE-ZIP% > %BINARY-STANDALONE-ZIP%.md5
+echo Creating SHA512 value for %BINARY-STANDALONE-ZIP%
+gpg2 --print-md SHA512 %BINARY-STANDALONE-ZIP% > %BINARY-STANDALONE-ZIP%.sha
+
+cd ../../%BINARY-FOLDER-WAR%
+
+gpg2 --armor --output %BINARY-WAR-TAR%.asc --detach-sig %BINARY-WAR-TAR%
+echo verifying the signature for %BINARY-WAR-TAR%
+gpg2 --verify %BINARY-WAR-TAR%.asc %BINARY-WAR-TAR%
+echo Creating MD5 value for %BINARY-WAR-TAR%
+gpg2 --print-md MD5 %BINARY-WAR-TAR% > %BINARY-WAR-TAR%.md5
+echo Creating SHA512 value for %BINARY-WAR-TAR%
+gpg2 --print-md SHA512 %BINARY-WAR-TAR% > %BINARY-WAR-TAR%.sha
+
+gpg2 --armor --output %BINARY-WAR-ZIP%.asc --detach-sig %BINARY-WAR-ZIP%
+echo verifying the signature for %BINARY-WAR-ZIP%
+gpg2 --verify %BINARY-WAR-ZIP%.asc %BINARY-WAR-ZIP%
+echo Creating MD5 value for %BINARY-WAR-ZIP%
+gpg2 --print-md MD5 %BINARY-WAR-ZIP% > %BINARY-WAR-ZIP%.md5
+echo Creating SHA512 value for %BINARY-WAR-ZIP%
+gpg2 --print-md SHA512 %BINARY-WAR-ZIP% > %BINARY-WAR-ZIP%.sha
+pause
+