You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ch...@apache.org on 2013/04/21 21:26:34 UTC

[2/2] git commit: updated refs/heads/4.1 to 5b4223a

Adding svn upload to dev dist dir to release build script

Signed-off-by: Chip Childers <ch...@apache.org>


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

Branch: refs/heads/4.1
Commit: 5b4223a3b3094aee29ea5f6af8acd9f0df13ae32
Parents: 7f579a1
Author: Chip Childers <ch...@apache.org>
Authored: Sun Apr 21 15:26:11 2013 -0400
Committer: Chip Childers <ch...@apache.org>
Committed: Sun Apr 21 15:26:11 2013 -0400

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


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/5b4223a3/tools/build/build_asf.sh
----------------------------------------------------------------------
diff --git a/tools/build/build_asf.sh b/tools/build/build_asf.sh
index d3f7508..912733a 100755
--- a/tools/build/build_asf.sh
+++ b/tools/build/build_asf.sh
@@ -22,15 +22,17 @@ outputdir=/tmp/cloudstack-build/
 branch='master'
 tag='no'
 certid='X'
+committosvn='X'
 
 usage(){
-    echo "usage: $0 -v version [-b branch] [-s source dir] [-o output dir] [-t [-u]] [-h]"
+    echo "usage: $0 -v version [-b branch] [-s source dir] [-o output dir] [-t [-u]] [-c] [-h]"
     echo "  -v sets the version"
     echo "  -b sets the branch (defaults to 'master')"
     echo "  -s sets the source directory (defaults to $sourcedir)"
     echo "  -o sets the output directory (defaults to $outputdir)"
     echo "  -t tags the git repo with the version"
     echo "  -u sets the certificate ID to sign the tag with (if not provided, the default key is attempted)"
+    echo "  -c commits build artifacts to cloudstack dev dist dir in svn"
     echo "  -h"
 }
 
@@ -43,6 +45,7 @@ do
       b)  branch="$OPTARG";;
       t)  tag='yes';;
       u)  certid="$OPTARG";;
+      c)  committosvn='yes';;
       h)  usage
           exit 0;;
       /?)       # unknown flag
@@ -129,4 +132,21 @@ if [ $tag == 'yes' ]; then
   fi
 fi
 
+if [$committosvn == 'yes' ]; then
+  echo 'committing artifacts to svn'
+  rm -Rf /tmp/cloudstack-dev-dist
+  cd /tmp
+  svn co https://dist.apache.org/repos/dist/dev/cloudstack/ cloudstack-dev-dist
+  cd cloudstack-dev-dist
+  cp $outputdir/apache-cloudstack-$version-src.tar.bz2 .
+  cp $outputdir/apache-cloudstack-$version-src.tar.bz2.asc .
+  cp $outputdir/apache-cloudstack-$version-src.tar.bz2.md5 .
+  cp $outputdir/apache-cloudstack-$version-src.tar.bz2.sha .
+  svn add $outputdir/apache-cloudstack-$version-src.tar.bz2
+  svn add $outputdir/apache-cloudstack-$version-src.tar.bz2.asc
+  svn add $outputdir/apache-cloudstack-$version-src.tar.bz2.md5
+  svn add $outputdir/apache-cloudstack-$version-src.tar.bz2.sha
+  svn commit -m "Committing release candidate artifacts for $version to dist/dev/cloudstack in preparation for release vote"
+fi
+
 echo "completed.  use commit-sh of $commitsh when starting the VOTE thread"