summaryrefslogtreecommitdiff
path: root/findversion.sh
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-03-18 06:18:06 +0000
committerrubidium <rubidium@openttd.org>2013-03-18 06:18:06 +0000
commit2661b5cfff01cc72d2a440b5412fe38ad45345cc (patch)
tree4c9afe2df6769307817119252ef762d2b2358aab /findversion.sh
parentc6187b5d9733807884777678f88a661534e1efbc (diff)
downloadopenttd-2661b5cfff01cc72d2a440b5412fe38ad45345cc.tar.xz
(svn r25107) -Change: be slightly more lenient with trying to detect a subversion repository in case someone has a sparse tags checkout. In that case the .svn folder misses from the $ROOT_DIR because it is in the $ROOT_DIR/.. (i.e. tags) folder
Diffstat (limited to 'findversion.sh')
-rwxr-xr-xfindversion.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/findversion.sh b/findversion.sh
index 35568de0c..c0d500a8f 100755
--- a/findversion.sh
+++ b/findversion.sh
@@ -70,7 +70,7 @@ ROOT_DIR=`pwd`
# Determine if we are using a modified version
# Assume the dir is not modified
MODIFIED="0"
-if [ -d "$ROOT_DIR/.svn" ]; then
+if [ -d "$ROOT_DIR/.svn" ] || [ -d "$ROOT_DIR/../.svn" ]; then
# We are an svn checkout
if [ -n "`svnversion | grep 'M'`" ]; then
MODIFIED="2"