Browse Source

get-version: remove initial 'v'

The tags have been updated to something like: v0.1.0.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
tags/v0.1.0
Felipe Contreras 10 years ago
parent
commit
591b50b1c3
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      get-version

+ 5
- 2
get-version View File

@@ -2,7 +2,10 @@

if test -f .version
then
cat .version
v=`cat .version`
else
git describe --tags
v=`git describe --tags`
fi

# remove initial 'v'
echo "$v" | sed 's/^v//'

Loading…
Cancel
Save