Following a previous post some people asked me how my Image Startup script looks like. Well - here it is. I run this script in a clean image and it sets all the correct bits and pieces and loads all necessary packages.
Transcript .
"Set personal Settings"
(SmalltalkSystem )
true;
false.
SmalltalkSystem
false.
SmalltalkSystem
true.
"Connect STS Repositry"
stsRepositryPath := 'S:\Dolphin Smalltalk X6\STS Repositry'.
StsManager stsRepositryPath.
"Backup Repositry and reorganize"
stsBackupPathStream := ReadWriteStream
String .
stsBackupPathStream
stsRepositryPath;
'/Repository.BACKUP_'.
Date
stsBackupPathStream
'yyyyMMdd'.
Time
stsBackupPathStream
'HHmmss'.
(StsManager )
stsBackupPathStream ;
.
"Install Restore as this can't be loaded from STS"
Package 'S:\Dolphin Smalltalk X6\Solutions Software\ReStore120_D6\SSW ReStore MVP.pac'.
"Packages to ignore"
ignorePackageNames := #('US ActiveX' 'US Speedometer Control').
"Find all US Packages to be loaded"
loadPackageNames := ((StsManager
[:eachPackageName |
eachPackageName 'US'])
[:eachPackageName |
ignorePackageNames
eachPackageName])
.
"Load Packages and Prerequsisites"
[loadPackageNames ]
[currentPackageName := loadPackageNames
.
stsPackage := (StsManager
currentPackageName)
.
prerequisitePackageNames := (stsPackage
[:each |
(ignorePackageNames each)
[Package
each]])
.
prerequisitePackageNames
[stsPackage
[stsPackage ]]
[loadPackageNames := loadPackageNames
prerequisitePackageNames.
loadPackageNames
currentPackageName]]
No comments:
Post a Comment