summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-13 20:53:08 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-13 20:53:08 +0000
commitd64a61a0e410761e9249d977f8785bb7bfd556b1 (patch)
tree46453d0d3d6f65e945ab786f750e65c02a1cfb52
parent78db8a3413c8e030e73c47abb4ba7f3d7d91aa5a (diff)
Better checking for if its svn or not
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3706 e03df62e-2008-0410-955e-edbf42e46eb7
-rwxr-xr-xconfigure10
1 files 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;
}