diff options
author | P. J. McDermott <pj@pehjota.net> | 2014-09-02 11:00:24 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2014-09-02 11:03:06 (EDT) |
commit | 8ad87f8771da116ce802b252bdb64770aed1bff8 (patch) | |
tree | d7ef81f0e76396aabb7a1fbffd7b82bf48a57c93 | |
parent | 90dddf47b0fd22e2793df6711e7eefac4252ba08 (diff) |
scripts/announce-release.sh: Shortlog and diffstat
-rwxr-xr-x | scripts/announce-release.sh | 17 |
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/ |