Skip to content

Commit 967bfcd

Browse files
author
William Jakobsson
committed
Versioning
1 parent 2285c1d commit 967bfcd

1 file changed

Lines changed: 30 additions & 19 deletions

File tree

createrelease

Lines changed: 30 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,17 @@
88
# Review trac roadmap, are tickets closed properly?
99
# Only tickets that should be retargeted should be open.
1010
#
11-
# update cppcheck used in premium addon CI
12-
# create jira issue "CI: update cppcheck binary"
13-
# cd ~/cppchecksolutions/addon/tools && python3 ci-update-cppcheck.py
11+
# Versioning scheme
12+
# ========================
13+
# VERSION=2.22.0 # the new release tag created
14+
# PREV=2.21.0 # the previous release
15+
# BRANCH=2.22.x # release branch
16+
#
17+
# 2.22.x BRANCH - release branch
18+
# 2.22.0 TAG - the release
19+
# 2.22.1, ... TAG - patch releases
20+
# 2.22.0-rc1 TAG - release candidate
21+
#
1422
#
1523
# update mappings..
1624
# cd ~/cppchecksolutions/addon/coverage
@@ -37,45 +45,48 @@
3745
# cd ~/cppchecksolutions/cppcheck && python3 tools/get_checkers.py > lib/checkers.cpp
3846
#
3947
# Update copyright year TODO release script
40-
# git diff 2.8 -- */*.cpp */*.h | grep '^diff --git a/' | sed 's|.* b/||' | xargs sed -i 's/Copyright (C) 2007-20[12]./Copyright (C) 2007-2022/'
48+
# git diff $PREV -- */*.cpp */*.h | grep '^diff --git a/' | sed 's|.* b/||' | xargs sed -i 's/Copyright (C) 2007-20[12]./Copyright (C) 2007-2022/'
4149
# git diff | grep '^diff --git a/'
4250
#
4351
# Make sure "cppcheck --errorlist" works:
4452
# make clean && make -j4 && ./cppcheck --errorlist > errlist.xml && xmllint --noout errlist.xml
4553
#
4654
# Update AUTHORS using output from:
47-
# git log --format='%aN' 2.7..HEAD | sort -u > AUTHORS2 && diff -y AUTHORS AUTHORS2 | less
55+
# git log --format='%aN' $PREV..HEAD | sort -u > AUTHORS2 && diff -y AUTHORS AUTHORS2 | less
4856
#
4957
# Update GUI translations
5058
# lupdate gui.pro
5159
#
52-
# Create 2.18.x branch
53-
# git checkout -b 2.18.x ; git push -u origin 2.18.x
60+
# Create new release branch
61+
# git checkout -b $BRANCH ; git push -u origin $BRANCH
5462
# in fork:
5563
# * add upstream: git remote add upstream git@github.com:/cppcheck-opensource//cppcheck.git
56-
# * add branch: git fetch upstream 2.19.x
64+
# * add branch: git fetch upstream $BRANCH
5765
#
5866
# Release notes:
5967
# - ensure safety critical issues are listed properly
6068
# - empty the releasenotes.txt in main branch
6169
#
6270
# Update version numbers in:
63-
# python3 tools/release-set-version.py 2.19.0
71+
# python3 tools/release-set-version.py $VERSION
6472
# Verify:
6573
# grep '\.99' */*.[ch]* && grep '[0-9][0-9] dev' */*.[ch]*
6674
# egrep "2\.[0-9]+" */*.h */*.cpp man/*.md | grep -v "test/test" | less
67-
# git commit -a -m "2.8: Set versions"
75+
# git commit -a -m "$VERSION: Set versions"
6876
#
6977
# Build and test the windows installer
7078
#
7179
# Update the Makefile:
7280
# make dmake && ./dmake --release
73-
# git commit -a -m "2.8: Updated Makefile"
81+
# git commit -a -m "$VERSION: Updated Makefile"
82+
#
83+
# Commit changes
84+
# git push
7485
#
7586
# Ensure that CI is happy
7687
#
7788
# Tag:
78-
# git tag 2.8-rc1
89+
# git tag $VERSION-rc1
7990
# git push --tags
8091
#
8192
# Release
@@ -86,17 +97,17 @@
8697
# Create a release folder on sourceforge:
8798
# https://sourceforge.net/projects/cppcheck/files/cppcheck/
8899
#
89-
# git tag 2.8 ; git push --tags
90-
# ./createrelease 2.8
100+
# git tag $VERSION ; git push --tags
101+
# ./createrelease $VERSION
91102
#
92103
# copy msi from release-windows, install and test cppcheck
93104
# copy manual from build-manual
94105
#
95106
# Update download link on index.php main page
96107
#
97108
# Trac:
98-
# 1. Create ticket "2.18 safety cosmetic changes"
99-
# git log --format=oneline 2.17.0..HEAD | egrep -v "^[0-9a-f]*[ ][ ]*([Ff]ix|fixed|Fixup|Fixes|refs)?[ ]*#*[0-9]+"
109+
# 1. Create ticket "$VERSION safety cosmetic changes"
110+
# git log --format=oneline $PREV..HEAD | egrep -v "^[0-9a-f]*[ ][ ]*([Ff]ix|fixed|Fixup|Fixes|refs)?[ ]*#*[0-9]+"
100111
# 2. Check priorities for all tickets in milestone. Should be: safety-*
101112
# 3. Create new milestone
102113
# 4. Close old milestone
@@ -113,7 +124,7 @@
113124
# (example: https://trac.cppcheck.net/ticket/13715)
114125
# - type: defect
115126
# - component: Performance
116-
# - summary: [meta] performance regressions in 2.x
127+
# - summary: [meta] performance regressions in $VERSION
117128
#
118129
# run daca with new release
119130
# 1. edit tools/donate-cpu-server.py. Update OLD_VERSION and SERVER_VERSION
@@ -123,8 +134,8 @@
123134
# * trac: cd /var && nice tar -cJf ~/trac.tar.xz trac-cppcheck/db/trac.db
124135
# * daca: cd /var && nice tar -cJf ~/daca.tar.xz daca@home
125136
# * git: git checkout -f && git checkout main && git pull && tar -cJf git.tar.xz .git
126-
# * git log 2.16.0..2.17.0 > Changelog
127-
# * mkdir out && python3 ~/cppchecksolutions/release/getWorkflowAndIssueLogs.py -r /cppcheck-opensource//cppcheck -t 2.15.0 -p out
137+
# * git log $PREV..$VERSION > Changelog
138+
# * mkdir out && python3 ~/cppchecksolutions/release/getWorkflowAndIssueLogs.py -r /cppcheck-opensource//cppcheck -t $VERSION -p out
128139

129140
# Folder/tag to use
130141
folder=$1

0 commit comments

Comments
 (0)