From 53c7dbf6ba0682bb97b311ea3314c52b8130c42c Mon Sep 17 00:00:00 2001 From: Wim Hueskes Date: Sun, 17 Apr 2016 16:39:30 +0200 Subject: [PATCH 2/6] Generate Changelog from git log same way as Thunar does --- .gitignore | 1 + ChangeLog | 12 ------------ Makefile.am | 9 +++++++++ 3 files changed, 10 insertions(+), 12 deletions(-) delete mode 100644 ChangeLog diff --git a/.gitignore b/.gitignore index 6a64a5c..3fb3a10 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *.o +ChangeLog INSTALL Makefile Makefile.in diff --git a/ChangeLog b/ChangeLog deleted file mode 100644 index 29d6c96..0000000 --- a/ChangeLog +++ /dev/null @@ -1,12 +0,0 @@ -2015-08-05: Roland Kuebert - - * configure.in.in: Bumped micro version. - -2010-03-17: Erik Edelmann - - * panel-plugin/calculator.c (calc_construct): Set LC_NUMERIC locale - to "C". - -2010-03-17: Erik Edelmann - - * TODO: Updated TODO list. diff --git a/Makefile.am b/Makefile.am index 16e295d..7a244fb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -8,6 +8,15 @@ SUBDIRS = \ distclean-local: rm -rf *.cache *~ +.PHONY: ChangeLog + +ChangeLog: Makefile + (GIT_DIR=$(top_srcdir)/.git git log > .changelog.tmp \ + && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) \ + || (touch ChangeLog; echo 'Git directory not found: installing possibly empty changelog.' >&2) + +dist-hook: ChangeLog + rpm: dist rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz @rm -f $(PACKAGE)-$(VERSION).tar.gz -- 2.1.4