]> git.proxmox.com Git - pve-apiclient.git/commitdiff
Get version information from changelog
authorRhonda D'Vine <rhonda@proxmox.com>
Fri, 28 Dec 2018 17:24:07 +0000 (18:24 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 3 Jan 2019 07:49:52 +0000 (08:49 +0100)
The duplication of the version information both in the Makefile and in
debian/changelog is a potential error point, and an unneeded one.

Signed-off-by: Rhonda D'Vine <rhonda@proxmox.com>
Makefile

index 8269eae1c05caecbfa8825ac2065eef16c4ea8dc..c02ba14fa87b0ec8357ec078346cdeb22d638d2f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 PACKAGE=libpve-apiclient-perl
 PACKAGE=libpve-apiclient-perl
-PKGVER=2.0
-PKGREL=4
+PKGVER=$(shell dpkg-parsechangelog -Sversion | cut -d- -f1)
+PKGREL=$(shell dpkg-parsechangelog -Sversion | cut -d- -f2)
 
 BUILDSRC := $(PACKAGE)-$(PKGVER)
 DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
 
 BUILDSRC := $(PACKAGE)-$(PKGVER)
 DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb