Create branches, add version labels and tag the release in git
git branch 0_1
git push origin 0_1
git checkout 0_1
sed -r -i 's/GIT: 0.1-dev/RELEASE: 0.1/g' *
git commit -a -m "create release 0.1"
git tag RELEASE_0_1
git push origin RELEASE_0_1
Generate code documentation
cd scripts
./generate_docs
cd ..
Create release files
cd ..
tar -jcpv --exclude=.git --exclude=build.xml -f formaid-0.1.tar.bz2 formaid/
tar -zcpv --exclude=.git --exclude=build.xml -f formaid-0.1.tar.gz formaid/
zip -r formaid-0.1.zip formaid -x "formaid/build.xml" -x "formaid/.git/*"
Update version labels in master branch
cd formaid
git checkout master
sed -r -i 's/GIT: 0.1-dev/GIT: 0.2-dev/g' *
git commit -a -m "start working on version 0.2"
git push