Browse Source

integrate new-songs-list within release process

switch on patacrep_<version> tags to obtain the list of new songs
remotes/origin/cmake
Romain Goffe 13 years ago
parent
commit
2b6fba6e20
  1. 7
      utils/new-songs-list.sh
  2. 4
      utils/release.sh

7
utils/new-songs-list.sh

@ -3,13 +3,18 @@
# Helper script to get the list of new songs added since the last version # 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. # The output is supposed to be copy/pasted into the NEWS item.
GREP="$GREP_OPTIONS"
export GREP_OPTIONS=""
if [ $# -eq 1 ] if [ $# -eq 1 ]
then then
VERSION=$1 VERSION=$1
else else
# Get current version # Get current version
VERSION=`git tag | tail -n1` VERSION=`git tag | grep patacrep | tail -n1`
fi fi
# Make new songs list by authors # 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*/ /' git shortlog $VERSION..master | egrep '^([^ ].*|.*Add song.*)' | sed 's/Add song.*://' | sed 's/\.$//' | sed 's/ (.*)//' | sed 's/\s\s\s*/ /'
export GREP_OPTIONS="$GREP"

4
utils/release.sh

@ -72,7 +72,9 @@ git status
if [ $# -eq 1 ]; if [ $# -eq 1 ];
then then
git add templates/patacrep-en.tmpl templates/patacrep.tmpl echo -e "\nversion $MAIN.$MAJOR.$MINOR\n" | cat - NEWS > /tmp/out && mv /tmp/out NEWS
./utils/new-songs-list.sh | cat - NEWS > /tmp/out && mv /tmp/out NEWS
git add templates/patacrep-en.tmpl templates/patacrep.tmpl NEWS
git commit -a -m "patacrep release version $MAIN.$MAJOR.$MINOR" git commit -a -m "patacrep release version $MAIN.$MAJOR.$MINOR"
git tag "patacrep_$MAIN.$MAJOR.$MINOR" git tag "patacrep_$MAIN.$MAJOR.$MINOR"
fi fi

Loading…
Cancel
Save