From 9cbdf9175e81988053c2290aab2c9380be333ae3 Mon Sep 17 00:00:00 2001 From: Ailin Nemui Date: Mon, 4 Jan 2021 16:50:02 +0100 Subject: [PATCH] put proper versions in PACKAGE_VERSION --- utils/irssi-version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/irssi-version.sh b/utils/irssi-version.sh index 41970cb2..b096fd90 100755 --- a/utils/irssi-version.sh +++ b/utils/irssi-version.sh @@ -22,7 +22,7 @@ echo "#define IRSSI_VERSION_TIME $VERSION_TIME" if echo "${VERSION}" | grep -q -- -head; then # -head version, get extra details from git if we can - git_version=$(GIT_DIR=$1/.git git describe --dirty --long --always --tags 2>/dev/null) + git_version=$(GIT_DIR=$1/.git git describe --dirty --long --tags --match '[0-9]*.[0-9]*' 2>/dev/null) if [ $? = 0 ]; then echo "#undef PACKAGE_VERSION" echo "#define PACKAGE_VERSION \"${git_version}\""