summaryrefslogtreecommitdiff
path: root/xorgversion.m4
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2008-11-14 22:38:27 +0100
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2008-11-29 05:13:32 -0200
commit2663b7a6b31e5e3d03b42a50b27f64737a35e9aa (patch)
tree42531a78679c606504f74f06dd14b322c85eafab /xorgversion.m4
parentb8a5186c585b4f01971457f0d59cc7480cf528e8 (diff)
define and use XORG_CHANGELOG macro
Diffstat (limited to 'xorgversion.m4')
-rw-r--r--xorgversion.m414
1 files changed, 14 insertions, 0 deletions
diff --git a/xorgversion.m4 b/xorgversion.m4
index 7d3dda8..edfc0fb 100644
--- a/xorgversion.m4
+++ b/xorgversion.m4
@@ -59,3 +59,17 @@ AC_DEFUN([XORG_RELEASE_VERSION],[
[$PVP],
[Patch version of this package])
])
+
+# XORG_CHANGELOG()
+# ----------------
+# Minimum version: 1.2.0
+#
+# Defines the variable CHANGELOG_CMD as the command to generate
+# ChangeLog from git.
+#
+AC_DEFUN([XORG_CHANGELOG], [
+CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \
+mv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \
+echo 'git directory not found: installing possibly empty changelog.' >&2)"
+AC_SUBST([CHANGELOG_CMD])
+]) # XORG_CHANGELOG