Skip to content

Latest commit

 

History

History
41 lines (34 loc) · 2.13 KB

README.md

File metadata and controls

41 lines (34 loc) · 2.13 KB

T2F2T-Conversion

Build Status

Rowan-based scripts for converting package repositories from Tonel to Filetree and Filetree to Tonel format.

See man page for additional details.

Installation

In order to use the T2F2T-Conversion scripts, you need to download an extent with rowan installed and a copy of the GemStone 3.5.0 product tree. The bin/install.sh script does the install:

bin/install.sh

Conversion

Run the following scripts from the T2F2T-Conversion project directory:

  1. Create the t2f2t meta data file in the target project directory (t2f2t):
    bin/t2f2t.sh create <path-to-target-project-dir> t2f2t src filetree
  2. Prepare the tonel package directory for reading by Rowan. #convention : 'Monticello' informs Rowan that the packages in this directory will be expected to conform to the Monticello conventions where class category begins with the name of package and the method categories for extension methods begins with *case-insensitive-package-name:
    cat - > <path-to-target-project-dir>/<tonel-package-directory-path>/.properties << EOF
    {
    	#format : #tonel,
    	#convention : 'Monticello'
    }
    EOF
  3. Copy the packages in the tonel package directory to the filetree package directory, converting to filetree format:
    bin/t2f2t.sh filetree <path-to-target-project-dir>/t2f2t
  4. Copy the packages in the filetree package directory to the tonel package directory, converting to tonel format:
bin/t2f2t.sh tonel <path-to-target-project-dir>/t2f2t

NOTE, Pharo uses a different tonel package format than Rowan, so converting from filetree format to tonel format will result in a number of spurious changes, at the moment. The long term plan is that Rowan will support pharo_tonel format and rowan_tonel format repositories and when that comes to pass, it will be pratical to convert from filetree to tonel.