Permalink
Browse files

chore: improve ./release_notes.sh so it does not require parameters

./release_notes.sh would pick up the latest release tag and print the changes
  • Loading branch information...
vlsi committed Sep 6, 2016
1 parent b5c3f59 commit d8736b47bbf8d17de286aae618f3f6219388a03d
Showing with 16 additions and 1 deletion.
  1. +13 −1 release_notes.sh
  2. +3 −0 release_notes_filter.pl
@@ -1,3 +1,15 @@
#!/bin/sh
git shortlog --format="%s@@@%H@@@%h@@@" --no-merges $1 | perl release_notes_filter.pl
CURRENT_VERSION=`mvn -B -N org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version | grep -v '\['`
VERS=${CURRENT_VERSION/-SNAPSHOT}
PREV_VERSION=`git describe --match 'REL*' --abbrev=0`
echo "<a name=\"version_${VERS}\"></a>"
echo "## Version ${VERS} (2016-16-16)"
echo
echo Notable changes:
echo
git shortlog --format="%s@@@%H@@@%h@@@" --grep="maven-release-plugin|update versions in readme.md" --extended-regexp --invert-grep --no-merges $PREV_VERSION..HEAD | perl release_notes_filter.pl
@@ -4,6 +4,9 @@
while(<>) {
if ($_ !~ /@@@/) {
print $_;
if ($_ =~ /:/) {
print "\n";
}
next;
}
my @c = split('@@@', $_);

0 comments on commit d8736b4

Please sign in to comment.