Return-Path: X-Original-To: apmail-commons-commits-archive@minotaur.apache.org Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A7EDA109E5 for ; Mon, 30 Dec 2013 21:50:54 +0000 (UTC) Received: (qmail 23387 invoked by uid 500); 30 Dec 2013 21:50:54 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 23320 invoked by uid 500); 30 Dec 2013 21:50:54 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 23313 invoked by uid 99); 30 Dec 2013 21:50:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Dec 2013 21:50:54 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Dec 2013 21:50:51 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 6B7F623888FE; Mon, 30 Dec 2013 21:50:30 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1554325 - /commons/proper/pool/trunk/pool-release.sh Date: Mon, 30 Dec 2013 21:50:30 -0000 To: commits@commons.apache.org From: psteitz@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20131230215030.6B7F623888FE@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: psteitz Date: Mon Dec 30 21:50:30 2013 New Revision: 1554325 URL: http://svn.apache.org/r1554325 Log: Added (partial) release automation script. Added: commons/proper/pool/trunk/pool-release.sh (with props) Added: commons/proper/pool/trunk/pool-release.sh URL: http://svn.apache.org/viewvc/commons/proper/pool/trunk/pool-release.sh?rev=1554325&view=auto ============================================================================== --- commons/proper/pool/trunk/pool-release.sh (added) +++ commons/proper/pool/trunk/pool-release.sh Mon Dec 30 21:50:30 2013 @@ -0,0 +1,62 @@ +#!/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. +# ----------------------------------------------------------------------------- +# Performs the local svn steps necessary to publish a pool release. +# +# Preconditions: +# 0) Successful release VOTE has completed, based on artifacts in rc_path +# (checkout of https://dist.apache.org/repos/dist/dev/commons/pool) +# 1) release_path points to a local checkout of +# https://dist.apache.org/repos/dist/release/commons/pool +# 2) RELEASE-NOTES.txt for the new release is in top level of rc_path +# +# NOTE: This script does not do any of the following: +# 0) Commit the local changes to actually publish the artifacts +# 1) Cleanup old versions in dist +# +# $Revision$ $Date$ +# ----------------------------------------------------------------------------- +# Set script variables +version=2.1 # version being released +last_version=2.0 # previous version, will be replaced in README.html +rc_path=~/pool-rc # checkout of https://dist.apache.org/repos/dist/dev/commons/pool +release_path=~/pool-release #https://dist.apache.org/repos/dist/release/commons/pool +# +# Move release notes +cp $rc_path/RELEASE-NOTES.txt $release_path +svn rm $rc_path/RELEASE-NOTES.txt +# +# Update README.html +sed -i "" "s/$last_version/$version/g" $release_path/README.html +# OSX ^^ required suffix +# +cp $release_path/README.html $release_path/source +cp $release_path/README.html $release_path/binaries +# ^^^^^^^^^^ Maybe we can toss these? ^^^^^^^ +# +# Move release artifacts +svn mv $rc_path/source/* $release_path/source +svn mv $rc_path/binaries/* $release_path/binaries +# +echo "Local svn changes complete." +echo "Inspect the files in $release_path and commit to publish the release." +echo "Also remember to commit $rc_path to drop RC artifacts and svn rm" +echo "obsolete artifacts from $release_path." + + + + Propchange: commons/proper/pool/trunk/pool-release.sh ------------------------------------------------------------------------------ svn:eol-style = native Propchange: commons/proper/pool/trunk/pool-release.sh ------------------------------------------------------------------------------ svn:executable = * Propchange: commons/proper/pool/trunk/pool-release.sh ------------------------------------------------------------------------------ svn:keywords = Author Date Id Revision