docs: fix version string
authorGuido Günther <agx@sigxcpu.org>
Mon, 5 Dec 2011 10:13:08 +0000 (11:13 +0100)
committerGuido Günther <agx@sigxcpu.org>
Mon, 5 Dec 2011 11:31:19 +0000 (12:31 +0100)
docs/Makefile

index aafb4ed..774bf11 100644 (file)
@@ -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: