diff options
| author | Pavel Raiskup <praiskup@redhat.com> | 2014-09-18 11:32:12 +0200 |
|---|---|---|
| committer | Pavel Raiskup <praiskup@redhat.com> | 2014-09-18 11:39:14 +0200 |
| commit | f6ce954de17d1d7ea312e610231e0196cf9c0ffb (patch) | |
| tree | f239f5498a2df9e751bc427bc7bad18e904e7572 /Makefile.am | |
| parent | cbb845482abafc917241240e88f3c0271093b98c (diff) | |
| download | postgresql-setup-f6ce954de17d1d7ea312e610231e0196cf9c0ffb.tar.gz postgresql-setup-f6ce954de17d1d7ea312e610231e0196cf9c0ffb.tar.xz postgresql-setup-f6ce954de17d1d7ea312e610231e0196cf9c0ffb.zip | |
configury: generated ChangeLog by make dist
Use the gitlog-to-changelog binary, if exists on the system.
* Makefile.am (dist-hook): Add rules for ChangeLog.
* ChangeLog: Remove file.
* .gitignore: Ignore .gitignore.
Diffstat (limited to 'Makefile.am')
| -rw-r--r-- | Makefile.am | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 1f165a7..a8bdb6a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -60,3 +60,22 @@ $(TEST_GEN_FILES_LIST): $(GENERATED_FILES) install-data-hook: test `id -u` -eq 0 && systemctl daemon-reload + +GL_GEN_BIN = gitlog-to-changelog +GL_GEN = $(SHELL) $(top_srcdir)/$(config_aux_dir)/missing --run \ + $(GL_GEN_BIN) --format='%s%n%n%b%n' --since 2013-01-01 > ChangeLog ; \ + rc=$$? ; \ + if test $$rc -eq 127; then \ + if test x"$$IGNORE_CHANGELOG" != xyes; then \ + echo >&2 "ERROR: Get the $(GL_GEN_BIN) or ignore ChangeLog by IGNORE_CHANGELOG=yes" ; \ + exit 1 ; \ + fi ; \ + else \ + test $$rc -eq 0 ; \ + fi + +.PHONY: ChangeLog +ChangeLog: + $(AM_V_GEN)$(GL_GEN) + +dist-hook: ChangeLog |
