forked from bblanchon/ArduinoJson
Changed publish.sh to update the CMake project version
This commit is contained in:
1 parent
3ea5eb3f3a
commit
9e354803de
3 files changed
+6
-2
No files matched your search
@@ -19,6 +19,9 @@ update_version_in_source () {
|
||||
sed -i~ -bE "4s/HEAD/$TAG ($DATE)/; 5s/-+/$UNDERLINE/" CHANGELOG.md
|
||||
rm CHANGELOG.md*~
|
||||
|
||||
sed -i~ -bE "s/(project\\s*\\(ArduinoJson\\s+VERSION\\s+).*?\\)/\\1$MAJOR.$MINOR.$REVISION)/" CMakeLists.txt
|
||||
rm CMakeLists.json*~
|
||||
|
||||
sed -i~ -bE "s/\"version\":.*$/\"version\": \"$VERSION\",/" library.json
|
||||
rm library.json*~
|
||||
|
||||
|
||||
Reference in new issue
Block a user