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

View File

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