[epiphany/gnome-3-20] build: Fix misleading changelog generation code



commit 3cab5811cb9a338a84bfef1783e23b6866d8aabe
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Wed Jun 29 19:57:07 2016 -0500

    build: Fix misleading changelog generation code
    
    $(top_builddir) is defined as . and so it's always the cwd, hence the
    ChangeLog is always being generated in $(srcdir). Make it clear that's
    what's going on.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=768218

 Makefile.am |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index ad08507..d37365a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -16,9 +16,9 @@ distuninstallcheck_listfiles = find . -type f -print | grep -v 'icon-theme.cache
 # Build ChangeLog from git history
 ChangeLog:
        @if test -f $(top_srcdir)/.git/HEAD; then \
-               cd $(top_srcdir); \
-               git log --no-decorate --stat > $(top_builddir)/$@; \
-               cd $(top_builddir); \
+               pushd $(top_srcdir); \
+               git log --no-decorate --stat > $@; \
+               popd; \
        fi
 
 dist: ChangeLog


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