summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYvan Roux <yvan.roux@linaro.org>2015-09-16 16:56:09 +0200
committerYvan Roux <yvan.roux@linaro.org>2015-09-16 16:56:09 +0200
commit5b8b0a25395f6ec9b8ba7c601156dea60a88abc2 (patch)
tree208f004d28bcc504491e0a7a8cf1bbef55373dd4
parented40af187896a683bb612c7766ca44a490d2959f (diff)
Fix local integration branch version string.
The branch should be made fom the local_branch to include the snapshot commit and thus made at the end of the process. Change-Id: I91f0309bf4202661c7f8c5f0ae558dbd99be43be
-rwxr-xr-xtcwg-release.sh26
1 files changed, 13 insertions, 13 deletions
diff --git a/tcwg-release.sh b/tcwg-release.sh
index 05218e2..48c8699 100755
--- a/tcwg-release.sh
+++ b/tcwg-release.sh
@@ -791,19 +791,6 @@ pushd $REL_DIR/git 1>/dev/null
git checkout -B ${local_branch} ${track} 2>/dev/null
popd 1>/dev/null
-if [ "${SNAPSHOT:+set}" = "set" ]; then
- print_info "${bold}Checking out branch \"${local_int_branch}\"..."
- pushd $REL_DIR/git 1>/dev/null
- git checkout -B ${local_int_branch} --track ${remote_int_branch} 1>/dev/null
-
- # Bump the integration branch gcc/LINARO-VERSION
- bump_and_dev "${bump_int_to}"
-
- print_info "${bold}Returning to git branch \"${save_branch}\"..."
- git checkout ${save_branch} 1>/dev/null
- popd 1>/dev/null
-fi
-
print_info "${bold}Creating ${SNAPSHOT:+snapshot}${RELEASE:+release}${CANDIDATE:+release candidate} ChangeLog entries..."
changelog
@@ -856,6 +843,19 @@ tar cfJ gcc-linaro-${rname}.tar.xz gcc-linaro-${rname}
md5sum gcc-linaro-${rname}.tar.xz > gcc-linaro-${rname}.tar.xz.asc
popd 1>/dev/null
+if [ "${SNAPSHOT:+set}" = "set" ]; then
+ print_info "${bold}Checking out branch \"${local_int_branch}\"..."
+ pushd $REL_DIR/git 1>/dev/null
+ git checkout -B ${local_int_branch} ${local_branch} 1>/dev/null
+
+ # Bump the integration branch gcc/LINARO-VERSION
+ bump_and_dev "${bump_int_to}"
+
+ print_info "${bold}Returning to git branch \"${save_branch}\"..."
+ git checkout ${save_branch} 1>/dev/null
+ popd 1>/dev/null
+fi
+
bump_and_dev "${bump_mode_to}"
# Output the info a second time so it's all at the end of any captured logs.