1
0
Fork 0
forked from len0rd/rockbox

try somewhat harder to find the actual svn rev

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12110 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2007-01-25 11:39:30 +00:00
parent 5a7b2819de
commit 8a9b426c95

View file

@ -16,8 +16,16 @@ if [ -r $TOP/$VERSIONFILE ]; then SVNVER=`cat $TOP/$VERSIONFILE`;
else if [ `which svnversion 2>/dev/null` ];
then SVNVER=r`svnversion $1`;
if [ $SVNVER = "rexported" ]; then
# try getting it from a subdir to test if perhaps they are symlinked
# from the root
SVNALT=`svnversion $1/tools`
if [ $SVNALT != exported ]; then
# yeah, it is there so we use this
SVNVER="r$SVNALT"
else
SVNVER=unknown;
fi
fi
else SVNVER="unknown"; fi
fi
VERSION=$SVNVER-`date -u +%y%m%d`