Created
February 23, 2012 17:51
-
-
Save dalehenrich/1894011 to your computer and use it in GitHub Desktop.
Bootstrap git support into a Pharo image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
refreshed the instructions to use the latest package structure (https://gist.github.com/1892114/eceff40deb06926d13df1db2f1c13749ed96677f)