From 36be350d37209c535a12a317b4f7d9fce9899dbc Mon Sep 17 00:00:00 2001 From: Alexandre Dupas Date: Fri, 11 Dec 2009 15:44:01 +0100 Subject: [PATCH] Add helper script to get the list of new songs --- utils/new-songs-list.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 utils/new-songs-list.sh diff --git a/utils/new-songs-list.sh b/utils/new-songs-list.sh new file mode 100755 index 00000000..453a2108 --- /dev/null +++ b/utils/new-songs-list.sh @@ -0,0 +1,15 @@ +#!/bin/sh +# +# Helper script to get the list of new songs added since the last version +# The output is supposed to be copy/pasted into the NEWS item. + +if [ $# -eq 1 ] +then + VERSION=$1 +else + # Get current version + VERSION=`git tag | tail -n1` +fi + +# Make new songs list by authors +git shortlog $VERSION..master | egrep '^([^ ].*|.*Add song.*)' | sed 's/Add song.*://' | sed 's/\.$//' | sed 's/ (.*)//' | sed 's/\s\s\s*/ /'