Lines Matching +full:php +full:- +full:version
1 # Delete Page Guard Plugin - Developer Tools
5 .PHONY: test check clean dist release version help
9 @echo "Delete Page Guard Plugin - Developer Tools"
13 @echo " test - Run the test suite"
14 @echo " check - Check PHP syntax of all files"
15 @echo " clean - Clean temporary files"
18 @echo " version [VERSION=x.y.z] - Update version in all files"
19 @echo " dist - Create distribution ZIP file"
20 @echo " release [VERSION=x.y.z] - Complete release workflow"
23 @echo " status - Show current version and git status"
24 @echo " help - Show this help message"
29 php tests/test_runner.php
31 # Check syntax of all PHP files
33 @echo "Checking PHP syntax..."
34 @find . -name "*.php" -not -path "./tests/*" -exec php -l {} \;
40 @find . -name "*~" -delete
41 @find . -name "*.tmp" -delete
42 @rm -rf dist/
45 # Update version in all files
46 version: target
47 ifndef VERSION
48 @echo "Error: VERSION parameter required"
49 @echo "Usage: make version VERSION=1.2.3"
52 @echo "Updating version to $(VERSION)..."
53 php build/update-version.php $(VERSION)
54 @echo "Version update complete."
59 php build/create-dist.php
63 ifndef VERSION
64 @echo "Error: VERSION parameter required"
65 @echo "Usage: make release VERSION=1.2.3"
68 @echo "Starting release workflow for version $(VERSION)..."
69 @make version VERSION=$(VERSION)
71 @echo " git add -A"
72 @echo " git commit -m 'Release version $(VERSION)'"
73 @echo " git tag v$(VERSION)"
75 @echo " git push origin main --tags"
79 @php build/show-status.php
81 @git status --short || echo "Not a git repository"