improve rename

This commit is contained in:
2025-07-20 12:03:59 -04:00
parent 8fc97ec058
commit 97c50966f1

View File

@ -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"