improve rename
This commit is contained in:
5
Makefile
5
Makefile
@ -79,6 +79,8 @@ rename:
|
|||||||
@sed -i "s|otelServiceName: .*|otelServiceName: $(APP)|g" helm/values.yaml
|
@sed -i "s|otelServiceName: .*|otelServiceName: $(APP)|g" helm/values.yaml
|
||||||
@sed -i "s|app=.*|app=$(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" 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 \
|
@find . -type f -a \
|
||||||
\( -name '*.go' -o -name 'go.mod' \
|
\( -name '*.go' -o -name 'go.mod' \
|
||||||
-o -name 'go.sum' -o -name '*.proto' \
|
-o -name 'go.sum' -o -name '*.proto' \
|
||||||
@ -87,4 +89,5 @@ rename:
|
|||||||
\) \
|
\) \
|
||||||
-not -path './.git' -not -path './.git/*' \
|
-not -path './.git' -not -path './.git/*' \
|
||||||
-exec sed -i "s|$(GIT_REPO)|$(NAME)|g" {} +
|
-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"
|
||||||
|
Reference in New Issue
Block a user