You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2017/04/28 09:07:53 UTC

svn commit: r1793020 - in /myfaces/tobago/trunk/src/site: apt/release-checklist.apt resources/scripts/ resources/scripts/drop-artifacts.sh resources/scripts/release-artifacts.sh

Author: lofwyr
Date: Fri Apr 28 09:07:53 2017
New Revision: 1793020

URL: http://svn.apache.org/viewvc?rev=1793020&view=rev
Log:
Updating site: Better description of artifact handling

Added:
    myfaces/tobago/trunk/src/site/resources/scripts/
    myfaces/tobago/trunk/src/site/resources/scripts/drop-artifacts.sh   (with props)
    myfaces/tobago/trunk/src/site/resources/scripts/release-artifacts.sh
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=1793020&r1=1793019&r2=1793020&view=diff
==============================================================================
--- myfaces/tobago/trunk/src/site/apt/release-checklist.apt (original)
+++ myfaces/tobago/trunk/src/site/apt/release-checklist.apt Fri Apr 28 09:07:53 2017
@@ -118,7 +118,7 @@ mvn release:perform
 
   * <Release> the staging repository on the {{{https://repository.apache.org/}Nexus}} instance.
 
-  * Copy the download artifacts from the repository to the site (see script below)
+  * Copy the download artifacts from the repository to the site (see script {{{./scripts/release-artifacts.sh}release-artifacts.sh}}).
 
   * Add the release version and date to the {{{https://reporter.apache.org/addrelease.html?myfaces}Apache Committee Report Helper}}.
 
@@ -146,10 +146,10 @@ mvn site:stage -DstagingDirectory=/Volum
   * Unpack and commit the API Docs of the release with the update-1.0.sh, update-1.5.sh or update-2.0.sh script in
     /Volumes/tobago-site/tobago-publish (set correct version first).
 
-  * Delete old assemblies in /www/www.apache.org/dist/myfaces/binaries on people.apache.org.
+  * Remove old download artifacts from the site (see script {{{./scripts/drop-artifacts.sh}drop-artifacts.sh}}).
     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 people.apache.org.
+  * Delete old snapshots in the maven snapshot repository.
 
   * Create and send announcement (see {{Announcement template}} below).
 
@@ -267,92 +267,3 @@ Have fun,
 
 +------------------------+
 
-
-
-Copy the download artifacts from the repository to the site (release-tobago.sh)
-
-+------------------------+
-#!/bin/sh
-set -e
-
-#VERSION=2.0.10
-VERSION=3.0.4
-
-MAVEN_REPOSITORY=https://repository.apache.org/content/repositories/releases
-DIST_REPOSITORY=https://dist.apache.org/repos/dist/release/myfaces
-
-# download file and hashes/signatures
-function download() {
-  DIR="$1"
-  FILE_ON_REPO="$2"
-  FILE="$3"
-
-  curl --fail "${MAVEN_REPOSITORY}/${DIR}/${VERSION}/${FILE_ON_REPO}"      -o ${FILE}
-  curl --fail "${MAVEN_REPOSITORY}/${DIR}/${VERSION}/${FILE_ON_REPO}.asc"  -o ${FILE}.asc
-  curl --fail "${MAVEN_REPOSITORY}/${DIR}/${VERSION}/${FILE_ON_REPO}.md5"  -o ${FILE}.md5
-  curl --fail "${MAVEN_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 -a 1 "${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"
-
-  # todo: change, if maven creates the sha256
-  shasum -a 256 "${FILE}" > "${FILE}.sha256"
-  echo "  SHA-256 created"
-
-}
-
-# this uploads the files into the svn dist repo
-function upload() {
-  PATTERN="$1"
-  FOLDER="$2"
-
-  for file in $(find . -type file -name "${PATTERN}" -exec basename \{\} \; ) ; do
-    # echo $file;
-    svn import -m "Tobago ${VERSON}" $file ${DIST_REPOSITORY}/${FOLDER}/$file;
-  done
-}
-
-# 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 -f *.temp
-
-upload "myfaces-tobago-${VERSION}-dist.*"           "binaries"
-upload "myfaces-tobago-${VERSION}-example.*"        "binaries"
-upload "myfaces-tobago-${VERSION}-source-release.*" "source"
-+------------------------+

Added: myfaces/tobago/trunk/src/site/resources/scripts/drop-artifacts.sh
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/src/site/resources/scripts/drop-artifacts.sh?rev=1793020&view=auto
==============================================================================
--- myfaces/tobago/trunk/src/site/resources/scripts/drop-artifacts.sh (added)
+++ myfaces/tobago/trunk/src/site/resources/scripts/drop-artifacts.sh Fri Apr 28 09:07:53 2017
@@ -0,0 +1,40 @@
+#!/bin/sh
+set -e
+
+echo "Removing old download artifacts from the site."
+
+if [ $# -ne 1 ]; then
+    echo "Usage: $0 <version>"
+    exit 1
+fi
+
+VERSION=$1
+
+DIST_REPOSITORY=https://dist.apache.org/repos/dist/release/myfaces
+
+svn rm -m "Cleaning up old release artifact ${VERSION} from dist server" \
+${DIST_REPOSITORY}/binaries/myfaces-tobago-${VERSION}-dist.tar.gz \
+${DIST_REPOSITORY}/binaries/myfaces-tobago-${VERSION}-dist.tar.gz.asc \
+${DIST_REPOSITORY}/binaries/myfaces-tobago-${VERSION}-dist.tar.gz.md5 \
+${DIST_REPOSITORY}/binaries/myfaces-tobago-${VERSION}-dist.tar.gz.sha1 \
+${DIST_REPOSITORY}/binaries/myfaces-tobago-${VERSION}-dist.tar.gz.sha256 \
+${DIST_REPOSITORY}/binaries/myfaces-tobago-${VERSION}-dist.zip \
+${DIST_REPOSITORY}/binaries/myfaces-tobago-${VERSION}-dist.zip.asc \
+${DIST_REPOSITORY}/binaries/myfaces-tobago-${VERSION}-dist.zip.md5 \
+${DIST_REPOSITORY}/binaries/myfaces-tobago-${VERSION}-dist.zip.sha1 \
+${DIST_REPOSITORY}/binaries/myfaces-tobago-${VERSION}-dist.zip.sha256 \
+${DIST_REPOSITORY}/binaries/myfaces-tobago-${VERSION}-example.tar.gz \
+${DIST_REPOSITORY}/binaries/myfaces-tobago-${VERSION}-example.tar.gz.asc \
+${DIST_REPOSITORY}/binaries/myfaces-tobago-${VERSION}-example.tar.gz.md5 \
+${DIST_REPOSITORY}/binaries/myfaces-tobago-${VERSION}-example.tar.gz.sha1 \
+${DIST_REPOSITORY}/binaries/myfaces-tobago-${VERSION}-example.tar.gz.sha256 \
+${DIST_REPOSITORY}/binaries/myfaces-tobago-${VERSION}-example.zip \
+${DIST_REPOSITORY}/binaries/myfaces-tobago-${VERSION}-example.zip.asc \
+${DIST_REPOSITORY}/binaries/myfaces-tobago-${VERSION}-example.zip.md5 \
+${DIST_REPOSITORY}/binaries/myfaces-tobago-${VERSION}-example.zip.sha1 \
+${DIST_REPOSITORY}/binaries/myfaces-tobago-${VERSION}-example.zip.sha256 \
+${DIST_REPOSITORY}/source/myfaces-tobago-${VERSION}-source-release.zip \
+${DIST_REPOSITORY}/source/myfaces-tobago-${VERSION}-source-release.zip.asc \
+${DIST_REPOSITORY}/source/myfaces-tobago-${VERSION}-source-release.zip.md5 \
+${DIST_REPOSITORY}/source/myfaces-tobago-${VERSION}-source-release.zip.sha1 \
+${DIST_REPOSITORY}/source/myfaces-tobago-${VERSION}-source-release.zip.sha256

Propchange: myfaces/tobago/trunk/src/site/resources/scripts/drop-artifacts.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: myfaces/tobago/trunk/src/site/resources/scripts/release-artifacts.sh
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/src/site/resources/scripts/release-artifacts.sh?rev=1793020&view=auto
==============================================================================
--- myfaces/tobago/trunk/src/site/resources/scripts/release-artifacts.sh (added)
+++ myfaces/tobago/trunk/src/site/resources/scripts/release-artifacts.sh Fri Apr 28 09:07:53 2017
@@ -0,0 +1,89 @@
+#!/bin/sh
+set -e
+
+echo "Copying the download artifacts from the repository to the site."
+
+if [ $# -ne 1 ]; then
+    echo "Usage: $0 <version>"
+    exit 1
+fi
+
+VERSION=$1
+
+MAVEN_REPOSITORY=https://repository.apache.org/content/repositories/releases
+DIST_REPOSITORY=https://dist.apache.org/repos/dist/release/myfaces
+
+# download file and hashes/signatures
+function download() {
+  DIR="$1"
+  FILE_ON_REPO="$2"
+  FILE="$3"
+
+  curl --fail "${MAVEN_REPOSITORY}/${DIR}/${VERSION}/${FILE_ON_REPO}"      -o ${FILE}
+  curl --fail "${MAVEN_REPOSITORY}/${DIR}/${VERSION}/${FILE_ON_REPO}.asc"  -o ${FILE}.asc
+  curl --fail "${MAVEN_REPOSITORY}/${DIR}/${VERSION}/${FILE_ON_REPO}.md5"  -o ${FILE}.md5
+  curl --fail "${MAVEN_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 -a 1 "${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"
+
+  # todo: change, if maven creates the sha256
+  shasum -a 256 "${FILE}" > "${FILE}.sha256"
+  echo "  SHA-256 created"
+
+}
+
+# this uploads the files into the svn dist repo
+function upload() {
+  PATTERN="$1"
+  FOLDER="$2"
+
+  for file in $(find . -type file -name "${PATTERN}" -exec basename \{\} \; ) ; do
+    # echo $file;
+    svn import -m "Uploading Tobago release artifact ${VERSION} to dist server" $file ${DIST_REPOSITORY}/${FOLDER}/$file;
+  done
+}
+
+# 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 -f *.temp
+
+upload "myfaces-tobago-${VERSION}-dist.*"           "binaries"
+upload "myfaces-tobago-${VERSION}-example.*"        "binaries"
+upload "myfaces-tobago-${VERSION}-source-release.*" "source"