diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-03-18 18:49:16 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-03-18 20:11:29 (EDT) |
commit | c5457f96a6ce04b8083aea2e5da5fdcc0e482838 (patch) | |
tree | bea406f7d208474ec198fca2b1390ffb4d15388b | |
parent | d52c2008b5372cbf992806531ec4ce5fe9f156d3 (diff) |
scripts/announce-release.sh: Drop tag format assumption
-rwxr-xr-x | scripts/announce-release.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/announce-release.sh b/scripts/announce-release.sh index d5ee9f3..e78a382 100755 --- a/scripts/announce-release.sh +++ b/scripts/announce-release.sh @@ -26,6 +26,7 @@ news="$(sed -n ' ' "${srcdir}/NEWS")" old_version="$(sed -n "/^${package_name} version /p;" "${srcdir}/NEWS" | \ sed -n "2{ s/^${package_name} version //p; };")" +old_tag="$(git tag | tail -n 1)" export GIT_DIR="${srcdir}/.git" @@ -74,7 +75,7 @@ export GIT_DIR="${srcdir}/.git" ==================================$(printf '%s\n' "${old_version}" | \ sed 's/./=/g') - $(git shortlog "${package}/${old_version}..HEAD" | \ + $(git shortlog "${old_tag}..HEAD" | \ sed '/^..*$/s/^/ /') Diffstat of Changes Since Version ${old_version} @@ -82,7 +83,7 @@ export GIT_DIR="${srcdir}/.git" sed 's/./=/g') $(git diff --stat=69 --color=never --find-renames=50% \ - "${package}/${old_version}..HEAD" | sed 's/^/ /') + "${old_tag}..HEAD" | sed 's/^/ /') -- $(: Just something to follow the trailing space) Patrick McDermott, CEO |