2009-02-02 20:21:58 +01:00
|
|
|
#!/bin/bash
|
2010-03-10 17:20:34 +01:00
|
|
|
#
|
2011-02-06 12:52:52 +01:00
|
|
|
# A script for creating release packages. The release packages are create in the home directory.
|
2009-03-03 16:27:18 +01:00
|
|
|
#
|
2016-08-07 16:52:40 +02:00
|
|
|
# self check:
|
2017-04-01 09:49:32 +02:00
|
|
|
# ./cppcheck --enable=style --inconclusive --suppress=bitwiseOnBoolean cli gui/*.cpp lib
|
2016-08-07 16:52:40 +02:00
|
|
|
#
|
2015-01-03 17:31:52 +01:00
|
|
|
# Update translations
|
|
|
|
# lupdate gui.pro
|
|
|
|
#
|
2011-02-06 12:52:52 +01:00
|
|
|
# Make sure "cppcheck --errorlist" works. For example with:
|
|
|
|
# make test
|
2016-01-09 15:37:10 +01:00
|
|
|
# ./cppcheck --errorlist > errlist.xml && xmllint --noout errlist.xml
|
|
|
|
# ./cppcheck --xml-version=2 --errorlist > errlist.xml && xmllint --noout errlist.xml
|
2009-08-16 15:57:16 +02:00
|
|
|
#
|
2013-06-18 06:47:15 +02:00
|
|
|
# Update AUTHORS using output from:
|
2017-10-07 12:55:36 +02:00
|
|
|
# git log --format='%aN' 1.81..HEAD | sort -u > AUTHORS2 && diff -y AUTHORS AUTHORS2 | less
|
2013-06-18 06:47:15 +02:00
|
|
|
#
|
2011-02-06 12:52:52 +01:00
|
|
|
# Update version numbers in:
|
2017-10-07 12:56:29 +02:00
|
|
|
# sed -i "s/1.[0-9][0-9].99/1.81/" cli/main.cpp
|
|
|
|
# sed -i "s/1.[0-9][0-9].99/1.81/" cmake/versions.cmake
|
|
|
|
# sed -i "s/MINOR [0-9][0-9]/MINOR 81/" lib/version.h
|
|
|
|
# sed -i "s/1.[0-9][0-9] dev/1.81/" man/manual.docbook
|
|
|
|
# sed -i "s/1.[0-9][0-9] dev/1.81/" win_installer/productInfo.wxi
|
|
|
|
# sed -i "s/1.[0-9][0-9].99/1.81/" win_installer/productInfo.wxi
|
2013-10-12 12:44:43 +02:00
|
|
|
# Verify:
|
2016-01-09 15:37:10 +01:00
|
|
|
# grep '\.99' */*.[ch]* && grep '[0-9][0-9] dev' */*.[ch]*
|
2013-10-12 12:44:43 +02:00
|
|
|
# git commit -a -m "1.43: Set versions"
|
2010-05-08 15:36:11 +02:00
|
|
|
#
|
2010-05-08 12:55:42 +02:00
|
|
|
# Update the Makefile:
|
2016-01-09 15:37:10 +01:00
|
|
|
# make dmake && ./dmake --release
|
2011-02-06 12:52:52 +01:00
|
|
|
# git commit -a -m "1.43: Updated Makefile"
|
|
|
|
#
|
2012-07-02 06:44:30 +02:00
|
|
|
# Build and test the windows installer
|
|
|
|
#
|
2011-02-06 12:52:52 +01:00
|
|
|
# Tag:
|
|
|
|
# git tag 1.43
|
|
|
|
# git push --tags
|
2010-05-08 15:36:11 +02:00
|
|
|
#
|
|
|
|
# Create release:
|
|
|
|
# ./createrelease 1.43
|
|
|
|
#
|
|
|
|
# Restore the Makefile:
|
|
|
|
# ./dmake
|
|
|
|
# git commit -a -m "Makefile: Set debug mode"
|
2010-05-08 12:55:42 +02:00
|
|
|
#
|
2014-08-02 14:05:54 +02:00
|
|
|
# Update download link on index.php main page
|
|
|
|
#
|
2010-12-13 18:22:52 +01:00
|
|
|
#
|
2015-01-03 17:31:52 +01:00
|
|
|
# write a news
|
|
|
|
#
|
|
|
|
# save "cppcheck --doc" output on wiki, write new release date on wikis
|
2011-10-08 10:16:38 +02:00
|
|
|
#
|
2012-09-01 18:11:09 +02:00
|
|
|
# compile new democlient:
|
2016-08-07 16:52:40 +02:00
|
|
|
# ssh -t danielmarjamaki,cppcheck@shell.sourceforge.net create
|
2014-08-02 15:04:17 +02:00
|
|
|
# ./build-cppcheck.sh 1.43
|
2014-08-02 14:05:54 +02:00
|
|
|
#
|
|
|
|
# run daca with new release
|
2009-03-03 16:27:18 +01:00
|
|
|
|
2009-03-07 13:21:02 +01:00
|
|
|
# Tag to use
|
2010-03-09 10:41:36 +01:00
|
|
|
tag=$1
|
2009-02-02 20:21:58 +01:00
|
|
|
|
2009-03-07 13:21:02 +01:00
|
|
|
# Name of release
|
|
|
|
releasename=cppcheck-$tag
|
2009-02-02 20:21:58 +01:00
|
|
|
|
2010-03-10 17:20:34 +01:00
|
|
|
# Create archives..
|
2009-03-07 13:21:02 +01:00
|
|
|
git archive --format=tar --prefix=$releasename/ $tag | gzip > ~/$releasename.tar.gz
|
|
|
|
git archive --format=tar --prefix=$releasename/ $tag | bzip2 > ~/$releasename.tar.bz2
|
|
|
|
git archive --format=zip -9 --prefix=$releasename/ $tag > ~/$releasename.zip
|
2010-03-09 10:41:36 +01:00
|
|
|
|
2016-08-06 18:58:12 +02:00
|
|
|
scp ~/$releasename.* danielmarjamaki,cppcheck@frs.sourceforge.net:/home/frs/project/c/cp/cppcheck/cppcheck/$tag/
|
|
|
|
|
|
|
|
# Generate the manual.pdf, manual.html and version.txt
|
2016-12-31 18:44:21 +01:00
|
|
|
make clean && make
|
2016-08-06 18:58:12 +02:00
|
|
|
./cppcheck --version > version.txt
|
|
|
|
scp version.txt danielmarjamaki,cppcheck@web.sourceforge.net:htdocs/
|
2016-12-31 19:31:34 +01:00
|
|
|
xsltproc -xinclude -o manual.fo /usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl man/manual.docbook
|
|
|
|
fop manual.fo -pdf manual.pdf
|
|
|
|
#docbook2pdf man/manual.docbook
|
2016-08-06 18:58:12 +02:00
|
|
|
scp manual.pdf danielmarjamaki,cppcheck@web.sourceforge.net:htdocs/
|
|
|
|
xsltproc -o manual.html /usr/share/xml/docbook/stylesheet/nwalsh/xhtml/docbook.xsl man/manual.docbook
|
|
|
|
scp manual.html danielmarjamaki,cppcheck@web.sourceforge.net:htdocs/
|