bug-mcron
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]