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
This commit is contained in:
w00t 2008-09-07 14:38:55 +00:00
parent 94f956aef6
commit f66960886f

View File

@ -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;