From fce59fae46861f2b5b2d7fee629f77e5fe65102c Mon Sep 17 00:00:00 2001 From: Edoardo Bortolozzo Date: Sat, 20 Sep 2025 12:17:52 +0200 Subject: [PATCH] build: read packaging version form CMakeLists.txt --- distro/scripts/make-archive.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distro/scripts/make-archive.sh b/distro/scripts/make-archive.sh index 07f43d8e..1b68eb6f 100755 --- a/distro/scripts/make-archive.sh +++ b/distro/scripts/make-archive.sh @@ -1,7 +1,7 @@ #!/bin/bash # create archive from current source using git -VERSION=$(git log --oneline -n1 --grep="^VERSION" | rev | cut -d' ' -f1 | rev) +VERSION=$(grep set\(NP2SRV_VERSION CMakeLists.txt | cut -d ' ' -f 2 | tr -d ')') NAMEVER=netopeer2-$VERSION ARCHIVE=$NAMEVER.tar.gz