summaryrefslogtreecommitdiff
path: root/docs/Makefile
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-12-05 11:13:08 +0100
committerGuido Günther <agx@sigxcpu.org>2011-12-05 12:31:19 +0100
commitbaeee74502b8ff905e78155176d57a0291f318bd (patch)
tree3b17fadb271028ee99b999749935812a44cb4898 /docs/Makefile
parent496aa315bc9e27db0c15dd7d2c592be8b565321a (diff)
downloadgit-buildpackage-baeee74502b8ff905e78155176d57a0291f318bd.tar.gz
git-buildpackage-baeee74502b8ff905e78155176d57a0291f318bd.tar.bz2
git-buildpackage-baeee74502b8ff905e78155176d57a0291f318bd.zip
docs: fix version string
Diffstat (limited to 'docs/Makefile')
-rw-r--r--docs/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/Makefile b/docs/Makefile
index aafb4ed7..774bf116 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -15,6 +15,8 @@ SGML_MANPAGES=$(patsubst %,%.1,$(COMMANDS))
POD_MANPAGES=git-pbuilder.1
MANPAGES=$(SGML_MANPAGES) $(POD_MANPAGES)
VERSION_ENT=version.ent
+GBP_VERSION=../gbp/version.py
+DEB_VERSION=$(shell sed -ne 's/^gbp_version="\([.a-z0-9~]\+\)"/\1/p' $(GBP_VERSION))
CHANGELOG=../debian/changelog
all: $(MANUAL) $(MANPAGES)
@@ -31,7 +33,7 @@ git-pbuilder.1: ../bin/git-pbuilder
manual.sgml: $(VERSION_ENT)
-$(VERSION_ENT): $(CHANGELOG)
+$(VERSION_ENT): $(GBP_VERSION)
echo '<!ENTITY gbp-version "$(DEB_VERSION)">' > $(VERSION_ENT)
clean: