You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ah...@apache.org on 2012/09/05 23:31:49 UTC

[9/50] [abbrv] git commit: Adding a build script for use when creating ASF releases and release candidates

Adding a build script for use when creating ASF releases and release candidates


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/b5ab5c2b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/b5ab5c2b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/b5ab5c2b

Branch: refs/heads/javelin
Commit: b5ab5c2b027f900d210365d9c91e7c70f43a7b74
Parents: 7c30fe5
Author: Chip Childers <ch...@gmail.com>
Authored: Tue Sep 4 14:22:23 2012 -0400
Committer: Chip Childers <ch...@gmail.com>
Committed: Tue Sep 4 14:22:23 2012 -0400

----------------------------------------------------------------------
 tools/build/build_asf.sh |   63 +++++++++++++++++++++++++++++++++++++++++
 1 files changed, 63 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/b5ab5c2b/tools/build/build_asf.sh
----------------------------------------------------------------------
diff --git a/tools/build/build_asf.sh b/tools/build/build_asf.sh
new file mode 100755
index 0000000..dbb8dfd
--- /dev/null
+++ b/tools/build/build_asf.sh
@@ -0,0 +1,63 @@
+#!/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.
+
+version='TESTBUILD'
+sourcedir=~/incubator-cloudstack/
+outputdir=~/cs-asf-build/
+branch='master'
+while getopts v:s:o:b: opt
+do
+    case "$opt" in
+      v)  version="$OPTARG";;
+      s)  sourcedir="$OPTARG";;
+      o)  outputdir="$OPTARG";;
+      b)  branch="$OPTARG";;
+      \?)       # unknown flag
+          echo >&2 \
+      "usage: $0 [-v version number] [-s source directory (defaults to $sourcedir)] [-o output directory (defaults to $outputdir)]"
+      exit 1;;
+    esac
+done
+shift `expr $OPTIND - 1`
+
+echo $version
+echo $sourcedir
+echo $outputdir
+
+if [ -d "$outputdir" ]; then
+    rm $outputdir/*
+else
+    mkdir $outputdir
+fi
+
+cp $sourcedir/KEYS $outputdir/KEYS
+
+cd $sourcedir
+git archive --format=tar.gz --prefix=$version/ $branch > $outputdir/cloudstack-source-$version.tar.gz
+git archive --format=zip --prefix=$version/ $branch > $outputdir/cloudstack-source-$version.zip
+
+cd $outputdir
+gpg -v --armor --output cloudstack-source-$version.tar.gz.asc --detach-sig cloudstack-source-$version.tar.gz
+gpg -v --armor --output cloudstack-source-$version.zip.asc --detach-sig cloudstack-source-$version.zip
+gpg -v --print-md MD5 cloudstack-source-$version.tar.gz > cloudstack-source-$version.tar.gz.md5
+gpg -v --print-md MD5 cloudstack-source-$version.zip > cloudstack-source-$version.zip.md5
+gpg -v --print-md SHA512 cloudstack-source-$version.tar.gz > cloudstack-source-$version.tar.gz.sha
+gpg -v --print-md SHA512 cloudstack-source-$version.zip > cloudstack-source-$version.zip.sha
+
+gpg -v --verify cloudstack-source-$version.tar.gz.asc cloudstack-source-$version.tar.gz
+gpg -v --verify cloudstack-source-$version.zip.asc cloudstack-source-$version.zip