]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Update support/version to use hyphen instead of tilde for git hash
authorcopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Mon, 15 Sep 2025 15:22:17 +0000 (15:22 +0000)
committercopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Mon, 15 Sep 2025 15:22:17 +0000 (15:22 +0000)
Co-authored-by: Flole998 <9951871+Flole998@users.noreply.github.com>
support/version

index 5d99544ec43e4fee9d5789dbe19efa1ec946bcc1..90b84205014d4dbb31f679bef5033da64614641f 100755 (executable)
@@ -16,7 +16,7 @@ if [ -d ".git" ]; then
     VER=$(cd "$(dirname "$0")/.."; git describe --match "v*" 2> /dev/null)
     [ -z "$VER" ] && VER="0.0.0-unknown"
   fi
-  VER=$(echo $VER | sed "s/^v//" | sed "s/-\([0-9]*\)-\(g[0-9a-f]*\)/-\1~\2/")
+  VER=$(echo $VER | sed "s/^v//" | sed "s/-\([0-9]*\)-\(g[0-9a-f]*\)/-\1-\2/")
 elif [ -f "$(dirname "$0")/../debian/changelog" ]; then
   VER=$(head -1 "$(dirname "$0")/../debian/changelog" | awk '{ print $2 }' | tr -d '()' | cut -d '-' -f 1-2)
 elif [ -r "$(dirname "$0")/../rpm/version" ]; then