From ebe371dd93ad9b64804eb6dbebc0bbbb5fe50294 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Wed, 13 Sep 2017 18:45:48 +0200 Subject: build: generate ChangeLog from git during dist --- Makefile.am | 13 +++++++++++++ autogen.sh | 1 - 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 4d2ce1a..bde0a2a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -9,6 +9,19 @@ DISTCHECK_CONFIGURE_FLAGS = \ --enable-mbim-qmux \ $(NULL) +ChangeLog: + $(AM_V_GEN) if test -d "$(srcdir)/.git"; then \ + (GIT_DIR=$(top_srcdir)/.git $(top_srcdir)/missing --run git log --stat) | fmt --split-only > $@.tmp \ + && mv -f $@.tmp $@ \ + || ($(RM) $@.tmp; \ + echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \ + (test -f $@ || echo git-log is required to generate this file >> $@)); \ + else \ + test -f $@ || \ + (echo A git checkout and git-log is required to generate ChangeLog >&2 && \ + echo A git checkout and git-log is required to generate this file >> $@); \ + fi + EXTRA_DIST = \ gtester.make \ COPYING.LIB diff --git a/autogen.sh b/autogen.sh index f202e3b..7a44906 100755 --- a/autogen.sh +++ b/autogen.sh @@ -14,7 +14,6 @@ PKG_NAME=libqmi } (cd $srcdir; - touch ChangeLog autoreconf --force --install --verbose ) -- cgit v1.2.3