Author: jxue
Date: Tue Jan 30 01:12:25 2018
New Revision: 24533
Log:
Add new script for Helix 0.8.x release
Added:
dev/helix/release-script-helix-0.8.x-svn.sh
Added: dev/helix/release-script-helix-0.8.x-svn.sh
==============================================================================
--- dev/helix/release-script-helix-0.8.x-svn.sh (added)
+++ dev/helix/release-script-helix-0.8.x-svn.sh Tue Jan 30 01:12:25 2018
@@ -0,0 +1,69 @@
+#!/usr/local/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.
+#
+
+## $Id: release-script-svn.sh 3521 2013-11-14 23:55:13Z kanak $ ##
+#$1 version
+#$2 staging repo path on repository.apache.org
+set -e
+if test $# -ne 2
+then
+ echo 'usage release-script.sh version stagingRepoUrl'
+ exit
+fi
+export version=$1
+export repo=$2
+
+mkdir $version
+cd $version
+
+mkdir binaries
+cd binaries
+for i in pkg.tar pkg.tar.asc pkg.tar.md5 pkg.tar.sha1
+do
+ wget -O helix-core-$version-$i
$repo/org/apache/helix/helix-core/$version/helix-core-$version-$i
+ if [ ! -s helix-core-$version-$i ]; then
+ echo Unable to find helix-core-$version-$i
+ exit 1
+ fi
+ echo "wget -O helix-admin-webapp-$version-$i
$repo/org/apache/helix/helix-admin-webapp/$version/helix-admin-webapp-$version-$i"
+ wget -O helix-admin-webapp-$version-$i
$repo/org/apache/helix/helix-admin-webapp/$version/helix-admin-webapp-$version-$i
+ echo "wget -O helix-agent-$version-$i
$repo/org/apache/helix/helix-agent/$version/helix-agent-$version-$i"
+ wget -O helix-agent-$version-$i
$repo/org/apache/helix/helix-agent/$version/helix-agent-$version-$i
+ echo "wget -O helix-rest-$version-$i
$repo/org/apache/helix/helix-rest/$version/helix-rest-$version-$i"
+ wget -O helix-rest-$version-$i
$repo/org/apache/helix/helix-rest/$version/helix-rest-$version-$i
+
+ #wget -O helix-examples-$version-$i
$repo/org/apache/helix/helix-examples/$version/helix-examples-$version-$i
+ #wget -O helix-provisioning-$version-$i
$repo/org/apache/helix/helix-provisioning/$version/helix-provisioning-$version-$i
+ #wget -O helix-ipc-$version-$i
$repo/org/apache/helix/helix-ipc/$version/helix-ipc-$version-$i
+done
+
+cd ..
+mkdir src
+cd src
+for i in zip zip.asc zip.md5 zip.sha1
+do
+ echo "wget -O helix-$version-src.$i
$repo/org/apache/helix/helix/$version/helix-$version-source-release.$i"
+ wget -O helix-$version-src.$i
$repo/org/apache/helix/helix/$version/helix-$version-source-release.$i
+ if [ ! -s helix-$version-src.$i ]; then
+ echo Unable to find helix-$version-src.$i
+ exit 1
+ fi
+done
+