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