From d03635acab0bbbb7f0491fc1a9d3bef14e6eed4c Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Wed, 5 Jul 2017 13:20:50 +0200 Subject: [PATCH] support patch-releases in helper.pl --- helper.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helper.pl b/helper.pl index 90308aea8..34eca0dc7 100755 --- a/helper.pl +++ b/helper.pl @@ -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";