support patch-releases in helper.pl
This commit is contained in:
parent
ac6f62badc
commit
d03635acab
@ -276,8 +276,8 @@ sub patch_makefile {
|
|||||||
|
|
||||||
sub version_form_tomcrypt_h {
|
sub version_form_tomcrypt_h {
|
||||||
my $h = read_file(shift);
|
my $h = read_file(shift);
|
||||||
if ($h =~ /\n#define\s*SCRYPT\s*"([0-9]+)\.([0-9]+)"/s) {
|
if ($h =~ /\n#define\s*SCRYPT\s*"([0-9]+)\.([0-9]+)\.([0-9]+).*"/s) {
|
||||||
return "VERSION=$1.$2", "VERSION_LT=0:$1$2";
|
return "VERSION=$1.$2.$3", "VERSION_LT=0:$1$2";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
die "#define SCRYPT not found in tomcrypt.h";
|
die "#define SCRYPT not found in tomcrypt.h";
|
||||||
|
Loading…
Reference in New Issue
Block a user