Difference between revisions of "Release Procedures"

From Jmol
Jump to navigation Jump to search
(info on committing small changes)
(some info on svn conflicts. Would like to make this a subsection, but wiki dislikes my ====)
Line 64: Line 64:
  
 
It is a good idea to keep the [mailto:jmol-users@lists.sourceforge.net jmol-users@lists.sourceforge.net] mailing list informed of the changes you made.
 
It is a good idea to keep the [mailto:jmol-users@lists.sourceforge.net jmol-users@lists.sourceforge.net] mailing list informed of the changes you made.
 +
 +
==== SVN Conflicts ====
 +
 +
'svn update' will check for changes already commited. Possible output is:
 +
 +
    A  Added
 +
    D  Deleted
 +
    U  Updated
 +
    C  Conflict
 +
    G  Merged
 +
 +
For example:
 +
<pre>
 +
~> svn update
 +
C    src/org/jmol/viewer/Jmol.properties
 +
U    src/org/jmol/modelsetbio/NucleicMonomer.java
 +
Updated to revision 8025.
 +
</pre>
 +
 +
The conflicting files (marked with a C) need to be checked by hand. Note that 'svn update' will give this warning only once, so do the corrections immediately, or you will forget about them!
 +
 +
The conflicting file will contain something like:
 +
<pre>
 +
version=11.3.8_dev
 +
 +
# -----------------------------------------------------------------------------
 +
 +
#version=11.3.7
 +
 +
# bug fix: reading of JVXL files for orbitals loses phase information
 +
# bug fix: ACD/Labs nonstandard cml "builtin" property reader
 +
# bug fix: isosurface interior cavity was not setting meshdata surfaceSet null
 +
<<<<<<< .mine
 +
# bug fix: "axes scale ..." did not work for the "axes unitcell" option
 +
 +
=======
 +
# bug fix: select dna can select rna if chain is mixed hybrid dna+rna
 +
 +
>>>>>>> .r8025
 +
 +
</pre>
 +
In this case, the line describing the big fix marked as 'mine' need to go up to the 11.3.8_dev part. Also remove the arrows and equal signs.
 +
Conflicts within the code will require a lot more attention, so it is smart to update regularly and don't wait very long to commit code that you've finished.
  
 
=== Maintainers only: Release build ===
 
=== Maintainers only: Release build ===

Revision as of 13:29, 31 July 2007

Jmol/JSmol Development

Accessing a Release

You can browse the latest source code online or anonymously checkout the project contained in the Subversion (SVN) repository.

To checkout the source code use the following command:

 svn co https://jmol.svn.sourceforge.net/svnroot/jmol/trunk/Jmol

This will check out to the Jmol subdirectory on your system.

You can update the source code from withing your Jmol sandbox by saying:

 svn update 

Compiling a Release

Compiling can be done via command line by starting Ant in the top directory, or via an IDE compiler as Eclipse, Netbeans, or JBuilder. The compiled files will be written to the 'build' subdirectory.

Editing a Release

Changes in the Jmol code should follow the Jmol Coding Style.

Hint: Start looking for the source files for the main parts of the program in the 'src/org/jmol' and 'src/org/openscience' subdirectories.

Commiting a bug fix or new feature

Before commiting updated code to the svn server, always do the following:

  • Test your code thoroughly, try different systems and 'incorrect' input.
  • When the code is working fine, modify the File icon.gifJmol.properties file in src/org/jmol/viewer. Simply use the same format as the other modifications.

For example, a Jmol.properties file could start with :

  version=11.3.8_dev
  
  # --------------------------------------------------------------------

That means that the next release will probably be 11.3.8 and there has been no modifications yet in Jmol for this new release After your modification, the File icon.gifJmol.properties file should for example start with:

  version=11.3.8_dev

  # bug fix: "axes scale ..." did not work for the "axes unitcell" option

  # --------------------------------------------------------------------

These lines will then simply be copy / pasted by the maintainers into the change log accessible on sourceforge with the new version, and the maintainers can quickly edit the Jmol.properties file to prepare for the next version.

Now you are ready to commit, make sure that you are commiting from the top of the Jmol directory tree. The commit message should be short but descriptive.

 svn update
 ant spotless dist
 ant test
 svn commit -m "Fixed: axes scale ... did not work for the axes unitcell option"

It is a good idea to keep the jmol-users@lists.sourceforge.net mailing list informed of the changes you made.

SVN Conflicts

'svn update' will check for changes already commited. Possible output is:

   A  Added
   D  Deleted
   U  Updated
   C  Conflict
   G  Merged

For example:

~> svn update
C    src/org/jmol/viewer/Jmol.properties
U    src/org/jmol/modelsetbio/NucleicMonomer.java
Updated to revision 8025.

The conflicting files (marked with a C) need to be checked by hand. Note that 'svn update' will give this warning only once, so do the corrections immediately, or you will forget about them!

The conflicting file will contain something like:

version=11.3.8_dev

# -----------------------------------------------------------------------------

#version=11.3.7

# bug fix: reading of JVXL files for orbitals loses phase information
# bug fix: ACD/Labs nonstandard cml "builtin" property reader
# bug fix: isosurface interior cavity was not setting meshdata surfaceSet null
<<<<<<< .mine
# bug fix: "axes scale ..." did not work for the "axes unitcell" option

=======
# bug fix: select dna can select rna if chain is mixed hybrid dna+rna

>>>>>>> .r8025

In this case, the line describing the big fix marked as 'mine' need to go up to the 11.3.8_dev part. Also remove the arrows and equal signs. Conflicts within the code will require a lot more attention, so it is smart to update regularly and don't wait very long to commit code that you've finished.

Maintainers only: Release build

svn update
ant spotless dist
ant test
update version number in build.xml
update version number in org/jmol/viewer/JmolConstants.java
svn commit -m "prerelease 10.3.1"
svn copy https://jmol.svn.sourceforge.net/svnroot/jmol/trunk \
   https://jmol.svn.sourceforge.net/svnroot/jmol/tags/pre10.3.1 -m "prerelease 10.3.1"
ant spotless dist
cd build/dist
ls
lftp upload.sourceforge.net
cd incoming
mput jmol-10.3.1-binary.*

If you use another ftp client then login with anonymous/emailaddr and put ftp into 'bin' mode to ensure clean transfer of binary files.

Maintainers only: release software to sourceforge

From http://sourceforge.net/projects/jmol :

  • Admin
  • File Releases
  • in File Release Packages:
    • Edit Releases in order to look at previous release name conventions
    • Add Release - prerelease 10.3.1
    • Type in name
    • Create Release
  • Refresh your browser
  • Check File icon.gifjmol-10.3.1-binary.tar.gz and File icon.gifjmol-10.3.1.binary.zip
  • Add Files and/or Refresh View
  • Scroll down to Step 3: Edit files in this release
  • Step 3: Processor: Platform-independent File Type: .gz Update/Refresh
  • Step 3: Processor: Platform-independent File Type: .zip -> Update/Refresh
  • Step 4: Email release notes ... check and send
  • At the top of the page click on 'Files'
  • If you want, edit older releases and change them from Active to Hidden

Inform Jmol users

svn log https://jmol.svn.sourceforge.net/svnroot/jmol/trunk | less