diff --git a/Makefile.am b/Makefile.am index f310f4d55..8147eeffd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -47,7 +47,7 @@ AUTHORS: )>$@ ; \ else touch $@ ; fi -NEWS: +NEWS: gennews.sh $(AM_V_GEN)if test -x "`which git 2>/dev/null`" -a -d "$(srcdir)/.git" ; then \ ( cd $(srcdir) ; \ echo "$(PACKAGE) -- history of user-visible changes. $(DATE)" ; \ diff --git a/gennews.sh b/gennews.sh index 3d42d65ab..06947d811 100755 --- a/gennews.sh +++ b/gennews.sh @@ -9,7 +9,8 @@ fi t= i=0 -for o in $(git tag --sort=-creatordate) ""; do +# consider only tags starting with a number, i.e. skip local junk tags +for o in $(git tag --sort=-creatordate | grep ^3) ""; do if [ $i -ge 8 ]; then break; fi i=$((i+1)) if [ -z "$t" ] ; then @@ -43,7 +44,7 @@ for o in $(git tag --sort=-creatordate) ""; do /usr/bin/echo -e "$cmd\n\n$notes\n" fi fi - cmd="git shortlog -e -n -w80,6,8 ${o}${o:+...}${t}" + cmd="git shortlog --no-merges -e -n -w80,6,8 ${o}${o:+...}${t}" /usr/bin/echo -e "$cmd\n\n$(eval $cmd)\n" t="$o" done|sed -r 's,[[:space:]][[:space:]]*$,,'