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>
# release.sh: openocd release process automation
# Copyright (C) 2009 by Zachary T Welch <zw@superlucidity.net>
# Release under the GNU GPL v2 (or later versions).
# release.sh: openocd release process automation
# Copyright (C) 2009 by Zachary T Welch <zw@superlucidity.net>
# 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=""
## set these to control the build process
#CONFIG_OPTS=""
#MAKE_OPTS=""
## The default is the current user name, as found by the 'id' command.
#RELEASE_TAG="$(id -un)"
## 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"
VERSION_SH="tools/release/version.sh"
git branch -d "${OLD_BRANCH}"
}
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}" ] || \
do_release_setup() {
echo "Starting $CMD for ${RELEASE_VERSION}..."
[ "${RELEASE_TYPE}" ] || \
do_branch() {
do_release_setup
local i=
do_branch() {
do_release_setup
local i=
+ for i in branch bump rebranch; do
"do_release_step_${i}"
done
}
"do_release_step_${i}"
done
}
do_release_setup
do_release_check
local i=
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
}
"do_release_step_${i}"
done
}
# 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).
# 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
do_version_usage() {
cat << USAGE
bump tag <label> Add or bump a versioned tag (e.g. -rcN).
bump final <label> Remove a versioned tag (e.g. -rcN).
USAGE
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.
Linking to existing account procedure
If you already have an account and want to add another login method
you
MUST first sign in with your existing account and
then change URL to read
https://review.openocd.org/login/?link
to get to this page again but this time it'll work for linking. Thank you.
SSH host keys fingerprints
1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=.. |
|+o.. . |
|*.o . . |
|+B . . . |
|Bo. = o S |
|Oo.+ + = |
|oB=.* = . o |
| =+=.+ + E |
|. .=o . o |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)