|
20 | 20 | # 2.22.0-rc1 TAG - release candidate |
21 | 21 | # |
22 | 22 | # |
23 | | -# update mappings.. |
| 23 | +# Update mappings: |
24 | 24 | # cd ~/cppchecksolutions/addon/coverage |
25 | 25 | # CPPCHECK_REPO=~/cppchecksolutions/cppcheck python3 coverage.py --code |
26 | 26 | # |
27 | | -# check every isPremiumEnabled call: TODO write helper script |
| 27 | +# Check every isPremiumEnabled call: TODO write helper script |
28 | 28 | # - every id should be in --errorlist |
29 | 29 | # git grep 'isPremiumEnabled[(]"' | sed 's/.*isPremiumEnabled[(]"//' | sed 's/".*//' | sort | uniq > ids1.txt |
30 | 30 | # ./cppcheck --errorlist | grep ' id="' | sed 's/.* id="//' | sed 's/".*//' | sort | uniq > ids2.txt |
|
37 | 37 | # - ensure latest build was successful |
38 | 38 | # - ensure cfg files etc are included (win_installer/cppcheck.wxs) |
39 | 39 | # |
40 | | -# self check, fix critical issues: |
| 40 | +# Self check, fix critical issues: |
41 | 41 | # make clean && make CXXOPTS=-O2 MATCHCOMPILER=yes -j4 |
42 | 42 | # ./cppcheck -D__CPPCHECK__ -D__GNUC__ -DCHECK_INTERNAL -DHAVE_RULES --std=c++11 --library=cppcheck-lib --library=qt --enable=style --inconclusive --inline-suppr --suppress=bitwiseOnBoolean --suppress=shadowFunction --suppress=useStlAlgorithm --suppress=*:externals/picojson.h --suppress=functionConst --suppress=functionStatic --suppress=normalCheckLevelMaxBranches --xml cli gui/*.cpp lib 2> selfcheck.xml |
43 | 43 | # |
44 | | -# Generate lib/checkers.cpp (TODO the premium checkers should not be statically coded) |
| 44 | +# Generate lib/checkers.cpp: (TODO the premium checkers should not be statically coded) |
45 | 45 | # cd ~/cppchecksolutions/cppcheck && python3 tools/get_checkers.py > lib/checkers.cpp |
46 | 46 | # |
47 | | -# Update copyright year TODO release script |
| 47 | +# Update copyright year TODO release script: |
48 | 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/' |
49 | 49 | # git diff | grep '^diff --git a/' |
50 | 50 | # |
|
53 | 53 | # |
54 | 54 | # Update AUTHORS using output from: |
55 | 55 | # git log --format='%aN' $PREV..HEAD | sort -u > AUTHORS2 && diff -y AUTHORS AUTHORS2 | less |
| 56 | +# include usernames in pr title and commmmit message |
56 | 57 | # |
57 | | -# Update GUI translations |
58 | | -# lupdate gui.pro |
| 58 | +# Update GUI translations: |
| 59 | +# cd ~/cppchecksolutions/cppcheck/gui && lupdate gui.pro |
59 | 60 | # |
60 | | -# Create new release branch |
| 61 | +# Create new release branch: |
61 | 62 | # git checkout -b $BRANCH ; git push -u origin $BRANCH |
62 | 63 | # in fork: |
63 | 64 | # * add upstream: git remote add upstream git@github.com:/cppcheck-opensource//cppcheck.git |
|
80 | 81 | # make dmake && ./dmake --release |
81 | 82 | # git commit -a -m "$VERSION: Updated Makefile" |
82 | 83 | # |
83 | | -# Commit changes |
| 84 | +# Commit changes: |
84 | 85 | # git push |
85 | 86 | # |
86 | 87 | # Ensure that CI is happy |
|
90 | 91 | # git push --tags |
91 | 92 | # |
92 | 93 | # Release |
93 | | -# ======= |
| 94 | +# ======================== |
94 | 95 | # |
95 | 96 | # Remove "-rc1" from versions. Test: git grep "\-rc[0-9]" |
96 | 97 | # |
|
100 | 101 | # git tag $VERSION ; git push --tags |
101 | 102 | # ./createrelease $VERSION |
102 | 103 | # |
103 | | -# copy msi from release-windows, install and test cppcheck |
104 | | -# copy manual from build-manual |
| 104 | +# Copy msi from release-windows, install and test cppcheck |
| 105 | +# Copy manual from build-manual |
105 | 106 | # |
106 | 107 | # Update download link on index.php main page |
107 | 108 | # |
|
112 | 113 | # 3. Create new milestone |
113 | 114 | # 4. Close old milestone |
114 | 115 | # |
115 | | -# write a news |
| 116 | +# Write a news |
116 | 117 | # |
117 | | -# save "cppcheck --doc" output on wiki |
| 118 | +# Save "cppcheck --doc" output on wiki |
118 | 119 | # |
119 | | -# compile new democlient: |
| 120 | +# Compile new democlient: |
120 | 121 | # ssh -t danielmarjamaki,cppcheck@shell.sourceforge.net create |
121 | 122 | # ./build-cppcheck.sh |
122 | 123 | # |
123 | | -# create a ticket with data from http://cppcheck1.osuosl.org:8000/time_gt.html for performance tracking |
| 124 | +# Create a ticket with data from http://cppcheck1.osuosl.org:8000/time_gt.html for performance tracking |
124 | 125 | # (example: https://trac.cppcheck.net/ticket/13715) |
125 | 126 | # - type: defect |
126 | 127 | # - component: Performance |
127 | 128 | # - summary: [meta] performance regressions in $VERSION |
128 | 129 | # |
129 | | -# run daca with new release |
| 130 | +# Run daca with new release: |
130 | 131 | # 1. edit tools/donate-cpu-server.py. Update OLD_VERSION and SERVER_VERSION |
131 | 132 | # 2. scp -i ~/.ssh/osuosl_id_rsa tools/donate-cpu-server.py danielmarjamaki@cppcheck1.osuosl.org:/var/daca@home/ |
132 | 133 | # |
|
137 | 138 | # * git log $PREV..$VERSION > Changelog |
138 | 139 | # * mkdir out && python3 ~/cppchecksolutions/release/getWorkflowAndIssueLogs.py -r /cppcheck-opensource//cppcheck -t $VERSION -p out |
139 | 140 |
|
140 | | -# Folder/tag to use |
| 141 | +# Folder/tag to use: |
141 | 142 | folder=$1 |
142 | 143 | tag=$folder.0 |
143 | 144 |
|
144 | | -# Name of release |
| 145 | +# Name of release: |
145 | 146 | releasename=cppcheck-$tag |
146 | 147 |
|
147 | 148 | set -e |
@@ -173,7 +174,7 @@ scp htdocs/* danielmarjamaki,cppcheck@web.sourceforge.net:htdocs/ |
173 | 174 | cd .. |
174 | 175 | rm -rf upload |
175 | 176 |
|
176 | | -# Local cppcheck binary |
| 177 | +# Local cppcheck binary: |
177 | 178 | mkdir -p ~/.cppcheck/$tag |
178 | 179 | cd ~/.cppcheck/$tag |
179 | 180 | cp -R ~/cppcheck/cfg . |
|
0 commit comments