myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r1510932 - /myfaces/tobago/trunk/src/site/apt/release-checklist.apt
Date Tue, 06 Aug 2013 12:39:23 GMT
Author: lofwyr
Date: Tue Aug  6 12:39:22 2013
New Revision: 1510932

URL: http://svn.apache.org/r1510932
Log:
adding description to Copy the download artifacts from the repository to the site

Modified:
    myfaces/tobago/trunk/src/site/apt/release-checklist.apt

Modified: myfaces/tobago/trunk/src/site/apt/release-checklist.apt
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/src/site/apt/release-checklist.apt?rev=1510932&r1=1510931&r2=1510932&view=diff
==============================================================================
--- myfaces/tobago/trunk/src/site/apt/release-checklist.apt (original)
+++ myfaces/tobago/trunk/src/site/apt/release-checklist.apt Tue Aug  6 12:39:22 2013
@@ -87,14 +87,16 @@ mvn deploy -Papache-release,generate-ass
 
   * Close all resolved jira issuse for the release.
 
-  * "release" the staging repository on the apache nexus instance.
+  * <Release> the staging repository on the {{{https://repository.apache.org/}Nexus}}
instance.
 
-  * Update the download site after the distribution is on the apache mirrors available.
+  * Copy the download artifacts from the repository to the site (see script below)
 
-  * Delete old assemblies in /www/www.apache.org/dist/myfaces/binaries on minotaur.apache.org.
+  * Update the site after the distribution is on the Apache mirrors available.
+
+  * Delete old assemblies in /www/www.apache.org/dist/myfaces/binaries on people.apache.org.
     Older releases are automatic available in the {{{http://archive.apache.org/dist/myfaces/}
archive}}.
 
-  * Delete old snapshots in /www/people.apache.org/builds/myfaces/nightly/ on minotaur.apache.org.
+  * Delete old snapshots in /www/people.apache.org/builds/myfaces/nightly/ on people.apache.org.
 
   * Create and send Announcement.
 
@@ -172,5 +174,76 @@ Subject: [ANNOUNCE] Apache Tobago <versi
 
 
 
+Copy the download artifacts from the repository to the site
+
+----------------------------------------
+#!/bin/sh
+set -e
+
+VERSION=2.0.0-alpha-1
+REPOSITORY=https://repository.apache.org/content/repositories/releases
+
+# download file and hashes/signatures
+function download() {
+  DIR="$1"
+  FILE_ON_REPO="$2"
+  FILE="$3"
+
+  curl --fail "${REPOSITORY}/${DIR}/${VERSION}/${FILE_ON_REPO}"      -o ${FILE}
+  curl --fail "${REPOSITORY}/${DIR}/${VERSION}/${FILE_ON_REPO}.asc"  -o ${FILE}.asc
+  curl --fail "${REPOSITORY}/${DIR}/${VERSION}/${FILE_ON_REPO}.md5"  -o ${FILE}.md5
+  curl --fail "${REPOSITORY}/${DIR}/${VERSION}/${FILE_ON_REPO}.sha1" -o ${FILE}.sha1
+}
+
+# this performs check of the hashes (if this fails, something might went wrong absolutely)
+function check() {
+  FILE="$1"
+
+  echo "Checking file ${FILE}: "
+
+  md5 -q "${FILE}" > "${FILE}.md5.temp"
+  if ! diff --ignore-all-space "${FILE}.md5" "${FILE}.md5.temp" ; then
+    echo "Error: MD5 check failed!"
+    exit -1
+  fi
+  echo "  MD5 hash okay"
+
+  shasum "${FILE}" | cut "-d " -f1 > "${FILE}.sha1.temp"
+  if ! diff --ignore-all-space "${FILE}.sha1" "${FILE}.sha1.temp" ; then
+    echo "Error: SHA1 check failed!"
+    exit -1
+  fi
+  echo "  SHA1 hash okay"
+
+  if ! gpg --verify "${FILE}.asc" ; then
+    echo "Error: GPG check failed!"
+    exit -1
+  fi
+  echo "  GPG signature okay"
+}
+
+# commands
+
+download "org/apache/myfaces/tobago/tobago-assembly"         "tobago-assembly-${VERSION}-dist.tar.gz"
           "myfaces-tobago-${VERSION}-dist.tar.gz"
+download "org/apache/myfaces/tobago/tobago-assembly"         "tobago-assembly-${VERSION}-dist.zip"
              "myfaces-tobago-${VERSION}-dist.zip"
+download "org/apache/myfaces/tobago/tobago-example-assembly" "tobago-example-assembly-${VERSION}-example.tar.gz"
"myfaces-tobago-${VERSION}-example.tar.gz"
+download "org/apache/myfaces/tobago/tobago-example-assembly" "tobago-example-assembly-${VERSION}-example.zip"
   "myfaces-tobago-${VERSION}-example.zip"
+download "org/apache/myfaces/tobago/tobago"                  "tobago-${VERSION}-source-release.zip"
             "myfaces-tobago-${VERSION}-source-release.zip"
+
+check "myfaces-tobago-${VERSION}-dist.tar.gz"
+check "myfaces-tobago-${VERSION}-dist.zip"
+check "myfaces-tobago-${VERSION}-example.tar.gz"
+check "myfaces-tobago-${VERSION}-example.zip"
+check "myfaces-tobago-${VERSION}-source-release.zip"
+
+rm *.temp
+
+scp myfaces-tobago-${VERSION}-dist.*           people.apache.org:/www/www.apache.org/dist/myfaces/binaries
+scp myfaces-tobago-${VERSION}-example.*        people.apache.org:/www/www.apache.org/dist/myfaces/binaries
+scp myfaces-tobago-${VERSION}-source-release.* people.apache.org:/www/www.apache.org/dist/myfaces/source
+----------------------------------------
+
+
+
 
 



Mime
View raw message