summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-07 19:34:04 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-07 19:34:04 +0000
commit330f1c8fe01154f2fb75f9142999143dd504384e (patch)
tree55d6200c700bcf2fa94b6fff5a269d9b3376444b /make
parent468d5c6d71693c048ab4da3550c0fe4e4d77b056 (diff)
Use git describe rather than git-svn, it works better with secondary clones
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10454 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'make')
-rw-r--r--make/configure.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/make/configure.pm b/make/configure.pm
index 39ee21487..184f994f1 100644
--- a/make/configure.pm
+++ b/make/configure.pm
@@ -59,13 +59,14 @@ sub getrevision {
my $data = `svn info 2>/dev/null`;
if ($data eq "")
{
- $data = `git-svn info 2>/dev/null`;
+ $data = `git describe --tags --always 2>/dev/null`;
if ($data eq "")
{
$no_svn = 1;
- my $rev = "0";
- return $rev;
+ return '0';
}
+ chomp $data; # remove \n
+ return $data;
}
$data =~ /Revision: (\d+)/;
my $rev = $1;