From: Artem Bityutskiy Date: Mon, 23 Sep 2013 07:00:04 +0000 (+0300) Subject: make_a_release.sh: misc little changes X-Git-Tag: v3.0~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=79bd01ed8945c1e6fcf2c71d1c5c9c5bd4e90dcf;p=tools%2Fbmap-tools.git make_a_release.sh: misc little changes Require that the release is made in the devel branch. Amend the instructions that we print. Remove trailing white-spaces from the changelog. Change-Id: Ic955edafcd78b5e54d82d39f29fa00aad2c6aac6 Signed-off-by: Artem Bityutskiy --- diff --git a/make_a_release.sh b/make_a_release.sh index d4f9a0d..bb070ee 100755 --- a/make_a_release.sh +++ b/make_a_release.sh @@ -69,7 +69,8 @@ format_changelog() { while IFS= read -r line; do printf "%s\n" "$line" | fold -c -s -w "$width" | \ - sed -e "1 s/^/$pfx1/" | sed -e "1! s/^/$pfx2/" + sed -e "1 s/^/$pfx1/" | sed -e "1! s/^/$pfx2/" | \ + sed -e "s/[\t ]\+$//" done < "$logfile" } @@ -82,13 +83,10 @@ new_ver="$1"; shift printf "%s" "$new_ver" | egrep -q -x '[[:digit:]]+\.[[:digit:]]+' || fatal "please, provide new version in X.Y format" -# Get the name of the release branch corresponding to this version -release_branch="release-$(printf "%s" "$new_ver" | sed -e 's/\(.*\)\..*/\1.0/')" - -# Make sure that a release branch branch is currently checked out +# Make sure that the current branch is 'devel' current_branch="$(git branch | sed -n -e '/^*/ s/^* //p')" -if [ "$current_branch" != "$release_branch" ]; then - fatal "current branch is '$current_branch' but must be '$release_branch'" +if [ "$current_branch" != "devel" ]; then + fatal "current branch is '$current_branch' but must be 'devel'" fi # Remind the maintainer about various important things @@ -161,30 +159,32 @@ gpg -o "$outdir/$release_name.tgz.asc" --detach-sign -a "$outdir/$release_name.t release_branch="release-$(printf "%s" "$new_ver" | sed -e 's/\(.*\)\..*/\1.0/')" cat <" --to bmap-tools@lists.infradead.org /proc/self/fd/0 <