From: Jaroslav Kysela Date: Fri, 22 May 2015 08:29:49 +0000 (+0200) Subject: support/version: another update for the new versioning scheme X-Git-Tag: v4.2.1~2495 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fdf0c57e9bbae921953b7c4295ed3334ba5402d;p=thirdparty%2Ftvheadend.git support/version: another update for the new versioning scheme --- diff --git a/support/version b/support/version index 9f400f163..1d0f5de9e 100755 --- a/support/version +++ b/support/version @@ -16,7 +16,7 @@ if [ -d ".git" ]; then fi 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) + VER=$(head -1 "$(dirname "$0")/../debian/changelog" | awk '{ print $2 }' | tr -d '()' | cut -d '-' -f 1-2) elif [ -r "$(dirname "$0")/../rpm/version" ]; then VER=$(cat "$(dirname "$0")/../rpm/version") else