Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 13 lines (9 sloc) 191 Bytes
#!/bin/sh
if test -f .version; then
v=`cat .version`
else
v=`git describe --tags 2> /dev/null`
fi
test -z "$v" && v="unknown"
# remove initial 'v'
echo "$v" | sed 's/^v//'