diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-13 20:53:08 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-13 20:53:08 +0000 |
commit | d64a61a0e410761e9249d977f8785bb7bfd556b1 (patch) | |
tree | 46453d0d3d6f65e945ab786f750e65c02a1cfb52 | |
parent | 78db8a3413c8e030e73c47abb4ba7f3d7d91aa5a (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-x | configure | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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; } |