From 1a7b314aacd8a647ea9f470411b624da5fdd358d Mon Sep 17 00:00:00 2001 From: Edoardo Bortolozzo Date: Thu, 18 Sep 2025 15:54:35 +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 2ea7c5a6..f4afbe47 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 \(LIBNETCONF2_M.*_VERSION CMakeLists.txt | sed 'N; N; s/[[:print:]]*[[:blank:]]\([[:digit:]]\+\)[[:print:]]/\1/g; s/\n/./g') NAMEVER=libnetconf2-$VERSION ARCHIVE=$NAMEVER.tar.gz