From 34f01b90e37605b00e21022b300e33f74f3b5db4 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Wed, 20 Nov 2024 12:05:03 +0100 Subject: Fixed CMake warnings * `make dist`: improved libnDPI git version naming Signed-off-by: Toni Uhlig --- scripts/make-dist.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/make-dist.sh') diff --git a/scripts/make-dist.sh b/scripts/make-dist.sh index 67578e504..921eacb54 100755 --- a/scripts/make-dist.sh +++ b/scripts/make-dist.sh @@ -19,7 +19,7 @@ fi git submodule update --init ./libnDPI NDPID_GIT_VERSION="$(git describe --tags || printf '%s' 'unknown')" cd ./libnDPI && \ - LIBNDPI_GIT_VERSION="$(git describe --tags || printf '%s' 'unknown')" && \ + LIBNDPI_GIT_VERSION="$(git tag --list '[0-9].[0-9]' | tail -n1 || printf '%s' 'unknown')-$(git rev-parse --short HEAD)" && \ printf '%s\n' "Creating $(realpath ./libnDPI-${LIBNDPI_GIT_VERSION}.tar)" && \ git archive --prefix="nDPId-${NDPID_GIT_VERSION}/libnDPI/" -o "../libnDPI-${LIBNDPI_GIT_VERSION}.tar" HEAD && \ cd .. -- cgit v1.2.3