Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tarball target #62

Merged
merged 2 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ bin
output
ccr.db
backup
tarball
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## dev

## v 2.0.3.9

配合 doris 2.0.9 版本

### Feature

- 添加选项以启动 pprof server
Expand Down
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -147,3 +147,14 @@ metrics: bin
## todos : Print all todos
todos:
$(V)grep -rnw . -e "TODO" | grep -v '^./pkg/rpc/thrift' | grep -v '^./.git'

.PHONY: tarball
## tarball : Archive files and release ccr-syncer-$(version).tar.xz
tarball: default
$(V)mkdir -p tarball/ccr-syncer-$(tag)/{bin,db,doc,log}
$(V)cp CHANGELOG.md README.md tarball/ccr-syncer-$(tag)/
$(V)cp bin/ccr_syncer tarball/ccr-syncer-$(tag)/bin/
$(V)cp shell/{enable_db_binlog.sh,start_syncer.sh,stop_syncer.sh} tarball/ccr-syncer-$(tag)/bin/
$(V)cp -r doc/* tarball/ccr-syncer-$(tag)/doc/
$(V)cd tarball/ && tar cfJ ccr-syncer-$(tag).tar.xz ccr-syncer-$(tag)
$(V)echo archive: tarball/ccr-syncer-$(tag).tar.xz
Loading