Skip to content

Commit

Permalink
Change version number
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielChappuis committed Jun 21, 2024
1 parent 179a07b commit 6344272
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
6 changes: 0 additions & 6 deletions GenerateNewVersion.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ def findReplaceText(directory, findRegex, substituteExpr, filePattern):
findReplaceText("./", r'([ \t]VERSION[ \t]+)"[\d\.]+"', r'\g<1>"' + newVersion + '"', "CMakeLists.txt")
print("Version number has been updated in CMakeLists.txt file")

# Update the RP3D version number in the documentation/API/Doxyfile file
findReplaceText("documentation/API/", r'(PROJECT_NUMBER[ \t]+=[ \t]+)"[\d\.]+"', r'\g<1>"' + newVersion + '"', "Doxyfile")
print("Version number has been updated in documentation/API/Doxyfile file")

# Update the RP3D version number in the documentation/UserManual/title.tex file
findReplaceText("documentation/UserManual/", r'(Version:[\s]+)[\d\.]+', r'\g<1>' + newVersion, "title.tex")
print("Version number has been updated in documentation/UserManual/title.tex file")
Expand All @@ -64,5 +60,3 @@ def findReplaceText(directory, findRegex, substituteExpr, filePattern):
findReplaceText("include/", '(Copyright ' + re.escape("(c)") + r' 2010-)[\d]+', r'\g<1>' + str(date.today().year), "*.h")
findReplaceText("src/", '(Copyright ' + re.escape("(c)") + r' 2010-)[\d]+', r'\g<1>' + str(date.today().year), "*.cpp")
print("Copyright date in license has been updated in all source code files")

print("WARNING: Do not forget to manually update the SOVERSION number in the CMakeLists.txt file")
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.10.0
0.10.1
2 changes: 1 addition & 1 deletion include/reactphysics3d/configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ constexpr decimal SAME_CONTACT_POINT_DISTANCE_THRESHOLD = decimal(0.01);
constexpr uint8 GLOBAL_ALIGNMENT = 16;

/// Current version of ReactPhysics3D
const std::string RP3D_VERSION = std::string("0.10.0");
const std::string RP3D_VERSION = std::string("0.10.1");

}

Expand Down
2 changes: 1 addition & 1 deletion include/reactphysics3d/reactphysics3d.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

/********************************************************************************
* ReactPhysics3D *
* Version 0.10.0 *
* Version 0.10.1 *
* http://www.reactphysics3d.com *
* Daniel Chappuis *
********************************************************************************/
Expand Down

0 comments on commit 6344272

Please sign in to comment.