2014-02-20 22:39:55 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2015-10-10 23:22:05 +00:00
|
|
|
tmp=$1
|
|
|
|
file=${tmp:=VERSION}
|
2014-02-20 22:39:55 +00:00
|
|
|
gitver=$(git describe 2>/dev/null | tr - .)
|
2015-10-10 23:22:05 +00:00
|
|
|
filever=$(cat ${file} 2>/dev/null)
|
2014-02-20 22:39:55 +00:00
|
|
|
|
|
|
|
version=${gitver}
|
|
|
|
: ${version:=$filever}
|
|
|
|
|
|
|
|
echo "$version"
|