Skip to content

Instantly share code, notes, and snippets.

@frankshearar
Created January 18, 2012 11:01
Show Gist options
  • Save frankshearar/1632449 to your computer and use it in GitHub Desktop.
Save frankshearar/1632449 to your computer and use it in GitHub Desktop.
Bootstrapping LanguageBoxes from Squeak 4.3
"===== Set up Squeak's compiler correctly ====="
Scanner prefAllowUnderscoreSelectors: true.
Scanner allowUnderscoreAsAssignment: false.
"===== Things that Squeak needs from Pharo ====="
Installer cache
addPackage: 'Pharo-Compatibility-fbs.1';
addPackage: 'VB-Regex-AdrianLienhard.48';
install.
"===== Development tools ====="
"From Levente Uzonyi: http://lists.squeakfoundation.org/pipermail/squeak-dev/2010-October/154185.html"
Installer cache "squeaksource
project: 'RoelTyper';"
install: 'RoelTyper'.
"Installer squeaksource
project: 'OCompletion';
addPackage: 'Ocompletion-ul.74'."
"Smalltalk at: #ECToolSet ifPresent: [ :ecToolSet |
ecToolSet register.
ToolSet default: ecToolSet ]."
"From Michael Davies: http://lists.squeakfoundation.org/pipermail/squeak-dev/2011-February/157239.html"
"Omnibrowser including Refactoring engine and OCompletion. Version 1.2"
Installer cache "ss
project: 'MetacelloRepository';"
install: 'ConfigurationOfOmniBrowser'.
((Smalltalk at: #ConfigurationOfOmniBrowser) project
perform: #version:
with: '1.2') load: #(Dev).
"===== Refactoring Browser ====="
Installer cache
addPackage: 'AST-Core-lr.89';
addPackage: 'RB-Pharo-Compatibility-fbs.1'; "Pharo won't need this"
addPackage: 'AST-Compiler-lr.34';
install.
"More Squeak-specific stuff"
RBCompiler disable.
Installer cache
install: 'RB-Stage2-Compatibility-fbs.1'.
RBCompiler enable.
"===== PetitParser ======"
Installer cache
addPackage: 'PetitParser-lr.222';
addPackage: 'PetitTests-lr.41';
addPackage: 'PetitSmalltalk-fbs.60'; "Pharo can use 'PetitSmalltalk-lr.56';"
addPackage: 'QuasiQuote-lr.64';
addPackage: 'Helvetia-Core-lr.29';
addPackage: 'Shout-lr.97';
install.
QQCompiler enable.
Smalltalk saveAs: 'LanguageBoxes-pre.image'.
"===== Finally, bootstrap LanguageBoxes itself ====="
Installer cache
addPackage: 'Cutie-HelvetiaTestFixtures-fbs.5';
addPackage: 'Cutie-Helvetia-Parser-fbs.1';
addPackage: 'Cutie-Helvetia-Trans-fbs.1';
install.
CHCompiler enable.
(MCCacheRepository default
loadVersionFromFileNamed: 'Monticello-fbs.492.mcz') load.
#('Cutie-Helvetia-Linda-fbs.1.mcz'
'Cutie-Helvetia-Examples-fbs.1.mcz'
'Cutie-Helvetia-Automaton-fbs.1.mcz'
'Cutie-Helvetia-Ebnf-fbs.1.mcz'
'Helvetia-Core-lr.29.mcz'
'LanguageBoxes-lr.28.mcz') do: [:each |
(MCCacheRepository default
loadVersionFromFileNamed: each) imperativeLoad].
Smalltalk saveAs: 'LanguageBoxes-pre2.image'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment