Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
On branch Bug2720Fix Changes to be committed: modified: support/versi…
…on lines 20 and 21 to correct location of rpm/version files <boblfoot@gmail.com> 20150319
  • Loading branch information
boblfoot authored and perexg committed Mar 22, 2015
1 parent 5e7efab commit c61be4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions support/version
Expand Up @@ -17,8 +17,8 @@ if [ -d ".git" ]; then
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
VER=$(cat "$(dirname "$0")/rpm/version")
elif [ -r "$(dirname "$0")/../rpm/version" ]; then
VER=$(cat "$(dirname "$0")/../rpm/version")
else
VER="0.0.0~unknown"
fi
Expand Down

0 comments on commit c61be4e

Please sign in to comment.