Skip to content

Commit

Permalink
Update subproject and release script
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwald committed Jul 21, 2015
1 parent c1be3f3 commit dd9bb51
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion GeoIP2.UnitTests/TestData/MaxMind-DB
6 changes: 4 additions & 2 deletions dev-bin/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ set -e

VERSION=$(perl -MFile::Slurp::Tiny=read_file -MDateTime <<EOF
use v5.16;
my \$today = DateTime->now->ymd;
my \$log = read_file(q{releasenotes.md});
\$log =~ /\n(\d+\.\d+\.\d+(?:-\w+)) \((\d{4}-\d{2}-\d{2})\)\n/;
die 'Release time is not today!' unless DateTime->now->ymd eq \$2;
\$log =~ /\n(\d+\.\d+\.\d+(?:-\w+)?) \((\d{4}-\d{2}-\d{2})\)\n/;
die "Release time is not today! Release: \$2 Today: \$today"
unless \$today eq \$2;
say \$1;
EOF
)
Expand Down

0 comments on commit dd9bb51

Please sign in to comment.