Populate ChangeLog when distribute

Generates ChangeLog from git history for a
distributed package.

Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@cloudwatt.com>
This commit is contained in:
Sahid Orentino Ferdjaoui 2014-06-05 17:32:10 +02:00
parent b22cc850a8
commit 5bb078f991

View File

@ -66,3 +66,8 @@ dist-hook:
cd $(srcdir); \
git log --format='%aN <%aE>' | sort -u >$(distdir)/AUTHORS; \
fi
# Generates ChangeLog from git
if test -d $(srcdir)/.git; then \
cd $(srcdir); \
git log --oneline --decorate --no-merges > $(distdir)/ChangeLog; \
fi