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:
parent
5a7b2819de
commit
8a9b426c95
1 changed files with 9 additions and 1 deletions
|
|
@ -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`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue