From 4d8fafe029380af09f1bdf7b88b4c134ee5ea81b Mon Sep 17 00:00:00 2001 From: "Xinwei Xiong(cubxxw-openim)" <3293172751nss@gmail.com> Date: Tue, 4 Jul 2023 14:26:24 +0800 Subject: [PATCH] feat: add release Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com> --- Makefile | 5 +++++ scripts/coverage.sh | 2 -- scripts/ensure_tag.sh | 1 + scripts/lib/version.sh | 1 - scripts/make-rules/release.mk | 4 ++-- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 8e697535e..c210edbe3 100644 --- a/Makefile +++ b/Makefile @@ -158,6 +158,11 @@ verify-copyright: add-copyright: @$(MAKE) copyright.add +## release: release the project +.PHONY: release +release: release.verify release.ensure-tag + @scripts/release.sh + ## help: Show this help info. .PHONY: help help: Makefile diff --git a/scripts/coverage.sh b/scripts/coverage.sh index d4605ee3f..fbb2b36fc 100755 --- a/scripts/coverage.sh +++ b/scripts/coverage.sh @@ -13,7 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. - # http://stackoverflow.com/a/21142256/2055281 echo "mode: atomic" > coverage.txt @@ -27,4 +26,3 @@ for d in $(find ./* -maxdepth 10 -type d); do fi fi done - diff --git a/scripts/ensure_tag.sh b/scripts/ensure_tag.sh index 2da3c404f..c6fea7ca0 100755 --- a/scripts/ensure_tag.sh +++ b/scripts/ensure_tag.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash + # Copyright © 2023 OpenIM. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/scripts/lib/version.sh b/scripts/lib/version.sh index 9e3e055fd..65f9bb353 100755 --- a/scripts/lib/version.sh +++ b/scripts/lib/version.sh @@ -96,7 +96,6 @@ openim::version::get_version_vars() { : fi - # Try to match the "git describe" output to a regex to try to extract # the "major" and "minor" versions and whether this is the exact tagged # version or whether the tree is between two tagged versions. diff --git a/scripts/make-rules/release.mk b/scripts/make-rules/release.mk index 06b7b7e47..f3fd3d5f3 100644 --- a/scripts/make-rules/release.mk +++ b/scripts/make-rules/release.mk @@ -17,7 +17,7 @@ # Versions are used after merging # -## release: release the project +## release.run: release the project .PHONY: release.run release.run: release.verify release.ensure-tag @scripts/release.sh @@ -39,4 +39,4 @@ release.ensure-tag: tools.verify.gsemver ## release.help: Display help information about the release package .PHONY: release.help release.help: scripts/make-rules/release.mk - $(call smallhelp) \ No newline at end of file + $(call smallhelp)