chore: Add set-version script and update all clients to 4.2.0

- Add scripts/set-version.sh to update version in all source files
- Add make set-version VERSION=X.Y.Z target
- Updated 11 files: VERSION, C, Python, Lua, Perl, Groovy, JS, Rust
This commit is contained in:
russell@unturf.com 2026-01-18 13:09:10 -05:00
parent d76a56610e
commit 4b602b8174
12 changed files with 173 additions and 11 deletions

View file

@ -1,4 +1,4 @@
.PHONY: help test test-all test-c test-python test-go test-javascript test-ruby test-php test-rust test-java test-bash test-perl test-lua
.PHONY: help test test-all test-c test-python test-go test-javascript test-ruby test-php test-rust test-java test-bash test-perl test-lua set-version
# Client directories with their own Makefiles
CLIENTS_WITH_MAKEFILE := $(wildcard clients/*/Makefile)
@ -32,6 +32,7 @@ help:
@echo " make test-ci-locally # Simulate CI pipeline"
@echo " make lint # Lint all clients"
@echo " make clean # Clean build artifacts"
@echo " make set-version VERSION=X.Y.Z # Set version in all files"
@echo ""
@echo "Available client Makefiles:"
@for dir in $(CLIENT_DIRS); do echo " $$dir"; done
@ -295,3 +296,15 @@ clean:
@find . -name "*.pyc" -delete
@find . -name "__pycache__" -type d -delete
@echo "Clean complete"
# ============================================================================
# Version Management
# ============================================================================
.PHONY: set-version
set-version:
ifndef VERSION
@echo "Usage: make set-version VERSION=4.2.0"
@exit 1
endif
@bash scripts/set-version.sh $(VERSION)