improve rename
This commit is contained in:
2
Makefile
2
Makefile
@ -81,6 +81,7 @@ rename:
|
||||
@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
|
||||
@rm contrib/$(CMD_NAME).swagger.json
|
||||
@find . -type f -a \
|
||||
\( -name '*.go' -o -name 'go.mod' \
|
||||
-o -name 'go.sum' -o -name '*.proto' \
|
||||
@ -91,3 +92,4 @@ rename:
|
||||
-exec sed -i "s|$(GIT_REPO)|$(NAME)|g" {} +
|
||||
@echo "\n* Project renamed to $(NAME)"
|
||||
@echo "* NOTE: You will have to update .gitea/workflows/ci.yml"
|
||||
@echo "* NOTE: You will have to run buf generate"
|
||||
|
Reference in New Issue
Block a user