improve rename

This commit is contained in:
2025-07-20 11:58:55 -04:00
parent 0e5e6a380a
commit 8fc97ec058

View File

@ -79,6 +79,8 @@ rename:
@sed -i "s|otelServiceName: .*|otelServiceName: $(APP)|g" helm/values.yaml
@sed -i "s|app=.*|app=$(APP)|g" helm/values.yaml
@sed -i "s|$(CMD_NAME)|$(APP)|g" README.md
@sed -i "s|$(CMD_NAME)|$(APP)|g" .gitea/workflows/ci.yml
@sed -i "s|$(GIT_REPO)|$(NAME)|g" .gitea/workflows/ci.yml
@find . -type f -a \
\( -name '*.go' -o -name 'go.mod' \
-o -name 'go.sum' -o -name '*.proto' \
@ -87,4 +89,5 @@ rename:
\) \
-not -path './.git' -not -path './.git/*' \
-exec sed -i "s|$(GIT_REPO)|$(NAME)|g" {} +
@echo "Project renamed to $(NAME)"
@echo "\n* Project renamed to $(NAME)"
@echo "* NOTE: You will have to update .gitea/workflows/ci.yml"