1
#!/bin/sh
2
3
if test -f .version; then
4
        v=`cat .version`
5
else
6
        v=`git describe --tags 2> /dev/null`
7
fi
8
9
test -z "$v" && v="unknown"
10
11
# remove initial 'v'
12
echo "$v" | sed 's/^v//'