diff options
author | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-07-14 08:52:28 +0000 |
---|---|---|
committer | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-07-14 08:52:28 +0000 |
commit | e057491d3ca3d25c569a1503edaab1244adc0ad4 (patch) | |
tree | 91156ee97ba2f5b1783e350b7bb0b755cfd793b2 /tools | |
parent | ff5170a979221ed5c3962c716f63a5ef3c83d9d5 (diff) | |
download | riscv-openocd-e057491d3ca3d25c569a1503edaab1244adc0ad4.zip riscv-openocd-e057491d3ca3d25c569a1503edaab1244adc0ad4.tar.gz riscv-openocd-e057491d3ca3d25c569a1503edaab1244adc0ad4.tar.bz2 |
Improve the release script before 0.2.0:
1) Only archive NEWS file on major and minor relesae, not bug-fixes.
2) Switch back to correct development branch during final release step.
3) Add do_svn_switch helper to ensure package variables are reloaded.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2516 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/release.sh | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/tools/release.sh b/tools/release.sh index 583cd20..21f9f04 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -74,6 +74,10 @@ do_svn() { do_svn_echo "$@" [ "${RELEASE_DRY_RUN}" ] || svn "$@" } +do_svn_switch() { + do_svn switch "$1" + package_info_load +} package_info_load_name() { @@ -432,11 +436,9 @@ do_release_step_branch_bump() { do_version_tag_add in-development } do_release_step_branch() { - do_svn switch "${PACKAGE_BRANCH}" - package_info_load + do_svn_switch "${PACKAGE_BRANCH}" do_version_commit "$(do_release_step_branch_bump micro)" - do_svn switch "${SVN_URL}" - package_info_load + do_svn_switch "${SVN_URL}" } do_release_step_bump() { # major and minor releases require branch version update too @@ -444,6 +446,8 @@ do_release_step_bump() { # bump the current tree version as required. do_version_commit "$(do_release_step_branch_bump "${RELEASE_TYPE}")" + [ "${RELEASE_TYPE}" = "micro" ] && return + # archive NEWS and create new one from template do_svn move "NEWS" "NEWS-${RELEASE_VERSION}" @@ -479,9 +483,10 @@ do_release_step_package() { local A=${PACKAGE_TAG} local B=${A/https/http} local PACKAGE_BUILD=${B/${USER}@/} - do_svn switch "${PACKAGE_BUILD}" + do_svn_switch "${PACKAGE_BUILD}" do_stage do_clean + do_svn_switch "${SVN_URL}" } do_release_step_1() { do_release_step_prep; } |