cppcheck/createrelease

56 lines
1.3 KiB
Plaintext
Raw Normal View History

2009-02-02 20:21:58 +01:00
#!/bin/bash
# A script for tagging and releasing.
#
# A tag will be created with the given name.
#
# Archive files are created in user's home directory.
2009-08-16 15:57:16 +02:00
#
# Before running this script, remember to update version number in:
2010-03-07 20:41:04 +01:00
# - lib/cppcheck.cpp
# - cli/main.cpp
# - cli/cppcheck.rc
# - man/manual.docbook
2010-03-07 20:41:04 +01:00
# - win_installer/productInfo.wxs
#
2010-05-08 15:36:11 +02:00
# Update the Changelog..
# wget http://josefsson.org/git2cl/git2cl
# chmod 744 git2cl
# ./git2cl > Changelog
# git commit -a -m "Changelog: Updated for release"
#
# Update the Makefile:
# g++ -o dmake tools/dmake.cpp lib/filelister*.cpp
# ./dmake --release
2010-05-08 15:36:11 +02:00
# git commit -a -m "Makefile: Set release mode"
#
# Create release:
# ./createrelease 1.43
#
# Restore the Makefile:
# ./dmake
# git commit -a -m "Makefile: Set debug mode"
#
2010-05-08 15:36:11 +02:00
# Generate the manual.pdf and version.txt
# make
# ./cppcheck --version > version.txt
# docbook2pdf man/manual.pdf
#
2010-05-08 15:36:11 +02:00
# Upload manual.pdf and version.txt...
# sftp hyd_danmar,cppcheck@web.sourceforge.net
# Tag to use
tag=$1
2009-02-02 20:21:58 +01:00
# Name of release
releasename=cppcheck-$tag
2009-02-02 20:21:58 +01:00
# Tagging..
git tag $tag
# Create archives..
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