[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-mcron] [PATCH 09/33] build: Generate 'ChangeLog' upon 'make dis
From: |
Mathieu Lirzin |
Subject: |
Re: [Bug-mcron] [PATCH 09/33] build: Generate 'ChangeLog' upon 'make dist'. |
Date: |
Tue, 13 Oct 2015 02:41:40 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Another (minor) change.
Mathieu Lirzin <address@hidden> writes:
> diff --git a/makefile.am b/makefile.am
> index 7187dd7..85d30b6 100644
> --- a/makefile.am
> +++ b/makefile.am
> @@ -50,6 +50,20 @@ mcron.c : scm/mcron/main.scm scm/mcron/crontab.scm
> makefile.ed mcron.c.template
> # Full program prefix.
> fpp = $(DESTDIR)$(bindir)/@real_program_prefix@
^^^
This variable is used ....
>
> +dist-hook: gen-ChangeLog
> +
> +gen_start_date = 2015-07-07
> +.PHONY: gen-ChangeLog
> +gen-ChangeLog:
> + if test -d .git; then \
> + $(top_srcdir)/build-aux/gitlog-to-changelog \
> + --since=$(gen_start_date) > $(distdir)/cl-t; \
> + echo >> $(distdir)/cl-t; \
> + cat $(top_srcdir)/build-aux/ChangeLog.old \
> + >> $(distdir)/cl-t; \
> + rm -f $(distdir)/ChangeLog; \
> + mv $(distdir)/cl-t $(distdir)/ChangeLog; \
> + fi
>
> install-exec-hook:
^^^
... in this target so it's better to put the variable close to it.
Here is the updated patch which generates a conflict in patch 18, I will
send the merge as an answer to this patch.
0001-build-Generate-ChangeLog-upon-make-dist.patch
Description: Text Data
--
Mathieu Lirzin