diff options
author | Yann E. MORIN" <yann.morin.1998@free.fr> | 2012-05-08 22:30:05 +0200 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@free.fr> | 2012-05-08 22:30:05 +0200 |
commit | 0a338705788ff4f767f0bffb170cc7f48641236d (patch) | |
tree | 562c46ef8df457fa1b4f59f1d32ec7abe69749f6 | |
parent | 4f5fca19476cd1dee8a573996450616d24b371a9 (diff) | |
download | crosstool-ng-0a338705788ff4f767f0bffb170cc7f48641236d.tar.gz crosstool-ng-0a338705788ff4f767f0bffb170cc7f48641236d.tar.bz2 crosstool-ng-0a338705788ff4f767f0bffb170cc7f48641236d.zip |
scripts: fix mk-release
mk-release was not adding the SoB lines in the commit messages.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
-rwxr-xr-x | scripts/mk-release.sh | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/scripts/mk-release.sh b/scripts/mk-release.sh index 424cb787..16a66c02 100755 --- a/scripts/mk-release.sh +++ b/scripts/mk-release.sh @@ -243,6 +243,7 @@ ver_M="$( printf "${version}" |cut -d . -f 1 )" ver_m="$( printf "${version}" |cut -d . -f 2 )" ver_p="$( printf "${version}" |cut -d . -f 3 )" +sob_line="$( printf "Signed-off-by: "; _hg debugconfig ui.username )" prefix="$(pwd)/crosstool-ng-${version}" pushd "${repos}" >/dev/null 2>&1 @@ -279,19 +280,29 @@ if [ ${ver_p} -eq 0 ]; then printf " update version" _hg branch "${ver_M}.${ver_m}" >/dev/null echo "${version}" >".version" - _hg ci -m "${ver_M}.${ver_m}: create maintenance branch, update version to ${version}" + _msg="$( printf "%s.%s: create maintenance branch, update version to %s\n\n%s" \ + "${ver_M}" "${ver_m}" "${version}" "${sob_line}" + )" + _hg ci -m "${_msg}" else printf " update version" echo "${version}" >".version" - _hg ci -m "${ver_M}.${ver_m}: update version to ${version}" + _msg="$( printf "%s.%s: update version to %s\n\n%s" \ + "${ver_M}" "${ver_m}" "${version}" "${sob_line}" + )" + _hg ci -m "${_msg}" fi printf ", tag" -_hg tag -m "Tagging release ${version}" crosstool-ng-${version} +_msg="$( printf "Tagging release %s\n\n%s" "${version}" "${sob_line}" )" +_hg tag -m "${_msg}" crosstool-ng-${version} printf ", update version" echo "${version}+hg" >".version" -_hg ci -m "${ver_M}.${ver_m}: update version to ${version}+hg" +_msg="$( printf "%s.%s: update version to %s+hg\n\n%s" \ + "${ver_M}" "${ver_m}" "${version}" "${sob_line}" + )" +_hg ci -m "${_msg}" printf ", date" date="$( _hg log -r crosstool-ng-${version} --template '{date|isodate}\n' \ |