From f66960886f7b5570414da9887b18145668dfe7d2 Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 7 Sep 2008 14:38:55 +0000 Subject: 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 --- make/configure.pm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'make') 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; -- cgit v1.2.3