]> git.proxmox.com Git - lxc.git/commitdiff
buildsys: use dpkg-parsechangelog
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 17 Jan 2019 08:32:04 +0000 (09:32 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 17 Jan 2019 08:34:34 +0000 (09:34 +0100)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Makefile

index 365479bd6f2211480c810edf7b0c4f73f65a8c10..eb77730abd70045683ae5c8b156968e9c0ffbbf9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,16 @@
 PACKAGE=lxc-pve
-LXCVER=3.1.0
-DEBREL=1
+PKGVER != dpkg-parsechangelog -Sversion | cut -d- -f1
+PKGREL != dpkg-parsechangelog -Sversion | cut -d- -f2
 
 SRCDIR=lxc
-BUILDSRC := $(PACKAGE)-$(LXCVER)
+BUILDSRC := $(PACKAGE)-$(PKGVER)
 
 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
 
-DEB_BASE=$(PACKAGE)_$(LXCVER)-$(DEBREL)
+DEB_BASE=$(PACKAGE)_$(PKGVER)-$(PKGREL)
 DEB1=$(DEB_BASE)_$(ARCH).deb
-DEB2=$(PACKAGE)-dev_$(LXCVER)-$(DEBREL)_$(ARCH).deb \
-     $(PACKAGE)-dbgsym_$(LXCVER)-$(DEBREL)_$(ARCH).deb
+DEB2=$(PACKAGE)-dev_$(PKGVER)-$(PKGREL)_$(ARCH).deb \
+     $(PACKAGE)-dbgsym_$(PKGVER)-$(PKGREL)_$(ARCH).deb
 DEBS=$(DEB1) $(DEB2)
 DSC=$(DEB_BASE).dsc
 TARGZ=$(DEB_BASE).tar.gz