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