Engine for LaTeX songbooks http://www.patacrep.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

20 lines
520 B

#!/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.
GREP="$GREP_OPTIONS"
export GREP_OPTIONS=""
if [ $# -eq 1 ]
then
VERSION=$1
else
# Get current version
VERSION=`git tag | grep patacrep | 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*/ /'
export GREP_OPTIONS="$GREP"