Author: jcvanderwal
Date: Fri Dec 21 16:02:36 2012
New Revision: 1424985

URL: http://svn.apache.org/viewvc?rev=1424985&view=rev
Log:
Added verify releases script

Added:
    isis/site/trunk/content/contributors/verifying-releases-script.md

Added: isis/site/trunk/content/contributors/verifying-releases-script.md
URL: 
http://svn.apache.org/viewvc/isis/site/trunk/content/contributors/verifying-releases-script.md?rev=1424985&view=auto
==============================================================================
--- isis/site/trunk/content/contributors/verifying-releases-script.md (added)
+++ isis/site/trunk/content/contributors/verifying-releases-script.md Fri Dec 
21 16:02:36 2012
@@ -0,0 +1,87 @@
+To save some time in verifying an Isis release we've assembled a script to 
automate the process. The script is tested on Mac OSX and should work on Linux 
too. Windows users can use Cygwin. It's **recommended** that you start this 
process in an empty directory:
+
+       $ mkdir ~/verify-isis-release
+       $ cd ~/verify-isis-release
+
+## Copy the script to your local machine 
+       
+The script could be enhanced in many ways, feel free to do so! Copy the script 
to a .sh file, for eaxmple `verify-isis-release.sh`
+       
+       #!/bin/bash
+       # Instructions:
+       # -Create an empty directory
+       # -Put a .txt file in it containing a list of all the urls of the zip 
files
+       # -Run this script
+       # TODO: enhance this script so it will stop when something is broken
+       _download(){
+               files=( `cat "*.txt" `)
+               for fil in "${files[@]}"
+               do
+                       echo 'Downloading '$fil
+                       curl -O $fil
+                       curl -O $fil.asc
+               done
+       }
+       _verify(){
+               for zip in *.zip
+               do 
+                       echo 'Verifying '$zip   
+                       gpg --verify $zip.asc $zip 
+               done
+       }
+       _unpack(){
+               echo 'Unpacking '
+               unzip -q '*.zip'
+       }
+       _build(){
+               echo 'Removing Isis from local repo '$module
+               rm -rf ~/.m2/repository/org/apache/isis
+               COUNTER=0
+               for module in ./*/
+               do
+                       COUNTER=$[COUNTER+1]
+                       if [ $COUNTER -eq 1 ]
+                       then
+                               cd $module
+                               echo 'Building Core '$module
+                               mvn clean install -o
+                               cd ..
+                       else
+                               cd $module
+                               echo 'Building Module '$module
+                               mvn clean install
+                               cd ..
+                       fi
+               done
+       }
+       # The work starts here 
+       _download
+       _verify
+       _unpack
+       _build
+
+Make sure the script is executable 
+
+       $ chmod +x verify-isis-release.sh
+
+
+## Create an input file
+
+The input file is a plain .txt file containing all urls to the packages to be 
verfied. Here's a sample of the release of Isis 1.0.0:
+
+
+    
https://repository.apache.org/content/repositories/orgapacheisis-063/org/apache/isis/core/isis/1.0.0/isis-1.0.0-source-release.zip
+    
https://repository.apache.org/content/repositories/orgapacheisis-058/org/apache/isis/objectstore/isis-objectstore-jdo/1.0.0/isis-objectstore-jdo-1.0.0-source-release.zip
+    
https://repository.apache.org/content/repositories/orgapacheisis-059/org/apache/isis/security/isis-security-file/1.0.0/isis-security-file-1.0.0-source-release.zip
+    
https://repository.apache.org/content/repositories/orgapacheisis-060/org/apache/isis/viewer/isis-viewer-wicket/1.0.0/isis-viewer-wicket-1.0.0-source-release.zip
+     
https://repository.apache.org/content/repositories/orgapacheisis-062/org/apache/isis/viewer/isis-viewer-restfulobjects/1.0.0/isis-viewer-restfulobjects-1.0.0-source-release.zip
+    
https://repository.apache.org/content/repositories/orgapacheisis-065/org/apache/isis/archetype/quickstart_wicket_restful_jdo-archetype/1.0.0/quickstart_wicket_restful_jdo-archetype-1.0.0-source-release.zip
+    
+The actual list of packages to be verified will be provided through the 
mailing list.
+
+## Execute the script
+Execute...
+
+    $ ./verify-isis-release.sh
+    
+…and get yourself a cup of coffee.
\ No newline at end of file


Reply via email to