Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
support/version: separate the changes number using minus not dot
  • Loading branch information
perexg committed May 21, 2015
1 parent ec3ba93 commit 3379f94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion support/version
Expand Up @@ -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
Expand Down

0 comments on commit 3379f94

Please sign in to comment.