From db023a086a4832ec831efee349bf9facc78b0303 Mon Sep 17 00:00:00 2001 From: Satoshi Konno Date: Sun, 27 Oct 2024 09:45:21 +0900 Subject: [PATCH] Update version.gen --- redis/version.gen | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/redis/version.gen b/redis/version.gen index 50a4916..0774fc3 100755 --- a/redis/version.gen +++ b/redis/version.gen @@ -1,8 +1,8 @@ #!/bin/sh -major=$(git describe --abbrev=0 --tags | awk -F'.' '{print $1}') -minor=$(git describe --abbrev=0 --tags | awk -F'.' '{print $2}') -patch=$(git describe --abbrev=0 --tags | awk -F'.' '{print ($3+1)}') +major=$(git tag | sort | tail -n 1 | awk -F'.' '{print $1}') +minor=$(git tag | sort | tail -n 1 | awk -F'.' '{print $2}') +patch=$(git tag | sort | tail -n 1 | awk -F'.' '{print ($3+1)}') version="${major}.${minor}.${patch}" cat <