Skip to content

Commit 693b45c

Browse files
committed
Fix to release string regarding so versions.
1 parent 6102b31 commit 693b45c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tools/release.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,12 @@ def topaddedversionstring(major, minor, rev):
9999
import fileinput
100100
import re
101101

102+
newmajorversionstring = str(newversion[0])
102103
newversionstring = str(newversion[0]) + "." + str(newversion[1]) + "." + str(newversion[2])
103104
cmakefile = maindir + os.sep + "CMakeLists.txt"
104105
for line in fileinput.input(cmakefile, inplace=1, backup='.bak'):
105106
line = re.sub('SIMDJSON_LIB_VERSION "\d+\.\d+\.\d+','SIMDJSON_LIB_VERSION "'+newversionstring, line.rstrip())
106-
line = re.sub('SIMDJSON_LIB_SOVERSION "\d+\.\d+\.\d+','SIMDJSON_LIB_SOVERSION "'+newversionstring, line)
107+
line = re.sub('SIMDJSON_LIB_SOVERSION "\d+','SIMDJSON_LIB_SOVERSION "'+newmajorversionstring, line)
107108
print(line)
108109

109110
print("modified "+cmakefile+", a backup was made")

0 commit comments

Comments
 (0)