You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2020/07/16 15:54:01 UTC

svn commit: r40517 - /dev/activemq/activemq-artemis/promote-release.sh

Author: clebertsuconic
Date: Thu Jul 16 15:54:01 2020
New Revision: 40517

Log:
adding promote release, just because I'm lazy

Added:
    dev/activemq/activemq-artemis/promote-release.sh   (with props)

Added: dev/activemq/activemq-artemis/promote-release.sh
==============================================================================
--- dev/activemq/activemq-artemis/promote-release.sh (added)
+++ dev/activemq/activemq-artemis/promote-release.sh Thu Jul 16 15:54:01 2020
@@ -0,0 +1,51 @@
+#!/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.
+
+# Setting the script to fail if anything goes wrong
+set -e
+
+#This is a script to help with the release process
+
+
+error () {
+   echo ""
+   echo "$@"
+   echo ""
+   echo "Usage: ./promote-release.sh <version>"
+   echo ""
+   echo "example:"
+   echo "./promote-release.sh 2.14.0"
+   echo ""
+   exit 64
+}
+
+if [ "$#" -lt 1 ]; then
+  error "Cannot match arguments"
+fi
+
+release=$1
+echo "Release : $release"
+
+if [ -d $release ]; then
+  echo "Directory for $release is ok"
+else
+  error "Directory $release does not exist"
+fi
+
+echo svn cp -m "add files for activemq-artemis-$release" https://dist.apache.org/repos/dist/dev/activemq/activemq-artemis/$release https://dist.apache.org/repos/dist/release/activemq/activemq-artemis/$release
+svn cp -m "add files for activemq-artemis-$release" https://dist.apache.org/repos/dist/dev/activemq/activemq-artemis/$release https://dist.apache.org/repos/dist/release/activemq/activemq-artemis/$release

Propchange: dev/activemq/activemq-artemis/promote-release.sh
------------------------------------------------------------------------------
    svn:executable = *