You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rave.apache.org by mf...@apache.org on 2012/02/17 22:44:56 UTC

svn commit: r1245776 - /incubator/rave/release-management/publish.sh

Author: mfranklin
Date: Fri Feb 17 21:44:56 2012
New Revision: 1245776

URL: http://svn.apache.org/viewvc?rev=1245776&view=rev
Log:
Added a publish script

Added:
    incubator/rave/release-management/publish.sh   (with props)

Added: incubator/rave/release-management/publish.sh
URL: http://svn.apache.org/viewvc/incubator/rave/release-management/publish.sh?rev=1245776&view=auto
==============================================================================
--- incubator/rave/release-management/publish.sh (added)
+++ incubator/rave/release-management/publish.sh Fri Feb 17 21:44:56 2012
@@ -0,0 +1,63 @@
+#!/bin/bash
+##
+# 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.
+
+version=$1
+ssh_key=$2
+
+_continueOrExit() {
+   RETURN=$1
+   if [ "$RETURN" != "0" ];
+     then
+       echo "Terminating publication process due to prior error"
+       exit $RETURN
+   fi
+}
+
+OPTS=""
+if [ "$ssh_key" != ""  ];
+   then
+    OPTS="-i $ssh_key"
+fi
+
+if  [ "$version" == "" ];
+  then
+   echo "You must provide a valid release version.  IE 0.6"
+   exit 1
+fi
+
+
+mkdir $version-incubating
+cd $version-incubating 
+wget https://repository.apache.org/content/repositories/releases/org/apache/rave/rave-project/$version-incubating/rave-project-$version-incubating-source-release.zip
+_continueOrExit $?
+wget https://repository.apache.org/content/repositories/releases/org/apache/rave/rave-project/$version-incubating/rave-project-$version-incubating-source-release.zip.asc 
+_continueOrExit $?
+wget https://repository.apache.org/content/repositories/releases/org/apache/rave/rave-project/$version-incubating/rave-project-$version-incubating-source-release.zip.md5 
+_continueOrExit $?
+wget https://repository.apache.org/content/repositories/releases/org/apache/rave/rave-project/$version-incubating/rave-project-$version-incubating-source-release.zip.sha1 
+_continueOrExit $?
+scp $OPTS people.apache.org:/www/people.apache.org/builds/incubator/rave/$version-incubating/* ./
+_continueOrExit $?
+cd ..
+svn import -m "Committing $version-incubating release" ./$version-incubating https://dist.apache.org/repos/dist/release/incubator/rave/$version-incubating
+_continueOrExit $?
+ssh $OPTS rm -rfv /www/people.apache.org/builds/incubator/rave/$version-incubating
+_continueOrExit $?
+
+echo "Release $version-incubating has been published.  Please wait 24hrs for the mirrors to syndicate before publishing website"

Propchange: incubator/rave/release-management/publish.sh
------------------------------------------------------------------------------
    svn:executable = *