Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 39 lines (31 sloc) 0.926 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
#!/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:
# - lib/cppcheck.cpp
# - cli/main.cpp
# - cli/cppcheck.rc
# - win_installer/productInfo.wxs

# Tag to use
tag=$1

# Name of release
releasename=cppcheck-$tag

# wget http://josefsson.org/git2cl/git2cl
echo Update Changelog..
./git2cl > Changelog

echo Update Makefile..
git tag -d $tag
g++ -o dmake tools/dmake.cpp lib/filelister.cpp
./dmake --release
git commit -a -m "Makefile: Set release mode"
git tag $tag

echo 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

echo Restoring repository..
git tag -d $tag
git reset --hard HEAD^1
git pull

Something went wrong with that request. Please try again.