Commit e856b51b5c6f04d40a30f88f35b29324217aac84

Daniel Mendler 2019-06-06T22:44:29

remove version_from_tomcrypt

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/helper.pl b/helper.pl
index 76a0bef..c9c35c3 100755
--- a/helper.pl
+++ b/helper.pl
@@ -222,16 +222,6 @@ sub patch_file {
   return $content;
 }
 
-sub version_from_tomcrypt_h {
-  my $h = read_file(shift);
-  if ($h =~ /\n#define\s*SCRYPT\s*"([0-9]+)\.([0-9]+)\.([0-9]+)(.*)"/s) {
-    return "VERSION_PC=$1.$2.$3", "VERSION_LT=1:1", "VERSION=$1.$2.$3$4", "PROJECT_NUMBER=$1.$2.$3$4";
-  }
-  else {
-    die "#define SCRYPT not found in tomcrypt.h";
-  }
-}
-
 sub process_makefiles {
   my $write = shift;
   my $changed_count = 0;