Enhance Makefile generated ChangeLog entries

Convert git log entries, which are prepended to the ChangeLog, to
look more like traditional ChangeLog entries.
This commit is contained in:
Curtis Gedak 2010-03-25 10:54:00 -06:00
parent 1a498b62bf
commit 0a61e5cf70

View file

@ -33,7 +33,14 @@ dist-hook:
echo Creating ChangeLog && \
( cd "$(top_srcdir)" && \
echo '# Generated by Makefile. Do not edit.'; echo; \
$(top_srcdir)/missing --run git log --stat GPARTED_0_4_4.. \
$(top_srcdir)/missing --run \
git log GPARTED_0_4_4.. --date-order --date=short | \
sed -e '/^commit.*$$/d' | \
awk '/^Author/ {sub(/\\$$/,""); getline t; print $$0 t; next}; 1' | \
sed -e 's/^Author: //g' | \
sed -e 's/>Date: \([0-9]*-[0-9]*-[0-9]*\)/>\t\1/g' | \
sed -e 's/^\([^\t<]*[<][^\t>]*>\)\t\([^\t]*\)/\2 \1/g'; \
echo; \
) > ChangeLog.tmp \
&& cat $(top_srcdir)/ChangeLog >> ChangeLog.tmp \
&& mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \