mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-09-13 21:21:17 +00:00
Updated changelog generation
This commit is contained in:
parent
e5ceed2402
commit
99b20ffc80
|
@ -24,9 +24,9 @@ dist-hook: generate-changelog
|
||||||
|
|
||||||
generate-changelog:
|
generate-changelog:
|
||||||
if test -d $(top_srcdir)/.git; then \
|
if test -d $(top_srcdir)/.git; then \
|
||||||
git --git-dir=$(top_srcdir)/.git log --date=short \
|
sep=`nawk 'BEGIN{$$79=OFS="-";print}'`; \
|
||||||
--stat --pretty=format:'%x01%ad %an <%ae>%n%x01%H%n%n%s%n%n%b' \
|
git --git-dir=$(top_srcdir)/.git log --date=short --stat --decorate \
|
||||||
| sed -e 's/^/\t/g' -e 's/^\t\x01//g' > $(distdir)/c-l; \
|
| sed -e "s/^\(commit [abcdef0-9]\{40\}\) (.*refs\/tags\/\(v\([0-9.]\+\)\).*)/$$sep\nVersion \3\n$$sep\n\n\1/g" -e 's/^\(commit [abcdef0-9]\{40\}\).*/\1/g' | ruby -e 'puts STDIN.read.gsub(/commit\s*(.*)\nAuthor:\s*(.*)\nDate:\s*(.*)\n/, "\\3 \\2\ncommit \\1\n")' > $(distdir)/c-l; \
|
||||||
mv $(distdir)/c-l $(distdir)/ChangeLog; \
|
mv $(distdir)/c-l $(distdir)/ChangeLog; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue