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:
parent
1a498b62bf
commit
0a61e5cf70
|
@ -33,7 +33,14 @@ dist-hook:
|
||||||
echo Creating ChangeLog && \
|
echo Creating ChangeLog && \
|
||||||
( cd "$(top_srcdir)" && \
|
( cd "$(top_srcdir)" && \
|
||||||
echo '# Generated by Makefile. Do not edit.'; echo; \
|
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 \
|
) > ChangeLog.tmp \
|
||||||
&& cat $(top_srcdir)/ChangeLog >> ChangeLog.tmp \
|
&& cat $(top_srcdir)/ChangeLog >> ChangeLog.tmp \
|
||||||
&& mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
|
&& mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
|
||||||
|
|
Loading…
Reference in New Issue