summaryrefslogtreecommitdiff
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
parent5a7b2819de9bfa6c606c571be93303d572d0aa3e (diff)
try somewhat harder to find the actual svn rev
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12110 a1c6a512-1295-4272-9138-f99709370657
-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