summaryrefslogtreecommitdiff
path: root/tools/release
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2009-11-04 15:20:18 -0800
committerDavid Brownell <dbrownell@users.sourceforge.net>2009-11-04 15:20:18 -0800
commit333601da4bbe2bf39ccc21ddc5160344ca953678 (patch)
tree2f7ecc7ff8d9a402b6428bc0efc14dcb10a60935 /tools/release
parentb8e7408b92dd8c1bd33b810ea3d6268fb8437c97 (diff)
downloadopenocd_libswd-333601da4bbe2bf39ccc21ddc5160344ca953678.tar.gz
openocd_libswd-333601da4bbe2bf39ccc21ddc5160344ca953678.tar.bz2
openocd_libswd-333601da4bbe2bf39ccc21ddc5160344ca953678.tar.xz
openocd_libswd-333601da4bbe2bf39ccc21ddc5160344ca953678.zip
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 <dbrownell@users.sourceforge.net>
Diffstat (limited to 'tools/release')
-rwxr-xr-xtools/release/version.sh16
1 files changed, 14 insertions, 2 deletions
diff --git a/tools/release/version.sh b/tools/release/version.sh
index bef79d0e..8c6da273 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@superlucidity.net>
# 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() {