Skip to content

Commit d03635a

Browse files
committed
support patch-releases in helper.pl
1 parent ac6f62b commit d03635a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

helper.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,8 @@ sub patch_makefile {
276276

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

0 commit comments

Comments
 (0)