createrelease updated to use git instead of svn
This commit is contained in:
parent
fe2aee131d
commit
6eabaec692
|
@ -1,21 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# A script exporting current sources from SVN and creating
|
# A script for creating source archives from a GIT tag
|
||||||
# source archives
|
|
||||||
#
|
#
|
||||||
# Exporting is done and archive files created to user's home
|
# Archive files are created in user's home directory.
|
||||||
# directory.
|
|
||||||
|
|
||||||
# Release name and version
|
# Tag to use
|
||||||
releasename=cppcheck-1.29
|
tag=1.30
|
||||||
|
|
||||||
cd
|
# Name of release
|
||||||
|
releasename=cppcheck-$tag
|
||||||
echo "Creating source directory"
|
|
||||||
svn export https://cppcheck.svn.sourceforge.net/svnroot/cppcheck $releasename
|
|
||||||
|
|
||||||
echo "Creating source packages"
|
|
||||||
tar cjvf $releasename.tar.bz2 $releasename
|
|
||||||
tar czvf $releasename.tar.gz $releasename
|
|
||||||
cd $releasename
|
|
||||||
zip -r -9 ../$releasename.zip *
|
|
||||||
|
|
||||||
|
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
|
||||||
|
|
Loading…
Reference in New Issue