debian/rules: no need to pass the version manually to help2man.
[debian/dupmerge.git] / debian / rules
index ba23013..a10ab02 100755 (executable)
@@ -1,7 +1,5 @@
 #!/usr/bin/make -f
 
-VERSION = $(shell dpkg-parsechangelog | sed -ne 's/^Version: \([^-]\+\)-.*/\1/p')
-
 %:
        dh $@
 
@@ -9,4 +7,4 @@ override_dh_auto_build:
        CFLAGS="$(CFLAGS)" $(CC) -o dupmerge dupmerge.c
        help2man --output=$(CURDIR)/debian/dupmerge.1 \
                --no-info --section=1 --name="reclaim disk space by linking identical files together" \
-               --version-string=$(VERSION) $(CURDIR)/dupmerge
+               --version-option="-V" $(CURDIR)/dupmerge