You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ps...@apache.org on 2014/05/16 23:42:48 UTC

svn commit: r1595360 - in /commons/proper/dbcp/trunk: dbcp-RC.sh dbcp-pre-RC.sh dbcp-release.sh

Author: psteitz
Date: Fri May 16 21:42:48 2014
New Revision: 1595360

URL: http://svn.apache.org/r1595360
Log:
Added release scripts.

Added:
    commons/proper/dbcp/trunk/dbcp-RC.sh   (with props)
    commons/proper/dbcp/trunk/dbcp-pre-RC.sh   (with props)
    commons/proper/dbcp/trunk/dbcp-release.sh   (with props)

Added: commons/proper/dbcp/trunk/dbcp-RC.sh
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/dbcp-RC.sh?rev=1595360&view=auto
==============================================================================
--- commons/proper/dbcp/trunk/dbcp-RC.sh (added)
+++ commons/proper/dbcp/trunk/dbcp-RC.sh Fri May 16 21:42:48 2014
@@ -0,0 +1,55 @@
+#!/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.
+# -----------------------------------------------------------------------------
+# Generates a pool RC and publishes (a superset of) maven artifacts to Nexus.
+# Should be run from top-level directory of a fresh checkout of the RC tag.
+#
+# Preconditions:
+# 0) dbcp-pre-RC has been run to update the download page and release notes
+#    and these have been checked in and included in the RC tag.
+# 1) Release artifacts from previous runs have been svn deleted from local
+#    svn pub/sub dev checkout.
+# 2) Nexus repo from previous RC has been dropped.
+#
+# $Revision$ $Date$
+# -----------------------------------------------------------------------------
+# Set script variables
+version=2.0.1
+repo_path=~/.m2/repository/org/apache/commons/commons-dbcp2/${version}
+release_path=~/dbcp-rc  #checkout of https://dist.apache.org/repos/dist/dev/commons/dbcp
+#
+# Delete any locally installed artifacts from previous runs
+rm -rf ${repo_path}
+echo "Cleaned maven repo."
+#
+# Generate site and release artifacts, deploy locally and upload to Nexus
+mvn clean site
+mvn deploy -Prelease
+#
+# Copy the zips/tarballs and release notes to the local svn pub path
+cp ${repo_path}/*bin.zip* ${release_path}/binaries
+cp ${repo_path}/*bin.tar.gz* ${release_path}/binaries
+cp ${repo_path}/*src.zip* ${release_path}/source
+cp ${repo_path}/*src.tar.gz* ${release_path}/source
+cp RELEASE-NOTES.txt ${release_path}
+
+echo "Release candidate complete."
+echo "svn add the generated artifacts and commit after inspection."
+echo "log in to repository.apache.org, manually (sic) drop the cruft and close the repo."
+
+
+

Propchange: commons/proper/dbcp/trunk/dbcp-RC.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/proper/dbcp/trunk/dbcp-RC.sh
------------------------------------------------------------------------------
    svn:executable = *

Propchange: commons/proper/dbcp/trunk/dbcp-RC.sh
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: commons/proper/dbcp/trunk/dbcp-pre-RC.sh
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/dbcp-pre-RC.sh?rev=1595360&view=auto
==============================================================================
--- commons/proper/dbcp/trunk/dbcp-pre-RC.sh (added)
+++ commons/proper/dbcp/trunk/dbcp-pre-RC.sh Fri May 16 21:42:48 2014
@@ -0,0 +1,30 @@
+#!/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.
+# -----------------------------------------------------------------------------
+#
+# Shell script to update download page and release notes prior
+# to preparing a commons pool release candidate.
+#
+# Note: RELEASE-NOTES.txt may need a little reformatting prior
+# to checkin.  Both RELEASE-NOTES.txt and the generated download
+# page need to be checked in after review.
+#
+# $Revision$ $Date$
+# ----------------------------------------------------------------------------
+version=2.0.1
+mvn changes:announcement-generate -Prelease-notes -Dchanges.version=${version}
+mvn commons:download-page -Dcommons.componentid=dbcp  # Override to get download_dbcp

Propchange: commons/proper/dbcp/trunk/dbcp-pre-RC.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/proper/dbcp/trunk/dbcp-pre-RC.sh
------------------------------------------------------------------------------
    svn:executable = *

Propchange: commons/proper/dbcp/trunk/dbcp-pre-RC.sh
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: commons/proper/dbcp/trunk/dbcp-release.sh
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/dbcp-release.sh?rev=1595360&view=auto
==============================================================================
--- commons/proper/dbcp/trunk/dbcp-release.sh (added)
+++ commons/proper/dbcp/trunk/dbcp-release.sh Fri May 16 21:42:48 2014
@@ -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 dbcp release.
+#
+# Preconditions:
+# 0) Successful release VOTE has completed, based on artifacts in rc_path
+#    (checkout of https://dist.apache.org/repos/dist/dev/commons/dbcp)
+# 1) release_path points to a local checkout of
+#     https://dist.apache.org/repos/dist/release/commons/dbcp
+# 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.0.1        # version being released
+last_version=2.0   # previous version, will be replaced in README.html
+rc_path=~/dbcp-rc  # checkout of https://dist.apache.org/repos/dist/dev/commons/pool
+release_path=~/dbcp-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/dbcp/trunk/dbcp-release.sh
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: commons/proper/dbcp/trunk/dbcp-release.sh
------------------------------------------------------------------------------
    svn:executable = *

Propchange: commons/proper/dbcp/trunk/dbcp-release.sh
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision