]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Generate empty ChangeLog if no .git is available.
authorVladimir Serbinenko <phcoder@gmail.com>
Sat, 24 Jan 2015 19:14:59 +0000 (20:14 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Sat, 24 Jan 2015 19:14:59 +0000 (20:14 +0100)
When making dist from a git snapshot without repo available make dist would
fail to find ChangeLog. Generate empty ChangeLog if no ChangeLog is already
present and repo is not available.

Reported by: Andrei Borzenkov <arvidjaar@gmail.com>

Makefile.am

index a232eb1e2deaac6fac4a88eb10f75c8640f3e969..f702951afbe09200239282f158c7aaa87f3e49de 100644 (file)
@@ -447,6 +447,8 @@ ChangeLog: FORCE
        if test -d $(top_srcdir)/.git; then \
                $(gitlog_to_changelog) --srcdir=$(top_srcdir) --since=$(changelog_start_date) > '$@.tmp'; \
                rm -f '$@'; mv '$@.tmp' '$@'; \
+       else \
+               touch $@; \
        fi
 
 EXTRA_DIST += ChangeLog ChangeLog-2015