summaryrefslogtreecommitdiff
path: root/tcwg-release.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tcwg-release.sh')
-rwxr-xr-xtcwg-release.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/tcwg-release.sh b/tcwg-release.sh
index 1252b2a..a1bbf78 100755
--- a/tcwg-release.sh
+++ b/tcwg-release.sh
@@ -6,6 +6,7 @@ red='\e[0;31m'
blue='\e[1;34m'
green='\e[0;32m'
bold='\e[1m'
+italic='\e[3m'
lines="$(perl -E 'say "-" x 80')"
EDITOR="${EDITOR:-vim}"
# ==============================================================================
@@ -386,6 +387,29 @@ tag() {
fi
}
+hint() {
+ url=$(git config --get remote.${REMOTE}.url)
+ if [ x"${url}" = x ]; then
+ print_info "Couldn't determine viable url from remote \"${REMOTE}\""
+ fi
+
+ print_info "${bold}Push local tag ${red}${release_tag}${NC}${bold} to remote \"${REMOTE}\" with:"
+ print_info " git push ${url/https:\/\//ssh://git@} ${release_tag}"
+ print_info "${bold}local branch ${red}${local_branch}${NC}${bold} to remote \"${REMOTE}\" with:"
+ print_info " git push ${url/https:\/\//ssh://git@} ${local_branch}:${remote_branch/remotes\/${REMOTE}/refs/heads}"
+
+ if [ "${SNAPSHOT:+set}" = "set" ]; then
+ print_info "${bold}local integration branch ${red}${local_int_branch}${NC}${bold} to remote \"${REMOTE}\" with:"
+ print_info " git push ${url/https:\/\//ssh://git@} ${local_int_branch}:${remote_int_branch/remotes\/${REMOTE}/refs/heads}"
+ print_info ""
+ print_info "${italic}${bold}Note: ${NC}${italic}Someone with FSF write permission will need to cherry-pick the remote_int_branch changes into"
+ print_info " refs/heads/fsf/linaro/gcc-${vstring%.*}-branch."
+ fi
+ print_info ""
+ print_info "${bold}The ${SNAPSHOT:+snapshot}${RELEASE:+release}${CANDIDATE:+release candidate} tarball is in:"
+ print_info " ${REL_DIR}/gcc-linaro-${rname}.tar.xz"
+}
+
# ==============================================================================
# Settings
# ==============================================================================
@@ -710,3 +734,5 @@ popd 1>/dev/null
if [ "${SNAPSHOT:+set}" = "set" ]; then
bump_and_dev "${bump_snapshot_to}"
fi
+
+hint