dynamically add upstream version to manpage
authorgregor herrmann <gregoa@debian.org>
Wed, 8 Apr 2009 17:01:40 +0000 (17:01 -0000)
committergregor herrmann <gregoa@debian.org>
Wed, 8 Apr 2009 17:01:40 +0000 (17:01 -0000)
debian/rules

index ce59268440ea47079a9bb32dc02aef9b360e51ec..f35789b15279bd8f06f01bc53f338a1bada9c1ca 100755 (executable)
@@ -17,6 +17,7 @@ else
 CROSS= --build $(DEB_BUILD_GNU_TYPE)
 endif
 
+UVERSION = $(shell dpkg-parsechangelog | sed -ne 's/^Version: \([^-]\+\)-.*/\1/p')
 
 config.status: configure
        dh_testdir
@@ -33,7 +34,7 @@ build: build-stamp
 build-stamp:  config.status
        dh_testdir
        $(MAKE)
-       pod2man --release "gpesyncd 2.0" --center "User commands" debian/gpesyncd.pod > debian/gpesyncd.1
+       pod2man --release "gpesyncd $(UVERSION)" --center "User commands" debian/gpesyncd.pod > debian/gpesyncd.1
        touch $@
 
 clean: