author | Claus Gittinger <cg@exept.de> |
Mon, 31 May 1999 17:21:46 +0200 | |
changeset 358 | 14a45495e3d8 |
parent 355 | 007bd12bd854 |
child 361 | 2e93bfb4a8b2 |
permissions | -rw-r--r-- |
25 | 1 |
"/ |
2 |
"/ $Header$ |
|
86 | 3 |
"/ |
209 | 4 |
"/ ST/X startup configuration & command file: |
5 |
"/ |
|
25 | 6 |
"/ startup configuration for smalltalk |
7 |
"/ |
|
8 |
"/ - everything in here are plain smalltalk expressions; |
|
9 |
"/ - statements with in a group are separated by a period. |
|
10 |
"/ - Each group of statements has to be delimited by an exclamation |
|
11 |
"/ character. |
|
12 |
"/ - avoid exclas in comments (or double them) |
|
13 |
"/ - nested comments are not allowed - take care. |
|
14 |
"/ |
|
15 |
"/ remember: this is fileOut-format |
|
16 |
"/ |
|
17 |
"/ comments can be either: |
|
18 |
"/ - standard smalltalk comments (i.e. from dquote to dquote) |
|
19 |
"/ - ST/X end of line comments (i.e. dquote followed by /) |
|
20 |
"/ |
|
21 |
"/ "this is a comment" |
|
22 |
"/ "/ another comment |
|
23 |
"/ |
|
24 |
"/*************************************************************** |
|
25 |
"/ PLEASE: only add things here, if they are of general interrest |
|
26 |
"/ and NEITHER site specific NOT display specific. |
|
27 |
"/ |
|
28 |
"/ site specific things are to be added to "h_<hostname>.rc" |
|
29 |
"/ display specifics to "d_<displayName>.rc" |
|
30 |
"/ and private user stuff in "private.rc" |
|
31 |
"/*************************************************************** |
|
0 | 32 |
|
25 | 33 |
"/ |
53
00437bd1cfe7
allow systemPath to be set via a shell variable
Claus Gittinger <cg@exept.de>
parents:
42
diff
changeset
|
34 |
"/ allow definition of the systemPath from an environment variable |
00437bd1cfe7
allow systemPath to be set via a shell variable
Claus Gittinger <cg@exept.de>
parents:
42
diff
changeset
|
35 |
"/ for example, to only try files in a users home and /usr/local/lib/smalltalk, |
00437bd1cfe7
allow systemPath to be set via a shell variable
Claus Gittinger <cg@exept.de>
parents:
42
diff
changeset
|
36 |
"/ add the following in your shell-profile: |
86 | 37 |
"/ export STX_SYSTEMPATH=$HOME:/usr/local/lib/smalltalk |
53
00437bd1cfe7
allow systemPath to be set via a shell variable
Claus Gittinger <cg@exept.de>
parents:
42
diff
changeset
|
38 |
"/ notice, that shell variable names are NOT expanded again in STX_SYSTEMPATH |
00437bd1cfe7
allow systemPath to be set via a shell variable
Claus Gittinger <cg@exept.de>
parents:
42
diff
changeset
|
39 |
"/ Make certain that all relevant files are found along your path - you may see |
00437bd1cfe7
allow systemPath to be set via a shell variable
Claus Gittinger <cg@exept.de>
parents:
42
diff
changeset
|
40 |
"/ funny viewStyles, colors and stupid strings if wrong. |
00437bd1cfe7
allow systemPath to be set via a shell variable
Claus Gittinger <cg@exept.de>
parents:
42
diff
changeset
|
41 |
"/ |
197 | 42 |
|
53
00437bd1cfe7
allow systemPath to be set via a shell variable
Claus Gittinger <cg@exept.de>
parents:
42
diff
changeset
|
43 |
|path| |
287
8151d262bd27
check for gnu-smalltalk sources along my path;
Claus Gittinger <cg@exept.de>
parents:
272
diff
changeset
|
44 |
|
53
00437bd1cfe7
allow systemPath to be set via a shell variable
Claus Gittinger <cg@exept.de>
parents:
42
diff
changeset
|
45 |
(path := OperatingSystem getEnvironment:'STX_SYSTEMPATH') notNil ifTrue:[ |
00437bd1cfe7
allow systemPath to be set via a shell variable
Claus Gittinger <cg@exept.de>
parents:
42
diff
changeset
|
46 |
Smalltalk systemPath:(path asCollectionOfSubstringsSeparatedBy:$:) |
287
8151d262bd27
check for gnu-smalltalk sources along my path;
Claus Gittinger <cg@exept.de>
parents:
272
diff
changeset
|
47 |
] ifFalse:[ |
8151d262bd27
check for gnu-smalltalk sources along my path;
Claus Gittinger <cg@exept.de>
parents:
272
diff
changeset
|
48 |
"/ look for gnu-smalltalk class files along my PATH. |
8151d262bd27
check for gnu-smalltalk sources along my path;
Claus Gittinger <cg@exept.de>
parents:
272
diff
changeset
|
49 |
"/ if found, remove that directory from the PATH to avoid |
8151d262bd27
check for gnu-smalltalk sources along my path;
Claus Gittinger <cg@exept.de>
parents:
272
diff
changeset
|
50 |
"/ autoloading wrong classes. |
8151d262bd27
check for gnu-smalltalk sources along my path;
Claus Gittinger <cg@exept.de>
parents:
272
diff
changeset
|
51 |
(path := Smalltalk getSystemFileName:'initialize.st') notNil ifTrue:[ |
8151d262bd27
check for gnu-smalltalk sources along my path;
Claus Gittinger <cg@exept.de>
parents:
272
diff
changeset
|
52 |
path := path asFilename directoryName. |
308
6e6d557009c7
dont loose windows keyboard setup after image restart
Claus Gittinger <cg@exept.de>
parents:
287
diff
changeset
|
53 |
('smalltalk.rc [info]: found gnu-smalltalk sources in ' , path , '; removed from systemPath.') infoPrintCR. |
287
8151d262bd27
check for gnu-smalltalk sources along my path;
Claus Gittinger <cg@exept.de>
parents:
272
diff
changeset
|
54 |
Smalltalk systemPath:(Smalltalk systemPath remove:path; yourself). |
8151d262bd27
check for gnu-smalltalk sources along my path;
Claus Gittinger <cg@exept.de>
parents:
272
diff
changeset
|
55 |
] |
53
00437bd1cfe7
allow systemPath to be set via a shell variable
Claus Gittinger <cg@exept.de>
parents:
42
diff
changeset
|
56 |
]. |
86 | 57 |
! |
58 |
||
59 |
|args| |
|
60 |
||
61 |
args := Smalltalk commandLineArguments. |
|
126 | 62 |
((args size > 0) and:[args last = '--buildClasses']) ifTrue:[ |
86 | 63 |
'binary' asFilename isDirectory ifFalse:[ |
195 | 64 |
'smalltalk.rc [warning]: no binary directory for classes.' errorPrintCR. |
86 | 65 |
] ifTrue:[ |
66 |
"/ |
|
67 |
"/ load all lazy classes |
|
68 |
"/ |
|
69 |
Autoload subclasses do:[:aClass | |
|
70 |
Autoload autoloadFailedSignal handle:[:ex | |
|
195 | 71 |
'smalltalk.rc [warning]: autoload failed' errorPrintCR. |
86 | 72 |
ex return. |
73 |
] do:[ |
|
195 | 74 |
'smalltalk.rc [info]: loading ' infoPrint. aClass name infoPrint. ' ...' infoPrintCR. |
86 | 75 |
aClass autoload. |
76 |
] |
|
77 |
]. |
|
78 |
||
79 |
"/ |
|
80 |
"/ binary save all classes |
|
81 |
"/ |
|
82 |
Autoload loadedClasses do:[:cls | |
|
195 | 83 |
'smalltalk.rc [info]: saving binary of ' infoPrint. cls name infoPrint. ' ...' infoPrintCR. |
86 | 84 |
cls binaryFileOut. |
85 |
OperatingSystem executeCommand:'mv *.cls binary'. |
|
86 |
] |
|
87 |
]. |
|
88 |
Smalltalk exit |
|
89 |
]. |
|
90 |
! |
|
53
00437bd1cfe7
allow systemPath to be set via a shell variable
Claus Gittinger <cg@exept.de>
parents:
42
diff
changeset
|
91 |
|
00437bd1cfe7
allow systemPath to be set via a shell variable
Claus Gittinger <cg@exept.de>
parents:
42
diff
changeset
|
92 |
"/ |
25 | 93 |
"/ map Language variable setting to known and handled |
94 |
"/ values: |
|
53
00437bd1cfe7
allow systemPath to be set via a shell variable
Claus Gittinger <cg@exept.de>
parents:
42
diff
changeset
|
95 |
"/ |
25 | 96 |
Language == #De ifTrue:[ |
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
133
diff
changeset
|
97 |
Language := #german |
25 | 98 |
]. |
99 |
! |
|
8 | 100 |
|
25 | 101 |
"/ |
102 |
"/ check for display-classes being compiled into the system; |
|
103 |
"/ (and if display connection can be established) |
|
104 |
"/ if not, enter a simple read-eval-print loop |
|
105 |
"/ |
|
0 | 106 |
Display isNil ifTrue:[ |
5 | 107 |
DeviceWorkstation notNil ifTrue:[ |
195 | 108 |
'smalltalk.rc [warning]: No Display connection.' errorPrintCR. |
197 | 109 |
'smalltalk.rc [info]: Either set the DISPLAY environment variable,' infoPrintCR. |
110 |
'smalltalk.rc [info]: or start smalltalk with a -display argument.' infoPrintCR. |
|
336
5eb44f3e88af
do not output 'no sourceCode' warning messages
Claus Gittinger <cg@exept.de>
parents:
331
diff
changeset
|
111 |
Smalltalk isStandAloneApp ifTrue:[ |
5eb44f3e88af
do not output 'no sourceCode' warning messages
Claus Gittinger <cg@exept.de>
parents:
331
diff
changeset
|
112 |
Smalltalk exit |
5eb44f3e88af
do not output 'no sourceCode' warning messages
Claus Gittinger <cg@exept.de>
parents:
331
diff
changeset
|
113 |
]. |
5eb44f3e88af
do not output 'no sourceCode' warning messages
Claus Gittinger <cg@exept.de>
parents:
331
diff
changeset
|
114 |
|
355
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
115 |
'' errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
116 |
'Textmode (enter smalltalk expressions terminated by single exclamation mark;' errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
117 |
OperatingSystem isUNIXlike ifTrue:[ |
336
5eb44f3e88af
do not output 'no sourceCode' warning messages
Claus Gittinger <cg@exept.de>
parents:
331
diff
changeset
|
118 |
' CTRL-D to leave line-by-line interpreter.)' errorPrintCR. |
355
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
119 |
] ifFalse:[ |
336
5eb44f3e88af
do not output 'no sourceCode' warning messages
Claus Gittinger <cg@exept.de>
parents:
331
diff
changeset
|
120 |
' CTRL-Z to leave line-by-line interpreter.)' errorPrintCR. |
355
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
121 |
]. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
122 |
Smalltalk readEvalPrint. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
123 |
Smalltalk exit |
5 | 124 |
] ifFalse:[ |
336
5eb44f3e88af
do not output 'no sourceCode' warning messages
Claus Gittinger <cg@exept.de>
parents:
331
diff
changeset
|
125 |
Smalltalk isStandAloneApp ifFalse:[ |
5eb44f3e88af
do not output 'no sourceCode' warning messages
Claus Gittinger <cg@exept.de>
parents:
331
diff
changeset
|
126 |
'smalltalk.rc [warning]: Configuration without display.' errorPrintCR. |
5eb44f3e88af
do not output 'no sourceCode' warning messages
Claus Gittinger <cg@exept.de>
parents:
331
diff
changeset
|
127 |
] |
5 | 128 |
]. |
10 | 129 |
]. |
0 | 130 |
|
25 | 131 |
"/ |
132 |
"/ this makes X-errors be handled immediately (so you see, |
|
133 |
"/ where it occured) but slows down the system soooo muuuucccchhh .. |
|
134 |
"/ if commented out, errors will be reported asynchronously. |
|
135 |
"/ (I enable this, when things go bad during startup) |
|
136 |
"/ |
|
10 | 137 |
"/ Display unBuffered. |
0 | 138 |
|
25 | 139 |
"/ |
140 |
"/ this starts the incremental GC earlier |
|
141 |
"/ (default is 500000) |
|
142 |
"/ the number given is the number of bytes which have to be allocated |
|
143 |
"/ since the last GC, to start the incremental GC running. |
|
144 |
"/ (see ObjectMemory>>documentation) |
|
145 |
"/ Claus: I moved this to the private.rc file |
|
146 |
"/ |
|
10 | 147 |
"/ ObjectMemory incrementalGCLimit:100000. |
0 | 148 |
|
25 | 149 |
"/ |
150 |
"/ this starts the incremental GC when freeSpace drops below a limit |
|
151 |
"/ (default is nil - i.e. dont look at freeSpace) |
|
152 |
"/ (see ObjectMemory>>documentation) |
|
153 |
"/ Claus: I moved this to the private.rc file |
|
154 |
"/ |
|
16 | 155 |
"/ ObjectMemory freeSpaceGCLimit:300000. |
156 |
||
322 | 157 |
"/ experimental: try to always keep some bytes in the pocket |
158 |
"/ this changes the memory policy, to start the background collector whenever |
|
159 |
"/ freespace drops below 250k or 500k have been allocated since the last GC. |
|
160 |
"/ AND to allocate more memory, if (after the collect) less than 1Mb is free. |
|
161 |
"/ Doing so makes the system behave better if lots of memory is required |
|
162 |
"/ for short periods of time, since it prepares itself for that situation |
|
163 |
"/ during idle time. (I often walk around in the fileBrowser, loading big |
|
164 |
"/ files like XWorkstation.st or SystemBrowser.st ....) |
|
165 |
||
166 |
ObjectMemory freeSpaceGCAmount:1000000. |
|
167 |
ObjectMemory freeSpaceGCLimit:250000. |
|
168 |
ObjectMemory incrementalGCLimit:500000. |
|
169 |
ObjectMemory oldSpaceIncrement:500000. |
|
170 |
ObjectMemory startBackgroundCollectorAt:5. |
|
171 |
ObjectMemory startBackgroundFinalizationAt:5. |
|
172 |
||
173 |
"/ experimental: |
|
174 |
"/ run the background collector at a dynamic priority - it will |
|
175 |
"/ now always get a chance to make some progress ... |
|
176 |
||
177 |
Smalltalk addStartBlock:[ |
|
178 |
'private.rc [info]: start timeSlicing...' infoPrintCR. |
|
179 |
Processor startTimeSlicing. |
|
180 |
Processor supportDynamicPriorities:true. |
|
181 |
ObjectMemory backgroundCollectProcess priorityRange:(4 to:9). |
|
182 |
ObjectMemory backgroundFinalizationProcess priorityRange:(4 to:9). |
|
183 |
]. |
|
184 |
||
185 |
"/ experimental: configure the memory manager to quickly increase |
|
186 |
"/ its oldSpace, as long as it stays below 8Mb (i.e. do not enter |
|
187 |
"/ a blocking mark&sweep or compress, but go straight ahead increasing |
|
188 |
"/ the oldSpace). Above that, behave as usual, i.e. try a GC first, |
|
189 |
"/ then increase the oldSpace size if that did not help. |
|
190 |
"/ If you have a machine with lots of (real) memory, you may want to |
|
191 |
"/ increase the number. The value below should be ok for 16-32Mb machines. |
|
192 |
"/ |
|
193 |
ObjectMemory fastMoreOldSpaceLimit:8*1024*1024. |
|
194 |
ObjectMemory fastMoreOldSpaceAllocation:true. |
|
195 |
! |
|
196 |
||
197 |
"/ another experimental (and a secret for now, since I dont want |
|
198 |
"/ you to play with those ;-) |
|
199 |
"/ For now, this is experimental. Once the best numbers |
|
200 |
"/ have been found, I'll hardwire them and document it ... |
|
201 |
||
202 |
|a| |
|
203 |
ObjectMemory newSpaceSize > (500*1024) ifTrue:[ |
|
204 |
a := #(nil nil nil nil -16 -4 -2 -2 0 0 16 nil) copy. |
|
205 |
] ifFalse:[ |
|
206 |
"/ min max cpy /32 /16 /8 /4 /2 /4 /8 /16 /32 " |
|
207 |
"/ |
|
208 |
"/ slow tenure - keeps objects longer in newSpace, |
|
209 |
"/ producing more scavenge overhead, but releasing IGC somewhat |
|
210 |
"/ |
|
211 |
"/ a := #(nil nil nil -100 -8 -4 -1 1 2 4 8 16 nil) copy. |
|
212 |
"/ a := #(nil nil nil nil -16 -4 0 0 0 4 16 nil) copy. |
|
213 |
||
214 |
"fast tenure" |
|
215 |
"/ |
|
216 |
"/ fast tenure - moves objects earlier into oldSpace, |
|
217 |
"/ releasing newSpace collector; however, the oldSpace IGC |
|
218 |
"/ may have more work to do. |
|
219 |
"/ |
|
220 |
a := #(nil nil nil nil -20 -8 -3 -1 -1 1 16 nil) copy. |
|
221 |
]. |
|
222 |
ObjectMemory tenureParameters:a. |
|
223 |
||
25 | 224 |
"/ |
225 |
"/ lazy loading |
|
226 |
"/ (faster fileIn) - this is EXPERIMENTAL. |
|
169 | 227 |
"/ |
228 |
"/ - if turned on, an autoload operation will only create methodStubs |
|
229 |
"/ (uncompiled) which trap when called the first time. |
|
230 |
"/ The bytecode compiler will compile them when first executen. |
|
231 |
"/ |
|
232 |
"/ - if turned off, an autoload will load & compile the while class, |
|
233 |
"/ which makes autoloading slower, but avoids the initial delays |
|
234 |
"/ |
|
235 |
"/ This is much like just-in-time compilation, but on a higher level. |
|
25 | 236 |
"/ If there are any problems with lazy methods, disable the following |
152 | 237 |
"/ and let me (cg@exept.ssw.de) know what happened. |
25 | 238 |
"/ |
223 | 239 |
Autoload compileLazy:true. |
5 | 240 |
|
25 | 241 |
"/ |
242 |
"/ define the language (you can also set the LANG-shell variable) |
|
169 | 243 |
"/ (currently #english, #german and #french are supported). |
244 |
"/ some fragments for other languages (japanese ;-) exist. |
|
152 | 245 |
"/ Setting it here will override the LANG variable setting, |
25 | 246 |
"/ if neither set here nor in LANG, #english is the default. |
169 | 247 |
"/ see (and enhance) the resource files |
25 | 248 |
"/ Claus: supposed to be done in private.rc or via LANG variable |
249 |
"/ |
|
10 | 250 |
"/ Smalltalk language:#german. |
251 |
"/ Smalltalk language:#english. |
|
0 | 252 |
|
25 | 253 |
"/ |
358
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
254 |
"/ this defines stuff relating to the host we are running on |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
255 |
"/ |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
256 |
"/ 'smalltalk.rc [info]: reading ''host.rc'' ...' infoPrintCR. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
257 |
Smalltalk fileIn:'host.rc'. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
258 |
|
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
259 |
"/ |
25 | 260 |
"/ this handles all variant display stuff |
261 |
"/ (i.e. things which might change, when DISPLAY is set different) |
|
331
a0be330a1f43
moved compiler setup into host-specific file.
Claus Gittinger <cg@exept.de>
parents:
325
diff
changeset
|
262 |
"/ Notice, that the display may be different from the host we run on; |
a0be330a1f43
moved compiler setup into host-specific file.
Claus Gittinger <cg@exept.de>
parents:
325
diff
changeset
|
263 |
"/ Host specific things are configured in host.rc. |
25 | 264 |
"/ |
195 | 265 |
"/ 'smalltalk.rc [info]: reading ''display.rc'' ...' infoPrintCR. |
336
5eb44f3e88af
do not output 'no sourceCode' warning messages
Claus Gittinger <cg@exept.de>
parents:
331
diff
changeset
|
266 |
Display notNil ifTrue:[ |
5eb44f3e88af
do not output 'no sourceCode' warning messages
Claus Gittinger <cg@exept.de>
parents:
331
diff
changeset
|
267 |
Smalltalk fileIn:'display.rc'. |
5eb44f3e88af
do not output 'no sourceCode' warning messages
Claus Gittinger <cg@exept.de>
parents:
331
diff
changeset
|
268 |
]. |
0 | 269 |
|
25 | 270 |
"/ |
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
133
diff
changeset
|
271 |
"/ Ask user to accept Licence. |
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
133
diff
changeset
|
272 |
"/ exit, if rejected. |
324
e8eb27061a3f
llow for licenceBox to be suppressed
Claus Gittinger <cg@exept.de>
parents:
322
diff
changeset
|
273 |
"/ |
152 | 274 |
"/ You may find this annoying - but lawers say: "this is a must ..." ;-) |
275 |
"/ (it will not be shown when coming up via a snapshot image) |
|
324
e8eb27061a3f
llow for licenceBox to be suppressed
Claus Gittinger <cg@exept.de>
parents:
322
diff
changeset
|
276 |
"/ Also, the licenceBox can be suppressed with a command-line argument; |
e8eb27061a3f
llow for licenceBox to be suppressed
Claus Gittinger <cg@exept.de>
parents:
322
diff
changeset
|
277 |
"/ however, if you do so, we assume you have read & accepted it at least |
e8eb27061a3f
llow for licenceBox to be suppressed
Claus Gittinger <cg@exept.de>
parents:
322
diff
changeset
|
278 |
"/ once (since this command-line-argument is not documented, you obviously |
e8eb27061a3f
llow for licenceBox to be suppressed
Claus Gittinger <cg@exept.de>
parents:
322
diff
changeset
|
279 |
"/ read the code below). |
220 | 280 |
|
324
e8eb27061a3f
llow for licenceBox to be suppressed
Claus Gittinger <cg@exept.de>
parents:
322
diff
changeset
|
281 |
"/ |
325 | 282 |
"/ WARNING: read the licence text before you: |
283 |
"/ - disable the code below, |
|
284 |
"/ - or start stx with a suppress argument. |
|
324
e8eb27061a3f
llow for licenceBox to be suppressed
Claus Gittinger <cg@exept.de>
parents:
322
diff
changeset
|
285 |
"/ |
250 | 286 |
|
336
5eb44f3e88af
do not output 'no sourceCode' warning messages
Claus Gittinger <cg@exept.de>
parents:
331
diff
changeset
|
287 |
Smalltalk isStandAloneApp ifFalse:[ |
5eb44f3e88af
do not output 'no sourceCode' warning messages
Claus Gittinger <cg@exept.de>
parents:
331
diff
changeset
|
288 |
Display notNil ifTrue:[ |
355
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
289 |
(Smalltalk commandLineArguments includes:'--noLicenceBox') ifFalse:[ |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
290 |
Smalltalk addStartBlock:[ |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
291 |
'smalltalk.rc [info]: show licence conditions ...' infoPrintCR. |
324
e8eb27061a3f
llow for licenceBox to be suppressed
Claus Gittinger <cg@exept.de>
parents:
322
diff
changeset
|
292 |
|
355
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
293 |
LicenceBox autoload. |
220 | 294 |
|
355
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
295 |
LicenceBox licenceRejectSignal handle:[:ex| |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
296 |
Smalltalk exit |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
297 |
] do:[ |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
298 |
(LicenceBox open) ifFalse:[Smalltalk exit]. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
299 |
Smalltalk at:#LicenceBox put:nil. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
300 |
]. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
301 |
] |
336
5eb44f3e88af
do not output 'no sourceCode' warning messages
Claus Gittinger <cg@exept.de>
parents:
331
diff
changeset
|
302 |
] |
324
e8eb27061a3f
llow for licenceBox to be suppressed
Claus Gittinger <cg@exept.de>
parents:
322
diff
changeset
|
303 |
] |
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
133
diff
changeset
|
304 |
]. |
358
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
305 |
! |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
306 |
|
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
307 |
"/ |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
308 |
"/ read the abbrev.stc file, extract class names |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
309 |
"/ and install all nonExisting classes as autoloaded |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
310 |
"/ |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
311 |
|needToReactivate| |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
312 |
|
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
313 |
HistoryManager notNil ifTrue:[ |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
314 |
needToReactivate := HistoryManager isActive. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
315 |
HistoryManager deactivate. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
316 |
] ifFalse:[ |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
317 |
needToReactivate := false |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
318 |
]. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
319 |
|
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
320 |
Class withoutUpdatingChangesDo:[ |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
321 |
'smalltalk.rc [info]: installing autoloaded classes ...' infoPrintCR. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
322 |
Smalltalk installAutoloadedClassesFrom:'include/abbrev.stc'. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
323 |
]. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
324 |
needToReactivate ifTrue:[HistoryManager activate]. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
325 |
"/ |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
326 |
"/ some ST80 name aliases |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
327 |
"/ (actually, much more is needed - this is just a start ...) |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
328 |
"/ |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
329 |
(cls := Smalltalk at:#StandardSystemView) notNil ifTrue:[ |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
330 |
Smalltalk at:#ScheduledWindow put:cls |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
331 |
]. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
332 |
(cls := Smalltalk at:#Socket) notNil ifTrue:[ |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
333 |
Smalltalk at:#UnixSocketAccessor put:cls. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
334 |
Smalltalk at:#SocketAccessor put:cls. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
335 |
Smalltalk at:#SocketAccessorByAddress put:cls. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
336 |
]. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
337 |
Smalltalk at:#BlockClosure put:Block. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
338 |
Smalltalk at:#CompiledMethod put:Method. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
339 |
(cls := Smalltalk at:#DialogBox) notNil ifTrue:[ |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
340 |
Smalltalk at:#Dialog put:cls. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
341 |
Smalltalk at:#DialogView put:cls. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
342 |
]. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
343 |
Smalltalk at:#ByteString put:String. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
344 |
Smalltalk at:#ByteSymbol put:Symbol. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
345 |
Smalltalk at:#ByteEncodedString put:String. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
346 |
Smalltalk at:#Console put:Stderr. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
347 |
Smalltalk at:#HandlerList put:HandlerCollection. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
348 |
Smalltalk at:#SignalCollection put:SignalSet. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
349 |
Smalltalk at:#Timestamp put:AbsoluteTime. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
350 |
|
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
351 |
"/ FileDirectory notNil ifTrue:[ |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
352 |
"/ Smalltalk at:#Disk put:(Filename rootDirectory) |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
353 |
"/ ]. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
354 |
|
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
355 |
Display notNil ifTrue:[ |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
356 |
Smalltalk at:#Window put:(Display class). |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
357 |
Smalltalk at:#Screen put:(Display class). |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
358 |
Smalltalk at:#Sensor put:Display. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
359 |
]. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
360 |
|
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
361 |
"/ |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
362 |
"/ ST/X has (currently) no Double, but Float is what ST-80's Double is ... |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
363 |
"/ |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
364 |
Smalltalk at:#Double put:Float. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
365 |
|
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
366 |
Smalltalk at:#Browser put:SystemBrowser. |
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
355
diff
changeset
|
367 |
! |
143
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
133
diff
changeset
|
368 |
|
71dc5ec7ef26
Renamed NewLauncher to Launcher.
Stefan Vogel <sv@exept.de>
parents:
133
diff
changeset
|
369 |
"/ |
41 | 370 |
"/ read private (per user) stuff |
25 | 371 |
"/ |
195 | 372 |
'smalltalk.rc [info]: reading ''private.rc'' ...' infoPrintCR. |
10 | 373 |
Smalltalk fileIn:'private.rc'. |
5 | 374 |
|
25 | 375 |
"/ |
169 | 376 |
"/ read saved configuration settings (if any) |
377 |
"/ |
|
195 | 378 |
"/ 'smalltalk.rc [info]: reading ''settings.stx'' ...' infoPrintCR. |
169 | 379 |
Smalltalk fileIn:'settings.stx'. |
355
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
380 |
! |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
381 |
|
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
382 |
"/ |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
383 |
"/ just a quick check, if this ST/X installation seems to |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
384 |
"/ be halfway complete (it happened to some people, that |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
385 |
"/ their source/resource directories were not installed) |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
386 |
"/ - better to warn early ... |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
387 |
"/ |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
388 |
|anyWrong missing| |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
389 |
Smalltalk isStandAloneApp ifFalse:[ |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
390 |
anyWrong := false. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
391 |
missing := ''. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
392 |
(Smalltalk getSystemFileName:'resources/SBrowser.rs') isNil ifTrue:[ |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
393 |
'***********************************************************************' errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
394 |
'***** ATTENTION: please check installation of your >>resource<< files' errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
395 |
'***** I will not be able to give non-english messages' errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
396 |
anyWrong := true. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
397 |
missing := '''resources'' '. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
398 |
]. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
399 |
(Smalltalk getSystemFileName:'source/Object.st') isNil ifTrue:[ |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
400 |
(Smalltalk getSystemFileName:'source/source.zip') isNil ifTrue:[ |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
401 |
(Smalltalk getSystemFileName:'source/libbasic.zip') isNil ifTrue:[ |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
402 |
(Smalltalk getSourceFileName:'libbasic/Object.st') isNil ifTrue:[ |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
403 |
"/ |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
404 |
"/ there may still be a SourceCodeManager ... |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
405 |
"/ |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
406 |
(Smalltalk at:#SourceCodeManager) isNil ifTrue:[ |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
407 |
'***********************************************************************' errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
408 |
'***** ATTENTION: please check installation of your >>source<< files' errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
409 |
'***** ' errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
410 |
'***** the browser/debugger may not be able to show sourcecode.' errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
411 |
'***** Also, autoloading may fail if sourceFiles are missing.' errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
412 |
anyWrong := true. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
413 |
missing := missing , '''source'' '. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
414 |
] |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
415 |
] |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
416 |
] |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
417 |
] |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
418 |
]. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
419 |
(Smalltalk getSystemFileName:'bitmaps/SBrowser.xbm') isNil ifTrue:[ |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
420 |
'***********************************************************************' errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
421 |
'***** ATTENTION: please check installation of your >>bitmap<< files' errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
422 |
anyWrong := true. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
423 |
missing := missing , '''bitmaps'' '. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
424 |
]. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
425 |
(Smalltalk getSystemFileName:'resources/normal.style') isNil ifTrue:[ |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
426 |
'***********************************************************************' errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
427 |
'***** ATTENTION: please check installation of your >>style<< files' errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
428 |
'***** I will use a plain b&w viewStyle as a fallBack' errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
429 |
anyWrong := true. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
430 |
missing := missing , '''resources'' '. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
431 |
]. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
432 |
|
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
433 |
anyWrong ifTrue:[ |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
434 |
'*****' errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
435 |
'***** directory(s) named: ' errorPrint. missing errorPrint. 'incomplete/not existing' errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
436 |
'***** I could not find the missing directory along your path,' errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
437 |
'***** which is:' errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
438 |
Smalltalk systemPath do:[:dir | |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
439 |
('***** ' , dir storeString) errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
440 |
]. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
441 |
|
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
442 |
'*****' errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
443 |
'***** Try: "make source bitmaps resources styles"' errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
444 |
'***** or: "make symlinks" to fix this.' errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
445 |
'***********************************************************************' errorPrintCR. |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
446 |
] |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
447 |
] |
007bd12bd854
check for source access possible AFTER reading private.rc
Claus Gittinger <cg@exept.de>
parents:
336
diff
changeset
|
448 |
! |
169 | 449 |
|
450 |
"/ |
|
451 |
"/ set the package to some useful default |
|
452 |
"/ |
|
453 |
Project notNil ifTrue:[ |
|
454 |
Project setDefaultProject. |
|
455 |
Project current packageName:#'private'. |
|
456 |
]. |
|
457 |
||
458 |
"/ |
|
152 | 459 |
"/ if error occurs, and debugger has problems coming up, |
460 |
"/ uncomment the following ... |
|
25 | 461 |
"/ |
10 | 462 |
"/ Debugger := MiniDebugger. |
0 | 463 |
|
152 | 464 |
"/ |
465 |
"/ save an initial image; this will speedup the next startup |
|
466 |
"/ (since all autoload-stuff will already be initialized) |
|
467 |
"/ |
|
153 | 468 |
|
226 | 469 |
"/ 'st.img' asFilename exists ifFalse:[ |
470 |
"/ |doneWithStartupStuff| |
|
471 |
"/ |
|
472 |
"/ doneWithStartupStuff := Semaphore new. |
|
473 |
"/ |
|
474 |
"/ Smalltalk addStartBlock:[ |
|
250 | 475 |
"/ [ |
476 |
"/ doneWithStartupStuff wait. |
|
226 | 477 |
"/ 'smalltalk.rc [info]: saving initial image for faster future startup ...' infoPrintCR. |
478 |
"/ ObjectMemory primSnapShotOn:'st.img' |
|
250 | 479 |
"/ ] forkAt:1 |
226 | 480 |
"/ ]. |
481 |
"/ |
|
482 |
"/ Smalltalk addStartBlock:[ |
|
250 | 483 |
"/ [ |
484 |
"/ Delay waitForSeconds:10. |
|
485 |
"/ doneWithStartupStuff signal |
|
486 |
"/ ] forkAt:1 |
|
226 | 487 |
"/ ]. |
488 |
"/ ]. |
|
86 | 489 |
! |