[gparted] Enhance Makefile generated ChangeLog entries



commit 0a61e5cf70767b104be4e29b667d8a7fe8fb8743
Author: Curtis Gedak <gedakc gmail com>
Date:   Thu Mar 25 10:54:00 2010 -0600

    Enhance Makefile generated ChangeLog entries
    
    Convert git log entries, which are prepended to the ChangeLog, to
    look more like traditional ChangeLog entries.

 Makefile.am |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index ee87337..610f174 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -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 \



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]