Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,9 @@ debug-version:

# It's not so hard to do this by hand, but let's save some typing
bump-minor-version:
@yq '(((. * 10) + 1) / 10)' -i $(VERSION_FILE) && \
@NEW_VERSION=$$(awk -F. '{printf "%s.%d", $$1, $$2+1}' $(VERSION_FILE)) && \
echo "$$NEW_VERSION" > $(VERSION_FILE) && \
git add $(VERSION_FILE) && \
git commit $(VERSION_FILE) \
-m "Bump minor version to $$(cat $(VERSION_FILE))" \
-m "Bump minor version to $$NEW_VERSION" \
-m 'Commit generated with `make bump-minor-version`'
Loading
Loading