mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-06 08:46:49 +08:00
the release script will update the header file with the new version numbers (automatically!!!)
This commit is contained in:
parent
cf771eaa83
commit
f436996266
@ -96,6 +96,19 @@ for line in fileinput.input(cmakefile, inplace=1, backup='.bak'):
|
|||||||
print("modified "+cmakefile+", a backup was made")
|
print("modified "+cmakefile+", a backup was made")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
versionfilerel = os.sep + "include" + os.sep + "fast_float" + os.sep + "float_common.h"
|
||||||
|
versionfile = maindir + versionfilerel
|
||||||
|
|
||||||
|
for line in fileinput.input(versionfile, inplace=1, backup='.bak'):
|
||||||
|
line = re.sub(r'#define FASTFLOAT_VERSION_MAJOR \d+','#define FASTFLOAT_VERSION_MAJOR '+newmajorversionstring, line.rstrip())
|
||||||
|
line = re.sub(r'#define FASTFLOAT_VERSION_MINOR \d+','#define FASTFLOAT_VERSION_MAJOR '+mewminorversionstring, line.rstrip())
|
||||||
|
line = re.sub(r'#define FASTFLOAT_VERSION_PATCH \d+','#define FASTFLOAT_VERSION_MAJOR '+newrevversionstring, line.rstrip())
|
||||||
|
print(line)
|
||||||
|
|
||||||
|
print(versionfile + " modified")
|
||||||
|
|
||||||
|
|
||||||
readmefile = maindir + os.sep + "README.md"
|
readmefile = maindir + os.sep + "README.md"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user