Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Bootstrap git support into a Pharo image
"Note that the the git work has not even achieved alpha, yet, so don't
bootstrap into an image that you care about:)
Assuming Pharo 1.3"
"Bootstrap filetree code"
Gofer new
url: 'http://ss3.gemstone.com/ss/FileTree';
package: 'ConfigurationOfFileTree';
load.
((Smalltalk at: #ConfigurationOfFileTree) project version: '1.0') load.
"Download the metacello project from GitHub by doing something like the following:
sudo mkdir /opt/git/
sudo chmod og+rw /opt/git/
cd /opt/git/
curl -L https://github.com/dalehenrich/metacello/zipball/newPackageFormat > /tmp/git.zip
unzip /tmp/git.zip -d /opt/git
You can also clone the metacello repository if you already have git installed:
sudo mkdir /opt/git/
sudo chmod og+rw /opt/git/
cd /opt/git/
git clone https://github.com/dalehenrich/metacello
If you clone the metacello repository, then you should use:
'/opt/git/metacello/repository/'
as the path for attaching the FileTree repository.
"
"Attach to the metacello repository and load Metacello files that have changed for git
(assuming your stating with Metacello 1.0-beta.31.1)"
Gofer new
squeaksource: 'MetacelloRepository';
package: 'ConfigurationOfOSProcess';
load.
((Smalltalk at: #'ConfigurationOfOSProcess') project version: #stable) load.
Gofer new
repository: (MCFileTreeRepository new directory:
(FileDirectory on: '/opt/git/dalehenrich-metacello-356cf8b/repository/'));
package: 'Metacello-Base';
package: 'Metacello-Core';
package: 'Metacello-FileTree';
package: 'Metacello-Git';
package: 'Metacello-GitHub';
package: 'Metacello-MC';
package: 'Metacello-ToolBox';
package: 'ConfigurationOfMetacello';
load.
@dalehenrich

This comment has been minimized.

Copy link
Owner Author

@dalehenrich dalehenrich commented Mar 2, 2012

refreshed the instructions to use the latest package structure (https://gist.github.com/1892114/eceff40deb06926d13df1db2f1c13749ed96677f)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment