geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xiam...@apache.org
Subject svn commit: r1225453 - in /geronimo/site/trunk/bin: fetch_checksum upload_dist
Date Thu, 29 Dec 2011 07:06:28 GMT
Author: xiaming
Date: Thu Dec 29 07:06:27 2011
New Revision: 1225453

URL: http://svn.apache.org/viewvc?rev=1225453&view=rev
Log:
Add two scripts to help with release work of G 2.1 branch

Added:
    geronimo/site/trunk/bin/fetch_checksum   (with props)
    geronimo/site/trunk/bin/upload_dist   (with props)

Added: geronimo/site/trunk/bin/fetch_checksum
URL: http://svn.apache.org/viewvc/geronimo/site/trunk/bin/fetch_checksum?rev=1225453&view=auto
==============================================================================
--- geronimo/site/trunk/bin/fetch_checksum (added)
+++ geronimo/site/trunk/bin/fetch_checksum Thu Dec 29 07:06:27 2011
@@ -0,0 +1,32 @@
+#!/bin/bash
+version=$1
+baseurl="http://repo1.maven.org/maven2/org/apache/geronimo/assemblies"
+artifactList="geronimo-framework geronimo-jetty6-javaee5 geronimo-jetty6-minimal geronimo-tomcat6-javaee5
geronimo-tomcat6-minimal"
+echo "baseurl=$baseurl"
+echo "artifactList=$artifactList"
+if [ ! -d ./$version ]; then
+    echo "Creating a local dist folder for version $version release"
+    mkdir $version
+fi
+for artifactId in $artifactList
+do
+    curl $baseurl/$artifactId/$version/$artifactId-$version-bin.tar.gz.md5 > ./$version/$artifactId-$version-bin.tar.gz.md5
+    curl $baseurl/$artifactId/$version/$artifactId-$version-bin.tar.gz.sha1 > ./$version/$artifactId-$version-bin.tar.gz.sha1
+    curl $baseurl/$artifactId/$version/$artifactId-$version-bin.tar.gz.asc.md5 > ./$version/$artifactId-$version-bin.tar.gz.asc.md5
+    curl $baseurl/$artifactId/$version/$artifactId-$version-bin.tar.gz.asc.sha1 > ./$version/$artifactId-$version-bin.tar.gz.asc.sha1
+    curl $baseurl/$artifactId/$version/$artifactId-$version-bin.zip.md5 > ./$version/$artifactId-$version-bin.zip.md5
+    curl $baseurl/$artifactId/$version/$artifactId-$version-bin.zip.sha1 > ./$version/$artifactId-$version-bin.zip.sha1
+    curl $baseurl/$artifactId/$version/$artifactId-$version-bin.zip.asc.md5 > ./$version/$artifactId-$version-bin.zip.asc.md5
+    curl $baseurl/$artifactId/$version/$artifactId-$version-bin.zip.asc.sha1 > ./$version/$artifactId-$version-bin.zip.asc.sha1
+done
+
+#fetch source tar/zip checksum files
+curl http://repo1.maven.org/maven2/org/apache/geronimo/geronimo/$version/geronimo-$version-source-release.tar.gz.md5
> ./$version/geronimo-$version-source-release.tar.gz.md5
+curl http://repo1.maven.org/maven2/org/apache/geronimo/geronimo/$version/geronimo-$version-source-release.tar.gz.sha1
> ./$version/geronimo-$version-source-release.tar.gz.sha1
+curl http://repo1.maven.org/maven2/org/apache/geronimo/geronimo/$version/geronimo-$version-source-release.tar.gz.asc.md5
> ./$version/geronimo-$version-source-release.tar.gz.asc.md5
+curl http://repo1.maven.org/maven2/org/apache/geronimo/geronimo/$version/geronimo-$version-source-release.tar.gz.asc.sha1
> ./$version/geronimo-$version-source-release.tar.gz.asc.sha1
+curl http://repo1.maven.org/maven2/org/apache/geronimo/geronimo/$version/geronimo-$version-source-release.zip.md5
> ./$version/geronimo-$version-source-release.zip.md5
+curl http://repo1.maven.org/maven2/org/apache/geronimo/geronimo/$version/geronimo-$version-source-release.zip.sha1
> ./$version/geronimo-$version-source-release.zip.sha1
+curl http://repo1.maven.org/maven2/org/apache/geronimo/geronimo/$version/geronimo-$version-source-release.zip.asc.md5
> ./$version/geronimo-$version-source-release.zip.asc.md5
+curl http://repo1.maven.org/maven2/org/apache/geronimo/geronimo/$version/geronimo-$version-source-release.zip.asc.sha1
> ./$version/geronimo-$version-source-release.zip.asc.sha1
+

Propchange: geronimo/site/trunk/bin/fetch_checksum
------------------------------------------------------------------------------
    svn:executable = *

Added: geronimo/site/trunk/bin/upload_dist
URL: http://svn.apache.org/viewvc/geronimo/site/trunk/bin/upload_dist?rev=1225453&view=auto
==============================================================================
--- geronimo/site/trunk/bin/upload_dist (added)
+++ geronimo/site/trunk/bin/upload_dist Thu Dec 29 07:06:27 2011
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+version=$1
+committername=$2
+workdir=`pwd`
+ssh $committername@people.apache.org '[ ! -d /www/www.apache.org/dist/geronimo/$version ]
&& mkdir /www/www.apache.org/dist/geronimo/$version; chmod 775 /www/www.apache.org/dist/geronimo/$version'
+scp $workdir/$version/*.* $committername@people.apache.org:/www/www.apache.org/dist/geronimo/$version/
+ssh $committername@people.apache.org 'chmod 664 /www/www.apache.org/dist/geronimo/$version/*'

Propchange: geronimo/site/trunk/bin/upload_dist
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message