From c5e2251378b22f5ed883db2dbf0cb693b8ee918c Mon Sep 17 00:00:00 2001 From: Edoardo Bortolozzo Date: Wed, 17 Sep 2025 17:23:13 +0200 Subject: [PATCH] feat: read version from 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 6cca67c40d..7a9598ffbc 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 \(LIBYANG_M.*_VERSION CMakeLists.txt | tr -d '[:alpha:] _()' | sed 'N; N; s/\n/./g') NAMEVER=libyang-$VERSION ARCHIVE=$NAMEVER.tar.gz