From 121dc669a697392071226ac26a176f58b2c2b7ee Mon Sep 17 00:00:00 2001 From: taoky Date: Sat, 24 Aug 2024 17:01:39 +0800 Subject: [PATCH] Bump version to 0.20240824.0 --- Cargo.lock | 2 +- Cargo.toml | 2 +- Makefile | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7117305..dfc5245 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2178,7 +2178,7 @@ checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" [[package]] name = "tsumugu" -version = "0.0.1" +version = "0.20240824.0" dependencies = [ "anyhow", "apt-parser", diff --git a/Cargo.toml b/Cargo.toml index d38d07f..3395243 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tsumugu" -version = "0.0.1" +version = "0.20240824.0" edition = "2021" description = "A HTTP(S) syncing tool with lower overhead, for OSS mirrors" diff --git a/Makefile b/Makefile index d7a9d2c..6bac820 100644 --- a/Makefile +++ b/Makefile @@ -9,5 +9,8 @@ release: ifndef version $(error version is not set. Usage: make release version=) endif - cargo set-version $(version) + @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)