From: Adam Sutton Date: Sun, 6 Jan 2013 20:47:26 +0000 (+0000) Subject: support: minor tweak to version script. X-Git-Tag: v3.5~189 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb832436819dad8692332ee3b16f60b5ac6fb905;p=thirdparty%2Ftvheadend.git support: minor tweak to version script. --- diff --git a/support/version b/support/version index e767cb620..7d5c40ead 100755 --- a/support/version +++ b/support/version @@ -11,8 +11,8 @@ if [ -d ".git" ]; then VER=$(cd $(dirname $0); git describe --dirty --match "v*" 2> /dev/null) if [ $? -ne 0 ]; then # Git describe failed, maybe "--dirty" option is not available - # Adding "--UNKNOWN" postfix to mark this situation - VER=$(cd $(dirname $0); git describe --match "v*" 2> /dev/null)--UNKNOWN + # 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/") else