ITK/How to make a Release: Difference between revisions

From KitwarePublic
< ITK
Jump to navigationJump to search
Line 71: Line 71:


=== CVS Exporting ===
=== CVS Exporting ===
==== CVS login as anonymous ====


Create an empty directory, the use the CVS command for login
Create an empty directory, the use the CVS command for login
Line 77: Line 79:


use "insight" as password
use "insight" as password
==== CVS exporting Insight ====


Then use the export CVS command with the tag of that release
Then use the export CVS command with the tag of that release
Line 84: Line 88:
* the option -r defines the tag to be used for exporting
* the option -r defines the tag to be used for exporting
* the option -d creates a directory with a particular name. This directory name should match the number of the release
* the option -d creates a directory with a particular name. This directory name should match the number of the release
==== CVS exporting InsightApplications ====


Export also InsightApplications with the command
Export also InsightApplications with the command


   cvs -d :pserver:anonymous@www.itk.org:/cvsroot/Insight export -r ITK-2-2 -d InsightApplications-2.2.0  InsightApplications
   cvs -d :pserver:anonymous@www.itk.org:/cvsroot/Insight export -r ITK-2-2 -d InsightApplications-2.2.0  InsightApplications


=== Create Tarballs ===
=== Create Tarballs ===

Revision as of 19:05, 30 August 2005

How To Make an ITK Release

This page describes the sequence of steps required for making an ITK release

Update CMake version required in CMakeList.txt

edit CMakeLists.txt and find the variables

   CMAKE_MINIMUM_REQUIRED

and set it to the latest stable release of CMake.

Update Version number in CMakeList.txt

Edit CMakeLists.txt and find the variables

  • SET(ITK_VERSION_MAJOR "2")
  • SET(ITK_VERSION_MINOR "2")
  • SET(ITK_VERSION_PATCH "0")

and update them according to the current release number.

Tag the Insight repository

Tagging the repository should only be done with the agreement of the developers after a tcon.

Update your repository with

use the commmand

  cvs -q update -d -P -A

to make sure that your source tree is updated. This must correspond to a source tree that has been fully tested in the Dashboard.

Tag with a branch point reference

In the source tree that you just updated, use the command

  cvs tag ITK-2-2-bp

where, of course you change -2-2- for the correct release number.

This tag before the branching point serves as a reference for future merges.

Tag and branch

In the same source tree use the cvs command

  cvs tag -b ITK-2-2

where, again, of course, you replace -2-2 with the appropriate release number.

The -b option will create a branch.


Tag the InsightApplications repository

The same sequence of steps used for Insight must be used for tagging and branching the module of InsightApplications

Tag CableSwig

CableSwig must be tagged with the same tag used for the ITK release. This is usually done by Brad King at Kitware.


Prepare tarballs

Once the repository has been tagged, we CVS export its content using the tag in order to create .tar.gz and .zip files.

CVS Exporting

CVS login as anonymous

Create an empty directory, the use the CVS command for login

  cvs -d :pserver:anonymous@www.itk.org:/cvsroot/Insight login

use "insight" as password

CVS exporting Insight

Then use the export CVS command with the tag of that release

  cvs -d :pserver:anonymous@www.itk.org:/cvsroot/Insight export -r ITK-2-2 -d InsightToolkit-2.2.0  Insight
  • the option -r defines the tag to be used for exporting
  • the option -d creates a directory with a particular name. This directory name should match the number of the release

CVS exporting InsightApplications

Export also InsightApplications with the command

  cvs -d :pserver:anonymous@www.itk.org:/cvsroot/Insight export -r ITK-2-2 -d InsightApplications-2.2.0  InsightApplications

Create Tarballs

InsightToolkit tarball

create the tar file with the command

  tar -c -f InsightToolkit-2.2.0.tar   InsightToolkit-2.2.0

use the maximum compression with gzip

  gzip -9  InsightToolkit-2.2.0.tar

That should produce a file named

  InsightToolkit-2.2.0.tar.gz


InsightApplications tarball

create the tar file with the command

  tar -c -f InsightApplications-2.2.0.tar   InsightApplications-2.2.0

use the maximum compression with gzip

  gzip -9  InsightApplications-2.2.0.tar

That should produce a file named

  InsightApplications-2.2.0.tar.gz