Skip to content

Commit

Permalink
support patch-releases in helper.pl
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaeckel committed Jul 5, 2017
1 parent ac6f62b commit d03635a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helper.pl
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,8 @@ sub patch_makefile {

sub version_form_tomcrypt_h {
my $h = read_file(shift);
if ($h =~ /\n#define\s*SCRYPT\s*"([0-9]+)\.([0-9]+)"/s) {
return "VERSION=$1.$2", "VERSION_LT=0:$1$2";
if ($h =~ /\n#define\s*SCRYPT\s*"([0-9]+)\.([0-9]+)\.([0-9]+).*"/s) {
return "VERSION=$1.$2.$3", "VERSION_LT=0:$1$2";
}
else {
die "#define SCRYPT not found in tomcrypt.h";
Expand Down

0 comments on commit d03635a

Please sign in to comment.