mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 19:22:40 +01:00
Update update-version.pl from svn to git
This commit is contained in:
parent
49361625c6
commit
4c65df0529
@ -13,8 +13,8 @@ use warnings;
|
|||||||
# These are set automatically by the build/commit script
|
# These are set automatically by the build/commit script
|
||||||
use constant {
|
use constant {
|
||||||
BUILD_NAME => "PBot",
|
BUILD_NAME => "PBot",
|
||||||
BUILD_REVISION => 806,
|
BUILD_REVISION => 808,
|
||||||
BUILD_DATE => "2014-12-27",
|
BUILD_DATE => "2014-12-29",
|
||||||
};
|
};
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
@ -5,8 +5,10 @@ use strict;
|
|||||||
|
|
||||||
use POSIX qw(strftime);
|
use POSIX qw(strftime);
|
||||||
|
|
||||||
my $svn_info = `svn info -r head`;
|
# my $svn_info = `svn info -r head` or die "Couldn't get revision: $!";
|
||||||
my ($rev) = $svn_info =~ /Last Changed Rev: (\d+)/;
|
# my ($rev) = $svn_info =~ /Last Changed Rev: (\d+)/;
|
||||||
|
|
||||||
|
my $rev = `git rev-list --count HEAD`;
|
||||||
my $date = strftime "%Y-%m-%d", localtime;
|
my $date = strftime "%Y-%m-%d", localtime;
|
||||||
|
|
||||||
$rev++;
|
$rev++;
|
||||||
|
Loading…
Reference in New Issue
Block a user