Skip to content

Commit

Permalink
Build dependency on gennews.sh for NEWS creation
Browse files Browse the repository at this point in the history
Also consider only 3.x tags for news creation, and no merge commits.
  • Loading branch information
Code7R committed Oct 6, 2024
1 parent cc3223e commit 4087020
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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)" ; \
Expand Down
5 changes: 3 additions & 2 deletions gennews.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:]]*$,,'
Expand Down

0 comments on commit 4087020

Please sign in to comment.