I have about 1800 lines of GNU Smalltalk code I'd like to pull into Pharo. I've started doing it class by class, selector by selector, but it is very time consuming and tedious.
Is there a way to bulk import a project? I could easily adjust the format of the GST source files with vi
to be more Pharo-like beforehand.
Another thing I've considered is copying a "starter" .mcz
file, getting a feel for the format of the source.st
file, then creating a new source.st
with file cat
s and vi
. But then there's the snapshot.bin
file which seems also to have the source in it, making that a difficult path. It seems there should be an easier way. I've Google'd for it with different phrases but haven't hit anything.
Putting it in Monticello (.mcz) format is overkill for migrating. Just get it into fileout format (http://wiki.squeak.org/squeak/1105) and once you've loaded it into Pharo via filein, then you can create a Monticello package using the GUI if you want.
An quick way to see what fileout format involves (mainly just putting '!' in the right places):