diff --git a/Cargo.lock b/Cargo.lock index dfc5245..b9b57ed 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2178,7 +2178,7 @@ checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" [[package]] name = "tsumugu" -version = "0.20240824.0" +version = "0.20240825.0" dependencies = [ "anyhow", "apt-parser", diff --git a/Cargo.toml b/Cargo.toml index c473513..acb7789 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tsumugu" -version = "0.20240824.0" +version = "0.20240825.0" edition = "2021" description = "A HTTP(S) syncing tool with lower overhead, for OSS mirrors" license-file = "LICENSE" diff --git a/Makefile b/Makefile index 6bac820..6abc19d 100644 --- a/Makefile +++ b/Makefile @@ -7,10 +7,14 @@ check: release: ifndef version - $(error version is not set. Usage: make release version=) + $(error version is not set. Usage: make release version= msg="") +endif +ifndef msg + $(error msg is not set. Usage: make release version= msg="") endif @full_version=$(shell echo $(version) | grep -q '\.' && echo "0.$(version)" || echo "0.$(version).0"); \ echo $$full_version; \ cargo set-version $$full_version; \ git commit -a -m "Bump version to $$full_version" ; \ - git tag $(version) + git tag $(version) -m "$(msg)" + echo "Updated, run `git push --tag` now!" \ No newline at end of file