提交 e4406507 编写于 作者: O openeuler-ci-bot 提交者: Gitee

!22 Release 2.0.3

Merge pull request !22 from lifeng_isula/master
......@@ -3,7 +3,7 @@ project (clibcni)
option(VERSION "set clibcni version" ON)
if (VERSION STREQUAL "ON")
set(CLIBCNI_VERSION "2.0.2")
set(CLIBCNI_VERSION "2.0.3")
endif()
option(DEBUG "set clibcni gcc option" ON)
......
%global _version 2.0.2
%global _release 20200803.124729.git693f2545
%global _version 2.0.3
%global _release 20200810.103143.git92ab6d8f
Name: clibcni
Version: %{_version}
Release: %{_release}
......
2020-08-10 lifeng release 2.0.3
- !21 clibcni debug package Merge pull request !21 from YoungJQ/master
- !20 support all third party plugins of cni Merge pull request !20 from haozi007/change
dev stats:
- 4 files changed, 41 insertions(+), 8 deletions(-)
- contributors: YoungJQ, haozi007
......@@ -16,6 +16,28 @@
#
# usage
# ./update-version.bash
function update_release_notes()
{
LAST_RELEASE=$(git describe --tags --abbrev=0)
# Prepare proposed delease notes
rm -f release_notes.tmp
echo "$(date "+%Y-%m-%d") $USER release $1" >> release_notes.tmp
git log --first-parent --oneline $LAST_RELEASE.. | cut -d' ' -f 2- | sed 's/^/ - /' >> release_notes.tmp
echo >> release_notes.tmp
echo " dev stats:" >> release_notes.tmp
echo " -$(git diff --shortstat $LAST_RELEASE)" >> release_notes.tmp
echo -n " - contributors: " >> release_notes.tmp
git shortlog -ns --no-merges $LAST_RELEASE..HEAD | cut -d$'\t' -f 2 | sed -e ':a' -e 'N' -e '$!ba' -e 's/\n/, /g' >> release_notes.tmp
echo "#" >> release_notes.tmp
echo "#" >> release_notes.tmp
echo "#" >> release_notes.tmp
echo >> release_notes.tmp
cat release_notes >> release_notes.tmp
grep -v '^#' release_notes.tmp | sed '/./,$!d' > release_notes
rm -rf release_notes.tmp
}
topDir=$(git rev-parse --show-toplevel)
specfile="${topDir}/clibcni.spec"
CMakefile="${topDir}/CMakeLists.txt"
......@@ -42,6 +64,10 @@ fi
new_version=${first_old_version}.${second_old_version}.${third_old_version}
if [[ ${choice} -ne "d" ]]; then
update_release_notes "$new_version"
fi
echo "The version number has been modified: ${old_version} => ${new_version}"
old_release=$(cat ${specfile} | grep "%global" | grep "_release" | awk {'print $3'})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册