]> git.proxmox.com Git - pve-manager.git/blobdiff - Makefile
build-sys: allow a multi-digit release number
[pve-manager.git] / Makefile
index 273cc186fd7c2a9dbe2d34ad9f7bc1f0573754ef..2829539594829afaa6075c200e4c8448bb97a686 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 include /usr/share/dpkg/default.mk
 include defines.mk
 
-export PVERELEASE = $(shell echo $(DEB_VERSION_UPSTREAM) | cut -c 1-3)
+export PVERELEASE = $(shell echo $(DEB_VERSION_UPSTREAM) | cut -d. -f1-2)
 export VERSION = $(DEB_VERSION_UPSTREAM_REVISION)
 
 BUILDDIR = $(PACKAGE)-$(DEB_VERSION_UPSTREAM)