From: David B. <dbr...@us...> - 2009-11-05 00:25:35
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via 333601da4bbe2bf39ccc21ddc5160344ca953678 (commit) from b8e7408b92dd8c1bd33b810ea3d6268fb8437c97 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 333601da4bbe2bf39ccc21ddc5160344ca953678 Author: David Brownell <dbr...@us...> Date: Wed Nov 4 15:20:18 2009 -0800 Release scripts: comments, run on Ubuntu The "source" command isn't accepted by ASH; easy to fix. Failures with "-e" are harder to fix. Remove the "-e" (for now) and force bash, for safety. Un-obfuscate the release steps, by using names instead of numbers. Comment the version-number manipulation. Signed-off-by: David Brownell <dbr...@us...> diff --git a/tools/release.sh b/tools/release.sh index 26be151..e7fbc6c 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -1,8 +1,10 @@ -#!/bin/sh -e +#!/bin/bash # release.sh: openocd release process automation # Copyright (C) 2009 by Zachary T Welch <zw...@su...> # Release under the GNU GPL v2 (or later versions). +# FIXME Remove more bash-isms. Fix errors making "ash -e" lose. + ## set these to control the build process #CONFIG_OPTS="" #MAKE_OPTS="" @@ -13,7 +15,7 @@ ## The default is the current user name, as found by the 'id' command. #RELEASE_TAG="$(id -un)" -source "tools/release/helpers.sh" +. "tools/release/helpers.sh" VERSION_SH="tools/release/version.sh" @@ -238,13 +240,6 @@ do_release_step_rebranch() { git branch -d "${OLD_BRANCH}" } -do_release_step_0() { do_release_step_branch; } -do_release_step_1() { do_release_step_tag; } -do_release_step_2() { do_release_step_bump; } -do_release_step_3() { do_release_step_news; } -do_release_step_4() { do_release_step_package; } -do_release_step_5() { do_release_step_rebranch; } - do_release_setup() { echo "Starting $CMD for ${RELEASE_VERSION}..." [ "${RELEASE_TYPE}" ] || \ @@ -274,7 +269,7 @@ do_countdown() { do_branch() { do_release_setup local i= - for i in 0 2 5; do + for i in branch bump rebranch; do "do_release_step_${i}" done } @@ -284,7 +279,7 @@ do_release() { do_release_setup do_release_check local i= - for i in $(seq 0 5); do + for i in branch tag bump news package rebranch; do "do_release_step_${i}" done } diff --git a/tools/release/version.sh b/tools/release/version.sh index bef79d0..8c6da27 100755 --- a/tools/release/version.sh +++ b/tools/release/version.sh @@ -1,9 +1,20 @@ -#!/bin/sh -e +#!/bin/bash # version.sh: openocd version process automation # Copyright (C) 2009 by Zachary T Welch <zw...@su...> # Release under the GNU GPL v2 (or later versions). -source "tools/release/helpers.sh" +# FIXME Remove more bash-isms. Fix errors making "ash -e" lose. + +# NOTE Use with care! "RC" should only follow x.x.x, with +# vendor tags after that. Be traditional; avoid "rc0". + +# NOTE: This *ONLY* updates the "configure.in" version tag. +# It does not affect GIT tags. Use this script immediately +# before making a release, to remove the "-dev" tag and to +# update the version label. Then commit the change and tag +# that commit to match the version label. + +. "tools/release/helpers.sh" do_version_usage() { cat << USAGE @@ -15,6 +26,7 @@ Version Commands: bump tag <label> Add or bump a versioned tag (e.g. -rcN). bump final <label> Remove a versioned tag (e.g. -rcN). USAGE +# REVISIT ... "commit" not listed. } do_version_sed() { ----------------------------------------------------------------------- Summary of changes: tools/release.sh | 17 ++++++----------- tools/release/version.sh | 16 ++++++++++++++-- 2 files changed, 20 insertions(+), 13 deletions(-) hooks/post-receive -- Main OpenOCD repository |