]> www.fi.muni.cz Git - evince.git/commitdiff
[build] ChangeLog is autogenerated now EVINCE_2_26_2
authorNickolay V. Shmyrev <nshmyrev@yandex.ru>
Mon, 18 May 2009 20:37:57 +0000 (00:37 +0400)
committerNickolay V. Shmyrev <nshmyrev@yandex.ru>
Mon, 18 May 2009 20:37:57 +0000 (00:37 +0400)
ChangeLog.pre-git [moved from ChangeLog with 100% similarity]
Makefile.am

similarity index 100%
rename from ChangeLog
rename to ChangeLog.pre-git
index ff5bd824106a5de02c1c720c210270354f472d0b..4f233e4ee3af47c51d1b99b45fdba283312ad3d4 100644 (file)
@@ -49,3 +49,18 @@ DISTCHECK_CONFIGURE_FLAGS = --disable-schemas-install --disable-scrollkeeper --e
 
 # Ignore scrollkeeper issues for now.  @#*$& scrollkeeper
 distuninstallcheck_listfiles = find . -type f -print | grep -v scrollkeeper | grep -v /share/gnome/help/ | grep -v \.omf
+
+ChangeLog:
+       @echo Creating $@
+       @if test -d "$(srcdir)/.git"; then \
+         (GIT_DIR=$(top_srcdir)/.git ./missing --run git log -M -C --name-status --date=short --no-color) | fmt --split-only > $@.tmp \
+         && mv -f $@.tmp $@ \
+         || ($(RM) $@.tmp; \
+             echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
+             (test -f $@ || echo git log is required to generate this file >> $@)); \
+       else \
+         test -f $@ || \
+         (echo A git checkout and git log is required to generate ChangeLog >&2 && \
+         echo A git checkout and git log is required to generate this file >> $@); \
+       fi
+