From b6ce5c27836f933420b30107bd3409b8c6574bb3 Mon Sep 17 00:00:00 2001 From: Rhonda D'Vine Date: Fri, 28 Dec 2018 18:24:07 +0100 Subject: [PATCH] Get version information from changelog 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 --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8269eae..c02ba14 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ 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 -- 2.39.2