You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by ju...@apache.org on 2013/05/13 13:31:30 UTC
svn commit: r1974 - /dev/jackrabbit/release-html.sh
Author: jukka
Date: Mon May 13 11:31:28 2013
New Revision: 1974
Log:
JCRSITE-37: Migrate web site from Confluence to svnpubsub
Add script for generating download.html snippet for a release.
Added:
dev/jackrabbit/release-html.sh
Added: dev/jackrabbit/release-html.sh
==============================================================================
--- dev/jackrabbit/release-html.sh (added)
+++ dev/jackrabbit/release-html.sh Mon May 13 11:31:28 2013
@@ -0,0 +1,76 @@
+#!/bin/sh
+
+##
+## Licensed to the Apache Software Foundation (ASF) under one or more
+## contributor license agreements. See the NOTICE file distributed with
+## this work for additional information regarding copyright ownership.
+## The ASF licenses this file to You under the Apache License, Version 2.0
+## (the "License"); you may not use this file except in compliance with
+## the License. You may obtain a copy of the License at
+##
+## http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+##
+
+BASEDIR="`dirname "$0"`"
+RELDIR="$BASEDIR/../jackrabbit-release"
+if [ -z "$1" -o -z "$1" ]; then
+ echo "Usage: $0 [component] version"
+ exit 1
+elif [ -z "$3" ]; then
+ COMPONENT=""
+ VERSION="$1"
+ RELEASE="$RELDIR/$VERSION"
+else
+ COMPONENT="$1"
+ VERSION="$2"
+ echo "TODO: component releases"
+ exit 1;
+fi
+
+if test -d "$RELDIR"; then
+ (cd "$RELDIR"; svn update -q)
+else
+ svn checkout -q \
+ https://dist.apache.org/repos/dist/release/jackrabbit \
+ "$RELDIR"
+fi
+
+BRANCH=`echo "$VERSION" | perl -pe 's/\.\d+$//'`
+
+echo "<h2><a name='v$BRANCH'>Apache Jackrabbit $BRANCH</h2>"
+case "$VERSION" in
+ 2.[13579].*)
+ echo "<p>Apache Jackrabbit $BRANCH.x is an unstable series of releases cut directly from Jackrabbit trunk, with a focus on new features and other improvements. For production use we recommend the latest stable releases.</p>"
+ ;;
+ 2.[02468].0)
+ echo "<p>Apache Jackrabbit $VERSION is an incremental feature release based on and compatible with earlier stable Jackrabbit 2.x releases. Jackrabbit $BRANCH.x releases are considered stable and targeted for production use.</p>"
+ ;;
+ 2.[02468].[1-9]*)
+ echo "<p>Apache Jackrabbit $VERSION is patch release that contains fixes and improvements over previous $BRANCH.x releases. Jackrabbit $BRANCH.x releases are considered stable and targeted for production use.</p>"
+ ;;
+esac
+echo "<p>See the <a href='http://www.apache.org/dist/jackrabbit/$VERSION/RELEASE-NOTES.txt'>full release notes</a> for more details.</p>"
+echo "<ul>"
+echo "<li><a href='http://www.apache.org/dyn/closer.cgi/jackrabbit/$VERSION/jackrabbit-$VERSION-src.zip'>jackrabbit-$VERSION-src.zip</a> (`du -h $RELEASE/jackrabbit-$VERSION-src.zip | cut -f 1 | sed -e 's/ //g'`, source zip, <a href='http://www.apache.org/dist/jackrabbit/$VERSION/jackrabbit-$VERSION-src.zip.asc'>PGP signature</a>)<br>"
+echo " SHA1 checksum: <code>`cat $RELEASE/jackrabbit-$VERSION-src.zip.sha`</code><br>"
+echo " MD5 checksum: <code>`cat $RELEASE/jackrabbit-$VERSION-src.zip.md5`</code>"
+echo "</li>"
+echo "<li><a href='http://www.apache.org/dyn/closer.cgi/jackrabbit/$VERSION/jackrabbit-standalone-$VERSION.jar'>jackrabbit-standalone-$VERSION.jar</a> (`du -h $RELEASE/jackrabbit-standalone-$VERSION.jar | cut -f 1 | sed -e 's/ //g'`, standalone server, <a href='http://www.apache.org/dist/jackrabbit/$VERSION/jackrabbit-standalone-$VERSION.jar.asc'>PGP signature</a>)<br>"
+echo " SHA1 checksum: <code>`cat $RELEASE/jackrabbit-standalone-$VERSION.jar.sha`</code><br>"
+echo " MD5 checksum: <code>`cat $RELEASE/jackrabbit-standalone-$VERSION.jar.md5`</code>"
+echo "</li>"
+echo "<li><a href='http://www.apache.org/dyn/closer.cgi/jackrabbit/$VERSION/jackrabbit-webapp-$VERSION.war'>jackrabbit-webapp-$VERSION.war</a> (`du -h $RELEASE/jackrabbit-webapp-$VERSION.war | cut -f 1 | sed -e 's/ //g'`, web application, <a href='http://www.apache.org/dist/jackrabbit/$VERSION/jackrabbit-webapp-$VERSION.war.asc'>PGP signature</a>)<br>"
+echo " SHA1 checksum: <code>`cat $RELEASE/jackrabbit-webapp-$VERSION.war.sha`</code><br>"
+echo " MD5 checksum: <code>`cat $RELEASE/jackrabbit-webapp-$VERSION.war.md5`</code>"
+echo "</li>"
+echo "<li><a href='http://www.apache.org/dyn/closer.cgi/jackrabbit/$VERSION/jackrabbit-jca-$VERSION.rar'>jackrabbit-jca-$VERSION.rar</a> (`du -h $RELEASE/jackrabbit-jca-$VERSION.rar | cut -f 1 | sed -e 's/ //g'`, JCA resource adapter, <a href='http://www.apache.org/dist/jackrabbit/$VERSION/jackrabbit-jca-$VERSION.rar.asc'>PGP signature</a>)<br>"
+echo " SHA1 checksum: <code>`cat $RELEASE/jackrabbit-jca-$VERSION.rar.sha`</code><br>"
+echo " MD5 checksum: <code>`cat $RELEASE/jackrabbit-jca-$VERSION.rar.md5`</code>"
+echo "</li>"
+echo "</ul>"