]> git.proxmox.com Git - pve-manager.git/commitdiff
build-sys: allow a multi-digit release number
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 9 Feb 2024 11:04:07 +0000 (12:04 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 19 Feb 2024 13:42:59 +0000 (14:42 +0100)
future proofing at this point, but let's rather fix this already
before we forget...

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
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)