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
|
|
|
#
|
2011-02-06 12:52:52 +01:00
|
|
|
# Make sure "cppcheck --errorlist" works. For example with:
|
|
|
|
# make test
|
|
|
|
# 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
|
|
|
#
|
2011-02-06 12:52:52 +01:00
|
|
|
# Update version numbers in:
|
2010-03-07 20:41:04 +01:00
|
|
|
# - lib/cppcheck.cpp
|
|
|
|
# - cli/main.cpp
|
|
|
|
# - cli/cppcheck.rc
|
2010-03-10 17:20:34 +01:00
|
|
|
# - man/manual.docbook
|
2010-03-07 20:41:04 +01:00
|
|
|
# - win_installer/productInfo.wxs
|
2010-03-10 17:20:34 +01:00
|
|
|
#
|
2010-05-08 15:36:11 +02:00
|
|
|
# Update the Changelog..
|
|
|
|
# wget http://josefsson.org/git2cl/git2cl
|
|
|
|
# chmod 744 git2cl
|
|
|
|
# ./git2cl > Changelog
|
2011-02-06 12:52:52 +01:00
|
|
|
# git commit -a -m "1.43: Updated Changelog"
|
2010-05-08 15:36:11 +02:00
|
|
|
#
|
2010-05-08 12:55:42 +02:00
|
|
|
# Update the Makefile:
|
2011-02-06 12:52:52 +01:00
|
|
|
# make dmake
|
2010-05-08 19:07:49 +02:00
|
|
|
# ./dmake --release
|
2011-02-06 12:52:52 +01:00
|
|
|
# git commit -a -m "1.43: Updated Makefile"
|
|
|
|
#
|
|
|
|
# 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
|
|
|
#
|
2011-03-26 20:01:50 +01:00
|
|
|
# Generate the manual.pdf, manual.html and version.txt
|
2010-05-08 15:36:11 +02:00
|
|
|
# make
|
|
|
|
# ./cppcheck --version > version.txt
|
2011-02-06 12:52:52 +01:00
|
|
|
# docbook2pdf man/manual.docbook
|
2011-04-11 06:35:21 +02:00
|
|
|
# xsltproc -o manual.html /usr/share/xml/docbook/stylesheet/nwalsh/xhtml/docbook.xsl man/manual.docbook
|
2010-03-10 17:20:34 +01:00
|
|
|
#
|
2011-04-11 06:35:21 +02:00
|
|
|
# Upload manual.pdf , manual.html and version.txt...
|
2010-05-08 15:36:11 +02:00
|
|
|
# sftp hyd_danmar,cppcheck@web.sourceforge.net
|
2010-12-13 18:22:52 +01:00
|
|
|
#
|
|
|
|
# save "cppcheck --doc" output on wiki
|
2011-10-08 10:16:38 +02:00
|
|
|
#
|
|
|
|
# To upload a file to the release system through scp:
|
|
|
|
# scp readme.txt hyd_danmar,cppcheck@frs.sourceforge.net:/home/frs/project/c/cp/cppcheck/cppcheck/1.51/
|
|
|
|
#
|
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
|
|
|
|
2011-06-21 17:46:16 +02:00
|
|
|
# scp cppcheck-1.49.zip hyd_danmar,cppcheck@frs.sourceforge.net:/home/frs/project/c/cp/cppcheck/cppcheck/1.49/
|
2011-06-18 08:35:47 +02:00
|
|
|
|
2010-03-09 10:41:36 +01:00
|
|
|
|