diff options
author | Wengier <wengierwu@yahoo.com> | 2022-09-27 04:43:06 +0300 |
---|---|---|
committer | kcgen <1557255+kcgen@users.noreply.github.com> | 2022-09-27 07:30:18 +0300 |
commit | 3cb5dc4062962e4d8a056ae52fbaa2b2d5fab440 (patch) | |
tree | a937bfabd5ad08c913a972fd2bfed52a73fb3da9 /scripts | |
parent | 78ff04630f92ef93a5d3508916cf49cf77026335 (diff) |
Describes release/x branch as release
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/create-package.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/create-package.sh b/scripts/create-package.sh index 74f31df37..b0ed7d3ab 100755 --- a/scripts/create-package.sh +++ b/scripts/create-package.sh @@ -77,6 +77,9 @@ install_doc() if [[ "$git_branch" == "refs/tags/"* ]] && [[ "$git_branch" != *"-"* ]]; then version_tag=`echo $git_branch | awk '{print substr($0,11);exit}'` package_information="release $version_tag" + elif [[ "$git_branch" == "release/"* ]]; then + version_tag=`git describe --tags | cut -f1 -d"-"` + packageinfo="release $version_tag" elif [ -n "$git_branch" ] && [ -n "$git_commit" ]; then package_information="a development branch named $git_branch with commit $git_commit" else |