From d64a61a0e410761e9249d977f8785bb7bfd556b1 Mon Sep 17 00:00:00 2001
From: brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Date: Mon, 13 Mar 2006 20:53:08 +0000
Subject: Better checking for if its svn or not

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3706 e03df62e-2008-0410-955e-edbf42e46eb7
---
 configure | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index 2585e7612..d4cdd579e 100755
--- a/configure
+++ b/configure
@@ -52,6 +52,8 @@ $config{MAX_KICK}           = "255";						# max kick message size
 $config{MAX_GECOS}          = "128";						# max GECOS size
 $config{MAX_AWAY}           = "200";						# max AWAY size
 
+$no_svn = 0;
+
 $config{HAS_OPENSSL} =~ /OpenSSL (\S+) \d+ \S+ \d{4}/;
 $config{HAS_OPENSSL} = $1;
 
@@ -885,15 +887,19 @@ sub getmodules {
 }
 
 sub getrevision {
+	if ($no_svn) {
+		return "0";
+	}
 	my $data = `svn info`;
 	if ($data eq "") {
-		$rev = "r0";
+		$no_svn = 1;
+		$rev = "0";
 		return $rev;
 	}
 	$data =~ /Revision: (\d+)/;
 	my $rev = $1;
 	if (!defined($rev)) {
-		$rev = "r0";
+		$rev = "0";
 	}
 	return $rev;
 }
-- 
cgit v1.2.3