You can clone a repository with Iceberg with a script like this:
target := 'pharo-core' asFileReference ensureCreateDirectory.
repository := IceRepositoryCreator new��
remote: (IceRemote url: 'git@github.com:pharo-project/pharo.git');
location: target;
subdirectory:'src';
createRepository.
repository backend checkoutBranch: 'development'.
repository register.
Setting of the system version is already fixed in Pharo 7. For Pharo 6 you want to do something like this:
./pharo Pharo.image eval --save "| updateString | updateString := 'tag.txt' asFileReference readStream contents allButFirst. SystemVersion classPool at: #Current put: (SystemVersion new type: 'Pharo'; major: updateString first asString asInteger; minor: updateString second asString asInteger; highestUpdate: updateString asInteger; suffix: ''; yourself)"
Where tag.txt can by obtained from git by:
git describe --tags > tag.txt
Cheers,
-- Pavel