mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 11:12:42 +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
|
||||
use constant {
|
||||
BUILD_NAME => "PBot",
|
||||
BUILD_REVISION => 806,
|
||||
BUILD_DATE => "2014-12-27",
|
||||
BUILD_REVISION => 808,
|
||||
BUILD_DATE => "2014-12-29",
|
||||
};
|
||||
|
||||
1;
|
||||
|
@ -5,8 +5,10 @@ use strict;
|
||||
|
||||
use POSIX qw(strftime);
|
||||
|
||||
my $svn_info = `svn info -r head`;
|
||||
my ($rev) = $svn_info =~ /Last Changed Rev: (\d+)/;
|
||||
# my $svn_info = `svn info -r head` or die "Couldn't get revision: $!";
|
||||
# my ($rev) = $svn_info =~ /Last Changed Rev: (\d+)/;
|
||||
|
||||
my $rev = `git rev-list --count HEAD`;
|
||||
my $date = strftime "%Y-%m-%d", localtime;
|
||||
|
||||
$rev++;
|
||||
|
Loading…
Reference in New Issue
Block a user