cppcheck/createrelease

24 lines
634 B
Bash
Executable File

#!/bin/bash
# A script for creating source archives from a GIT tag
#
# Archive files are created in user's home directory.
#
# Remember to update version number in:
# - src/main.cpp
# - src/cppcheck.cpp
# - src/cppcheck.rc
# - win_installer/cppcheck.iss
# Tag to use
tag=1.36
# Name of release
releasename=cppcheck-$tag
# 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