Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
support/version: another update for the new versioning scheme
  • Loading branch information
perexg committed May 22, 2015
1 parent 41bb51a commit 4fdf0c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion support/version
Expand Up @@ -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
Expand Down

0 comments on commit 4fdf0c5

Please sign in to comment.