Update update-version.pl from svn to git

This commit is contained in:
Pragmatic Software 2014-12-29 23:04:35 -08:00
parent 49361625c6
commit 4c65df0529
2 changed files with 6 additions and 4 deletions

View File

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

View File

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