1
0
Fork 0
forked from len0rd/rockbox

fix make VERSION=x.y to work again

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28427 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Marcin Bukat 2010-10-31 21:52:48 +00:00
parent 77b2d02296
commit 308936cd35

View file

@ -90,6 +90,8 @@ bzrversion() {
# #
if [ -n "$1" ]; then TOP=$1; else TOP=..; fi if [ -n "$1" ]; then TOP=$1; else TOP=..; fi
# setting VERSION var on commandline has precedence
if [ -z $VERSION ]; then
# If the VERSIONFILE exisits we use that # If the VERSIONFILE exisits we use that
VERSIONFILE=docs/VERSION VERSIONFILE=docs/VERSION
if [ -r $TOP/$VERSIONFILE ]; then VER=`cat $TOP/$VERSIONFILE`; if [ -r $TOP/$VERSIONFILE ]; then VER=`cat $TOP/$VERSIONFILE`;
@ -109,5 +111,6 @@ else
fi fi
fi fi
VERSION=$VER-`date -u +%y%m%d` VERSION=$VER-`date -u +%y%m%d`
fi
echo $VERSION echo $VERSION