summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-01-25 11:39:30 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-01-25 11:39:30 +0000
commit8a9b426c9502a13064decbc10b57a91a9c06866a (patch)
tree0afd40295dd5282abd7e3781ae71dbaf612bca80 /tools
parent5a7b2819de9bfa6c606c571be93303d572d0aa3e (diff)
downloadrockbox-8a9b426c9502a13064decbc10b57a91a9c06866a.tar.gz
rockbox-8a9b426c9502a13064decbc10b57a91a9c06866a.tar.bz2
rockbox-8a9b426c9502a13064decbc10b57a91a9c06866a.zip
try somewhat harder to find the actual svn rev
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12110 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-xtools/svnversion.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/svnversion.sh b/tools/svnversion.sh
index 5e96bf925c..bbe1c0eb66 100755
--- a/tools/svnversion.sh
+++ b/tools/svnversion.sh
@@ -16,7 +16,15 @@ 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
- SVNVER=unknown;
+ # 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