summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/announce-release.sh5
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