cppcheck/createrelease

25 lines
660 B
Plaintext
Raw Normal View History

2009-02-02 20:21:58 +01:00
#!/bin/bash
# A script for creating source archives from a GIT tag
#
# Archive files are created in user's home directory.
2009-08-16 15:57:16 +02:00
#
# Remember to update version number in:
# - src/main.cpp
# - src/cppcheck.cpp
# - src/cppcheck.rc
2009-10-25 08:41:27 +01:00
# - win_installer/cppcheck.wxs
# - win_installer/gui.wxs
# Tag to use
tag=1.41
2009-02-02 20:21:58 +01:00
# Name of release
releasename=cppcheck-$tag
2009-02-02 20:21:58 +01:00
2009-08-16 15:57:16 +02:00
# wget http://josefsson.org/git2cl/git2cl
./git2cl > ChangeLog
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