]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
support/version: separate the changes number using minus not dot
authorJaroslav Kysela <perex@perex.cz>
Thu, 21 May 2015 09:05:35 +0000 (11:05 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 21 May 2015 09:05:35 +0000 (11:05 +0200)
support/version

index 1f0c13b0b6f13bf6d944be372645adbc17320c2a..9f400f163ec3ae01d27983d5f02fdd78713a7a60 100755 (executable)
@@ -14,7 +14,7 @@ if [ -d ".git" ]; then
     # Adding "-unknown" postfix to mark this situation
     VER=$(cd "$(dirname "$0")/.."; git describe --match "v*" 2> /dev/null)-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)
 elif [ -r "$(dirname "$0")/../rpm/version" ]; then