summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-07 14:38:55 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-07 14:38:55 +0000
commitf66960886f7b5570414da9887b18145668dfe7d2 (patch)
treedbd8535639f7f37d9e0a7fbb7dea7e68170d95b0
parent94f956aef6f8b1bc57d2f7d2ffd079e2d360b09a (diff)
Nicer fix for REVISION stuff when using git, thanks danieldg for the basis.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10433 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--make/configure.pm10
1 files changed, 7 insertions, 3 deletions
diff --git a/make/configure.pm b/make/configure.pm
index ba586e3e6..68e4240f9 100644
--- a/make/configure.pm
+++ b/make/configure.pm
@@ -59,9 +59,13 @@ sub getrevision {
my $data = `svn info`;
if ($data eq "")
{
- $no_svn = 1;
- my $rev = "0";
- return $rev;
+ $data = `git-svn info`;
+ if ($data eq "")
+ {
+ $no_svn = 1;
+ my $rev = "0";
+ return $rev;
+ }
}
$data =~ /Revision: (\d+)/;
my $rev = $1;