2009-02-02 20:21:58 +01:00
|
|
|
#!/bin/bash
|
2009-03-03 16:27:18 +01:00
|
|
|
# A script exporting current sources from SVN and creating
|
|
|
|
# source archives
|
|
|
|
#
|
|
|
|
# Exporting is done and archive files created to user's home
|
|
|
|
# directory.
|
|
|
|
|
|
|
|
# Release name and version
|
|
|
|
releasename=cppcheck-1.29
|
2009-02-02 20:21:58 +01:00
|
|
|
|
|
|
|
cd
|
|
|
|
|
|
|
|
echo "Creating source directory"
|
2009-03-03 16:27:18 +01:00
|
|
|
svn co https://cppcheck.svn.sourceforge.net/svnroot/cppcheck $releasename
|
|
|
|
rm -R --force $releasename/.svn
|
|
|
|
rm -R --force $releasename/gui
|
|
|
|
rm -R --force $releasename/man/.svn
|
|
|
|
rm -R --force $releasename/src/.svn
|
|
|
|
rm -R --force $releasename/test/.svn
|
|
|
|
rm -R --force $releasename/tools/.svn
|
|
|
|
rm -R --force $releasename/win_installer/.svn
|
2009-02-02 20:21:58 +01:00
|
|
|
|
|
|
|
echo "Creating source packages"
|
2009-03-03 16:27:18 +01:00
|
|
|
tar cjvf $releasename.tar.bz2 $releasename
|
|
|
|
tar czvf $releasename.tar.gz $releasename
|
|
|
|
cd $releasename
|
|
|
|
zip -r -9 ../$releasename.zip *
|
2009-02-02 20:21:58 +01:00
|
|
|
|