bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gen-ChangeLog rule


From: Werner Koch
Subject: gen-ChangeLog rule
Date: Thu, 01 Dec 2011 11:32:58 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Hi!

coreutils does not allow to use a VPATH with "make dist"; I now use this
gen-ChangeLog rule in GnuPG to allow VPATH builds:

gen_start_date = 2011-12-01T06:00:00
.PHONY: gen-ChangeLog
gen-ChangeLog:
        if test -d $(top_srcdir)/.git; then                             \
          (cd $(top_srcdir) &&                                          \
            ./scripts/gitlog-to-changelog                               \
            --amend=scripts/git-log-fix                                 \
            --since=$(gen_start_date) ) > $(distdir)/cl-t;              \
          cat $(top_srcdir)/scripts/git-log-footer >> $(distdir)/cl-t;  \
          rm -f $(distdir)/ChangeLog;                                   \
          mv $(distdir)/cl-t $(distdir)/ChangeLog;                      \
        fi

You may want to s/scripts/build-aux/.

The strange gen_start_date is needed because git seems to default to
noon; there was also a last ChangeLog entry in the night.  I added a
footer to add a copyright notice to the ChangeLog.


Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.




reply via email to

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