Version 1, last updated by David Bernard at December 15, 2011 08:15 UTC

To release a milestone, releaser need to commit change into the "milestones" branch. (the process is based on the git flow) To do only one commit on the milestones branch, releaser use a temporary branch to setup version meta-data, and the --no-ff option to merge.

The following instruction release the milestone 1.0.0.M1 from the branch wip_exp_backport

cd <scala-ide>
git checkout -b v1.0.0.M1 wip_exp_backport
cd org.scala-ide.build
echo "MILESTONE=-M1" >> env.sh
git commit -a -m "set version to 1.0.0.YYYYMMDDhhmm-M1"

# make a build to be sure is buildable (and with the commit before, so about.ini includes its message)
./build-ide-local-2.8.1.final.sh
# make archive (begin) optional
cd ../org.scala-ide.sdt.update-site/target
mv site v1.0.0.M1
tar -czvf v1.0.0.M1.tar.gz v1.0.0.M1 
mv v1.0.0.M1.tar.gz ../../../releases
cd -

# update the "milestones" branch
git checkout milestones
git merge --no-ff v1.0.0.M1
git tag v1.0.0.M1
git push origin milestones

# remove/unname temporary branch
git branch -d v1.0.0.M1 

# restore working branch
git checkout wip_exp_backport