diff options
author | Yvan Roux <yvan.roux@linaro.org> | 2015-07-21 08:32:27 +0000 |
---|---|---|
committer | Linaro Code Review <review@review.linaro.org> | 2015-07-21 08:32:27 +0000 |
commit | 686066f3f8e57e0c801690ab322bcb7032c4da45 (patch) | |
tree | f8f101ebbb6ccdb3b20ce251a5a74c965472ff2d /tcwg-release.sh | |
parent | 1c938f0d604e8b4461be31fa759fd059571a5e0e (diff) | |
parent | 879f61d379775810d4887f2458e4bbda101d7ab2 (diff) |
Merge "Add hint() to output information on what should be pushed to the remotes"
Diffstat (limited to 'tcwg-release.sh')
-rwxr-xr-x | tcwg-release.sh | 26 |
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 |