From e67d94a084e17042a5e189f216e202f61fbe138a Mon Sep 17 00:00:00 2001 From: geos_one Date: Sun, 10 Aug 2025 03:11:41 +0200 Subject: [PATCH] no grep --- debian/rules | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/rules b/debian/rules index 158ec5b..e246262 100755 --- a/debian/rules +++ b/debian/rules @@ -2,8 +2,8 @@ # this is so awful PAREN = ) -BEEGFS_VERSION = $(shell head -n1 debian/changelog | grep -P --only-matching '(?<=\d:)[^$(PAREN)~]+') -BEEGFS_MAJOR = $(shell head -n1 debian/changelog | grep -P --only-matching '(?<=\d:)\d+') +BEEGFS_VERSION = $(shell head -n1 debian/changelog | awk -F'[()]' '{print $2}') +BEEGFS_MAJOR = $(shell head -n1 debian/changelog | awk -F'[()]' '{split($2,a,"."); print a[1]}') BEEGFS_NVFS=1 DPKG_EXPORT_BUILDFLAGS = 1