add make rename support, update README
Some checks failed
Build and Publish / release (push) Has been skipped
Build and Publish / check-chart (push) Successful in 9s
Build and Publish / helm-release (push) Has been cancelled

This commit is contained in:
2025-03-31 16:09:22 -04:00
parent c8e461729f
commit b5b7ceb85a
10 changed files with 890 additions and 8 deletions

View File

@ -72,5 +72,12 @@ rename:
echo "Aborted."; \
exit 1; \
fi
@find . -type f \( -name '*.go' -o -name 'go.mod' -o -name 'go.sum' -o -name '*.proto' -o -name 'Makefile' \) -exec sed -i "s|$(GIT_REPO)|$(NAME)|g" {} +
@find . -type f -a \
\( -name '*.go' -o -name 'go.mod' \
-o -name 'go.sum' -o -name '*.proto' \
-o -name 'Makefile' \
-o -name '*.yml' -o -name '*.yaml' \
\) \
-not -path './.git' -not -path './.git/*' \
-exec sed -i "s|$(GIT_REPO)|$(NAME)|g" {} +
@echo "Project renamed to $(NAME)"