summaryrefslogtreecommitdiff
path: root/make/configure.pm
diff options
context:
space:
mode:
Diffstat (limited to 'make/configure.pm')
-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;