forked from uncrustify/uncrustify
-
Notifications
You must be signed in to change notification settings - Fork 2
/
release-steps.txt
70 lines (51 loc) · 2.23 KB
/
release-steps.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
2016-10-05
Release steps.
Just in case I don't do a release for a while and forget what to do... =)
1. Make sure CI (continuous integration - Travis and AppVeyor) has passed.
This should ensure all tests pass and building
(including cross-compiling) for Windows works.
2. Update documentation for the release
2a. Update the version number and rebuild (make sure the option CMAKE_BUILD_TYPE is set to Release).
Replace the old version with the new version everywhere except in ChangeLog.
Specific files to update:
ChangeLog
CMakeLists.txt
At line # Generate uncrustify_version.h
documentation/htdocs/index.html
At line <li>Highly configurable
2b. Update the option count in documentation/htdocs/index.html
Use script/count_the_options.sh to count the options.
2c. Update the config files
$ scripts/update-defaults.sh
2d. Update the man file, if any command-line options have changed.
2e. Update the ChangeLog to indicate the release date
2f. (optional) Generate a commit.log
$ git log > commit.log
3. Make sure there are no modified files in the workspace.
Check in all the changes you just made.
$ git commit <all the files created above>
$ git push
4. Create a GIT tag and push it
$ git tag -a uncrustify-0.nn -m uncrustify-0.nn
$ git push --tags
5. The source tarball is available from the release on GitHub, or use
$ git archive -o uncrustify-0.nn.tar.gz uncrustify-0.nn
6. Build for windows via mingw (save the zip file)
Make sure the compiler mingw-w64 is installed.
$ mkdir buildwin-32
$ cd buildwin-32
$ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-mingw32.cmake -DCMAKE_EXE_LINKER_FLAGS="-static -s" ..
$ make
$ cpack
$ mkdir buildwin-64
$ cd buildwin-64
$ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-mingw64.cmake -DCMAKE_EXE_LINKER_FLAGS="-static -s" ..
$ make
$ cpack
7. Update the web page files
$ cd uncrustify-$UNC_REL/
$ scp -r documentation/htdocs/* ChangeLog USER,uncrustify@web.sourceforge.net:htdocs/
8. Use the web interface (file manager) to create the release folder and
upload the files to sourceforge.
9. (optional) Create a news item
10. (optional) Update freshmeat.net project