forked from spec-framework/spec
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstallScript.st
More file actions
20 lines (15 loc) · 753 Bytes
/
installScript.st
File metadata and controls
20 lines (15 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| repo names currentVersions toLoad |
repo := MCFileTreeRepository new directory: 'spec-master' asFileReference.
currentVersions := MCWorkingCopy allManagers
select: [ :e | (e ancestry ancestors) notEmpty ]
thenCollect: [ :e | e ancestry ancestors first name ].
names := repo packageDescriptionsFromReadableFileNames.
toLoad := names select: [ :e || currentVersion |
currentVersion := e first , '-', e second , '.', e third asString.
(currentVersions includes: currentVersion) not ].
toLoad do: [ :name || version |
version := repo versionFromFileNamed: name first, '.package'.
FileStream stdout << name first << '-'<< name second << '.'<< name third asString; crlf.
[ version load ]
on: MCMergeOrLoadWarning
do: [ :ex | ex load ] ].