author | Claus Gittinger <cg@exept.de> |
Mon, 19 Dec 2005 19:04:13 +0100 | |
changeset 672 | 43a67655f4f2 |
parent 656 | 33c547d1a706 |
child 702 | b13ba5eb7981 |
permissions | -rw-r--r-- |
12 | 1 |
"/ |
2 |
"/ $Header$ |
|
3 |
"/ |
|
656 | 4 |
"/ This file is processed very early at initial startup (before any rc script) |
12 | 5 |
"/ - not when resuming an image. |
6 |
"/ |
|
0 | 7 |
|
656 | 8 |
"/ |
446 | 9 |
"/ set the package for changes done below |
656 | 10 |
"/ |
24 | 11 |
Project notNil ifTrue:[ |
446 | 12 |
|p| |
13 |
||
14 |
p := Project new. |
|
656 | 15 |
p package:#'patches'. |
446 | 16 |
p comment:'only for patches'. |
17 |
Project current:p. |
|
24 | 18 |
]. |
19 |
||
656 | 20 |
'patches [info]: installing patches...' infoPrintCR. |
174 | 21 |
! |
125 | 22 |
|
672 | 23 |
"/ read patches from two patch-directories, called 'stxPatches' and 'userPatches'. |
24 |
"/ (in the future, patch-sets will be delivered for that directory in the future) |
|
25 |
"/ This is not yet done, but we are prepared here for this ... |
|
26 |
"/ |
|
27 |
"/ Patches from that directory are read in alphabetic order; |
|
358
14a45495e3d8
autoloaded classes must be read after the host.rc file;
Claus Gittinger <cg@exept.de>
parents:
323
diff
changeset
|
28 |
"/ patches will be named them p_nnnn.st, where nnnn is a sequence-nr. |
291
b6ece4a96c36
preps to read patchFiles from stxPatches directory
Claus Gittinger <cg@exept.de>
parents:
284
diff
changeset
|
29 |
|
672 | 30 |
#( |
31 |
'stxPatches' |
|
32 |
'userPatches' |
|
33 |
) do:[:patchDirName | |
|
34 |
|patchDirOrNil patchDir| |
|
291
b6ece4a96c36
preps to read patchFiles from stxPatches directory
Claus Gittinger <cg@exept.de>
parents:
284
diff
changeset
|
35 |
|
672 | 36 |
patchDirOrNil := Smalltalk getSystemFileName:patchDirName. |
37 |
patchDirOrNil notNil ifTrue:[ |
|
38 |
patchDir := patchDirOrNil asFilename. |
|
39 |
(patchDir exists and:[patchDir isDirectory and:[patchDir isReadable]]) ifTrue:[ |
|
40 |
patchDir directoryContents sort do:[:f | |
|
41 |
|fn| |
|
291
b6ece4a96c36
preps to read patchFiles from stxPatches directory
Claus Gittinger <cg@exept.de>
parents:
284
diff
changeset
|
42 |
|
672 | 43 |
fn := (patchDir construct:f) name. |
44 |
('patches [info]: reading patchFile ''' , fn , '''...') infoPrintCR. |
|
45 |
Smalltalk fileIn:fn. |
|
46 |
] |
|
47 |
] |
|
48 |
]. |
|
291
b6ece4a96c36
preps to read patchFiles from stxPatches directory
Claus Gittinger <cg@exept.de>
parents:
284
diff
changeset
|
49 |
]. |
b6ece4a96c36
preps to read patchFiles from stxPatches directory
Claus Gittinger <cg@exept.de>
parents:
284
diff
changeset
|
50 |
! |
b6ece4a96c36
preps to read patchFiles from stxPatches directory
Claus Gittinger <cg@exept.de>
parents:
284
diff
changeset
|
51 |
|
16 | 52 |
"/ |
12 | 53 |
"/ the following patches where added by the changesBrowsers 'make change a patch' |
54 |
"/ function ... |
|
55 |
"/ |
|
210 | 56 |
! |