Skip to content
This repository
Newer
Older
100755 18 lines (14 sloc) 0.337 kb
3858aa85 »
2011-08-11 Versioning, prepration for the first release
1 #!/bin/sh
2
3 LF='
4 '
5
289a8f97 »
2011-08-12 Few small improvements
6 VN=$(git describe --match "v[0-9]*" --abbrev=4 HEAD 2>/dev/null)
7 case "$VN" in
8 *$LF*) (exit 1) ;;
9 v[0-9]*)
10 git update-index -q --refresh
11 test -z "$(git diff-index --name-only HEAD --)" ||
12 VN="$VN-dirty" ;;
13 esac
14 VN=$(echo "$VN" | sed -e 's/-/./g');
3858aa85 »
2011-08-11 Versioning, prepration for the first release
15 VN=$(expr "$VN" : v*'\(.*\)')
16
17 echo "$VN"
Something went wrong with that request. Please try again.