Changed publish.sh to update the CMake project version

This commit is contained in:
Benoit Blanchon
2020-04-09 21:28:48 +02:00
parent 3ea5eb3f3a
commit 9e354803de
3 changed files with 6 additions and 2 deletions

View File

@ -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*~