Fix revision calculation

This commit is contained in:
Tom Morris 2013-08-15 16:50:26 -04:00
parent 25f02dd9b9
commit 3aa1e3c436

3
refine
View File

@ -211,7 +211,8 @@ get_revision() {
REVISION=`echo $INFO | sed s/^$VERSION-//` REVISION=`echo $INFO | sed s/^$VERSION-//`
elif [ -d ".git" ] ; then elif [ -d ".git" ] ; then
INFO=`git describe` INFO=`git describe`
REVISION=${`echo $INFO`:3} REVISION=`echo $INFO`
REVISION=${REVISION:4}
else else
error "cannot obtain revision, exiting!" error "cannot obtain revision, exiting!"
fi fi