[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: |
Sun, 27 Sep 2015 23:39:08 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Mathieu Lirzin <address@hidden> writes:
> * ChangeLog: Rename to ...
> * build-aux/ChangeLog.old: ... this.
> * ChangeLog: New file.
> * Makefile.am (ChangeLog_BASE): New variable.
> (gen-ChangeLog, dist-hook): New targets.
> * build-aux/gitlog-to-changelog: New file, from Gnulib.
[...]
> diff --git a/makefile.am b/makefile.am
> index 7187dd7..0e48902 100644
> --- a/makefile.am
> +++ b/makefile.am
> @@ -50,6 +50,21 @@ mcron.c : scm/mcron/main.scm scm/mcron/crontab.scm
> makefile.ed mcron.c.template
> # Full program prefix.
> fpp = $(DESTDIR)$(bindir)/@real_program_prefix@
>
> +dist-hook: gen-ChangeLog
> +
> +# Commit from which generating ChangeLog begins.
> +ChangeLog_BASE = 79b2154
^^^
This must be adapted to the “[PATCH 01/33] Augment '.gitignore'.” actual
commit hash.
> +
> +gen-ChangeLog:
> + if test -d .git; then \
> + $(top_srcdir)/build-aux/gitlog-to-changelog \
> + $(ChangeLog_BASE)..HEAD > $(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:
> @if [ "address@hidden@" != "xyes" -a "`id -u`" -eq "0" ]; then \
--
Mathieu Lirzin
- [Bug-mcron] [PATCH 00/33] Remove 'ed' hack and apply various cleanups., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 01/33] Augment '.gitignore'., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 02/33] doc: Include a copy of the GNU FDL., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 03/33] build: Add package variables., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 06/33] main: Add show-help., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 05/33] main: Add show-package-information., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 04/33] main: Add show-version., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 08/33] build: Improve maintainer-clean rule., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 07/33] Augment TODO., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 09/33] build: Generate 'ChangeLog' upon 'make dist'., Mathieu Lirzin, 2015/09/27
- Re: [Bug-mcron] [PATCH 09/33] build: Generate 'ChangeLog' upon 'make dist'.,
Mathieu Lirzin <=
- [Bug-mcron] [PATCH 10/33] build: Fix prerequisite of the man page target., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 11/33] main: Import the modules used in one time., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 12/33] main: Use 'when' and 'unless' special forms., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 14/33] main: Make 'catch-mcron-error' macro hygienic., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 16/33] main: Add cron-file-descriptors., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 27/33] main: Improve 'process-user-file' definition., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 15/33] main: Add docstrings., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 26/33] mcron: Make functions 'static'., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 29/33] environment: Redefine 'modify-environment'., Mathieu Lirzin, 2015/09/27
- [Bug-mcron] [PATCH 17/33] main: Add main., Mathieu Lirzin, 2015/09/27