Skip to content

Commit bafd9d9

Browse files
committed
adding release script.
1 parent 9befad4 commit bafd9d9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

script/release.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,18 @@ def topaddedversionstring(major, minor, rev):
104104
print(line)
105105

106106
print("modified "+readmefile+", a backup was made")
107+
108+
109+
print("running amalgamate.py")
110+
with open(maindir+ os.sep + 'fast_float.h', "w") as outfile:
111+
cp = subprocess.run(["python3", maindir+ os.sep + "script/amalgamate.py"], stdout=outfile)
112+
113+
if(cp.returncode != 0):
114+
print("Failed to run amalgamate")
115+
else:
116+
print("amalgamate.py ran successfully")
117+
print("You should upload "+ maindir+ os.sep + 'fast_float.h')
118+
107119
print("Please run the tests before issuing a release. \n")
108120
print("to issue release, enter \n git commit -a && git push && git tag -a v"+toversionstring(*newversion)+" -m \"version "+toversionstring(*newversion)+"\" && git push --tags \n")
109121

0 commit comments

Comments
 (0)