summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/announce-release.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/announce-release.sh b/scripts/announce-release.sh
index a718cc6..dcf84bb 100755
--- a/scripts/announce-release.sh
+++ b/scripts/announce-release.sh
@@ -23,6 +23,10 @@ news="$(sed -n '
p;
};
' "${srcdir}/NEWS")"
+old_version="$(sed -n "/^${package_name} version /p;" "${srcdir}/NEWS" | \
+ sed -n "2{ s/^${package_name} version //p; };")"
+
+export GIT_DIR="${srcdir}/.git"
/usr/sbin/sendmail \
-f pj+proteanos-ml@pehjota.net proteanos-dev@lists.proteanos.com <<-EOF
@@ -64,6 +68,19 @@ news="$(sed -n '
${news}
+ Shortlog of Changes Since Version ${old_version}
+ ==================================$(printf '%s\n' "${old_version}" | \
+ sed 's/./=/g')
+
+ $(git shortlog "${package}/${old_version}..HEAD" | sed '/^..*$/s/^/ /')
+
+ Diffstat of Changes Since Version ${old_version}
+ ==================================$(printf '%s\n' "${old_version}" | \
+ sed 's/./=/g')
+
+ $(git diff --stat=69 --color=never "${package}/${old_version}..HEAD" | \
+ sed 's/^/ /')
+
-- $(: Just something to follow the trailing space)
Patrick "P. J." McDermott
http://www.pehjota.net/