Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 84 lines (79 sloc) 2.393 kb
d5e0a9d added createrelease script
Daniel Marjamäki authored
1 #!/bin/bash
4981cc5 @danmar Fixed #1489 (Makefile creates debug version)
authored
2 #
e9d14b2 @danmar createrelease: updated the instructions
authored
3 # A script for creating release packages. The release packages are create in the home directory.
f8ddf7f @kimmov Use variable for relase folder and version in release script.
kimmov authored
4 #
5eb8ab7 @danmar Fixed #3401 (Run cppcheck on cppcheck source code before release)
authored
5 # Test cppcheck on itself.
ee67dc1 @danmar createrelease: minor update to notes
authored
6 # cppcheck -q -j2 --inconclusive --enable=all lib
5eb8ab7 @danmar Fixed #3401 (Run cppcheck on cppcheck source code before release)
authored
7 #
56cd86d @danmar createrelease: updates
authored
8 # Update translations
9 # lupdate gui.pro
10 #
e9d14b2 @danmar createrelease: updated the instructions
authored
11 # Make sure "cppcheck --errorlist" works. For example with:
12 # make test
13 # cppcheck --errorlist > errlist.xml
14 # xmllint --noout errlist.xml
15 # cppcheck --xml-version=2 --errorlist > errlist.xml
16 # xmllint --noout errlist.xml
fb85ee5 @aggro80 Update version number to 1.35
aggro80 authored
17 #
050a25f @danmar createrelease: update AUTHORS
authored
18 # Update AUTHORS using output from:
56cd86d @danmar createrelease: updates
authored
19 # git log --format='%aN' | sort -u > AUTHORS2
20 # diff -y AUTHORS AUTHORS2 | less
050a25f @danmar createrelease: update AUTHORS
authored
21 #
e9d14b2 @danmar createrelease: updated the instructions
authored
22 # Update version numbers in:
6477acb @danmar createrelease: updated instructions
authored
23 # sed -i "s/1.[0-9][0-9].99/1.62/" cli/main.cpp
56cd86d @danmar createrelease: updates
authored
24 # sed -i "s/MINOR [0-9][0-9]/MINOR 62/" lib/version.h
6477acb @danmar createrelease: updated instructions
authored
25 # sed -i "s/1.[0-9][0-9] dev/1.62/" man/manual.docbook
26 # sed -i "s/1.[0-9][0-9] dev/1.62/" win_installer/productInfo.wxi
6a2f326 @danmar createrelease: small update
authored
27 # sed -i "s/1.[0-9][0-9].99/1.62/" win_installer/productInfo.wxi
6477acb @danmar createrelease: updated instructions
authored
28 # Verify:
29 # grep '\.99' */*.[ch]*
30 # grep '[0-9][0-9] dev' */*.[ch]*
31 # git commit -a -m "1.43: Set versions"
314a184 @danmar Changelog: Updated for release
authored
32 #
01fb57b @danmar createrelease: mention that the Makefile should be updated
authored
33 # Update the Makefile:
e9d14b2 @danmar createrelease: updated the instructions
authored
34 # make dmake
4ec590c @danmar createrelease: more details about dmake
authored
35 # ./dmake --release
e9d14b2 @danmar createrelease: updated the instructions
authored
36 # git commit -a -m "1.43: Updated Makefile"
37 #
34fa951 @danmar createrelease: added a few notes
authored
38 # Build and test the windows installer
39 #
e9d14b2 @danmar createrelease: updated the instructions
authored
40 # Tag:
41 # git tag 1.43
42 # git push --tags
314a184 @danmar Changelog: Updated for release
authored
43 #
44 # Create release:
45 # ./createrelease 1.43
46 #
47 # Restore the Makefile:
48 # ./dmake
49 # git commit -a -m "Makefile: Set debug mode"
01fb57b @danmar createrelease: mention that the Makefile should be updated
authored
50 #
bedc975 @danmar createrelease: added more tasks
authored
51 # Update download link on index.php main page
52 #
2cfb6d9 @danmar createrelease: generate manual.html. ticket: #2687
authored
53 # Generate the manual.pdf, manual.html and version.txt
314a184 @danmar Changelog: Updated for release
authored
54 # make
55 # ./cppcheck --version > version.txt
e9d14b2 @danmar createrelease: updated the instructions
authored
56 # docbook2pdf man/manual.docbook
2b2f9f7 @danmar createrelease: minor updates
authored
57 # xsltproc -o manual.html /usr/share/xml/docbook/stylesheet/nwalsh/xhtml/docbook.xsl man/manual.docbook
4981cc5 @danmar Fixed #1489 (Makefile creates debug version)
authored
58 #
2b2f9f7 @danmar createrelease: minor updates
authored
59 # Upload manual.pdf , manual.html and version.txt...
cb78067 @danmar createrelease: updated release notes
authored
60 # sftp danielmarjamaki,cppcheck@web.sourceforge.net
60554bd @danmar createrelease: Added comment to test 'cppcheck --errorlist'. Ticket: …
authored
61 #
56cd86d @danmar createrelease: updates
authored
62 # write a news
63 #
64 # save "cppcheck --doc" output on wiki, write new release date on wikis
4424a7a @danmar createrelease: added info about how scp is used to upload files to re…
authored
65 #
cb78067 @danmar createrelease: updated release notes
authored
66 # compile new democlient:
67 # ssh -t danielmarjamaki,cppcheck@shell.sourceforge.net
f4591e2 @danmar createrelease: updated build command for democlient
authored
68 # ./build-cppcheck.sh 1.43
bedc975 @danmar createrelease: added more tasks
authored
69 #
70 # run daca with new release
f8ddf7f @kimmov Use variable for relase folder and version in release script.
kimmov authored
71
6eabaec createrelease updated to use git instead of svn
Daniel Marjamäki authored
72 # Tag to use
ae8059d @danmar createrelease: set release mode for Makefile
authored
73 tag=$1
d5e0a9d added createrelease script
Daniel Marjamäki authored
74
6eabaec createrelease updated to use git instead of svn
Daniel Marjamäki authored
75 # Name of release
76 releasename=cppcheck-$tag
d5e0a9d added createrelease script
Daniel Marjamäki authored
77
4981cc5 @danmar Fixed #1489 (Makefile creates debug version)
authored
78 # Create archives..
6eabaec createrelease updated to use git instead of svn
Daniel Marjamäki authored
79 git archive --format=tar --prefix=$releasename/ $tag | gzip > ~/$releasename.tar.gz
80 git archive --format=tar --prefix=$releasename/ $tag | bzip2 > ~/$releasename.tar.bz2
81 git archive --format=zip -9 --prefix=$releasename/ $tag > ~/$releasename.zip
ae8059d @danmar createrelease: set release mode for Makefile
authored
82
cb78067 @danmar createrelease: updated release notes
authored
83 scp ../$releasename.* danielmarjamaki,cppcheck@frs.sourceforge.net:/home/frs/project/c/cp/cppcheck/cppcheck/$tag/
Something went wrong with that request. Please try again.