Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2008-06-08 17:26:02 -0500
committerDan McGee <dan@archlinux.org>2008-06-08 17:26:02 -0500
commit1824bc6ee6c67b248c478d3fdd0f1995cb652b6c (patch)
tree3b7c557c81f95bb4dd3fbc4c1531f723ddcb7ca1
parentf827c9572e9c8a21d57e58bd61038226e9e0c05e (diff)
Allow use of GIT_VERSION in documentation dir
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--doc/Makefile.am10
1 files changed, 9 insertions, 1 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index eba950e3..476a21c3 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -32,6 +32,14 @@ EXTRA_DIST = \
MOSTLYCLEANFILES = *.xml
MAINTAINERCLEANFILES = $(ASCIIDOC_MANS)
+if USE_GIT_VERSION
+GIT_VERSION := $(shell sh -c 'git describe --abbrev=4 | sed s/^v//')-dirty
+REAL_PACKAGE_VERSION = $(GIT_VERSION)
+else
+REAL_PACKAGE_VERSION = $(PACKAGE_VERSION)
+endif
+
+
man_MANS =
dist_man_MANS = $(ASCIIDOC_MANS) repo-remove.8
@@ -47,7 +55,7 @@ endif
if USE_ASCIIDOC
ASCIIDOC_OPTS = \
-f asciidoc.conf \
- -a pacman_version="$(PACKAGE_VERSION)" \
+ -a pacman_version="$(REAL_PACKAGE_VERSION)" \
-a pacman_date="`date +%Y-%m-%d`" \
-a sysconfdir=$(sysconfdir)
A2X_OPTS = \