mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
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:
parent
94f956aef6
commit
f66960886f
@ -58,11 +58,15 @@ sub getrevision {
|
||||
}
|
||||
my $data = `svn info`;
|
||||
if ($data eq "")
|
||||
{
|
||||
$data = `git-svn info`;
|
||||
if ($data eq "")
|
||||
{
|
||||
$no_svn = 1;
|
||||
my $rev = "0";
|
||||
return $rev;
|
||||
}
|
||||
}
|
||||
$data =~ /Revision: (\d+)/;
|
||||
my $rev = $1;
|
||||
if (!defined($rev))
|
||||
|
Loading…
x
Reference in New Issue
Block a user