author | Claus Gittinger <cg@exept.de> |
Thu, 23 Dec 1999 15:56:58 +0100 | |
changeset 1280 | d9e41d5640ab |
parent 1279 | b531a4cf201a |
child 1281 | e83c14253471 |
permissions | -rw-r--r-- |
0 | 1 |
Object subclass:#STXInstaller |
1279 | 2 |
instanceVariableNames:'stxLibDir stxLibBinDir stxBinDir stxPkgDir stxDocDir stxTopDir |
3 |
installDocFiles installSourceFiles installSTCFiles |
|
4 |
installGoodyFiles fullDir actionPercentageHolder actionTextHolder |
|
5 |
commandTraceView resources dfHolder copyProcess installWhat' |
|
1139 | 6 |
classVariableNames:'LastPartialDir LastFullDir' |
0 | 7 |
poolDictionaries:'' |
8 |
category:'eXept-tools' |
|
9 |
! |
|
10 |
||
11 |
||
28 | 12 |
!STXInstaller class methodsFor:'startup'! |
0 | 13 |
|
14 |
open |
|
15 |
^ self new open |
|
16 |
||
11 | 17 |
" |
18 |
STXInstaller open |
|
19 |
" |
|
1 | 20 |
! ! |
21 |
||
22 |
!STXInstaller methodsFor:'defaults'! |
|
23 |
||
24 |
defaultBinDirs |
|
1132 | 25 |
|dirs stxRel| |
1 | 26 |
|
1132 | 27 |
stxRel := self smalltalkRelease. |
1 | 28 |
dirs := OrderedCollection new. |
1119 | 29 |
|
30 |
OperatingSystem isMSWINDOWSlike ifTrue:[ |
|
1132 | 31 |
dirs add:'c:\Programme\eXept\SmalltalkX\' , stxRel , '\bin'. |
32 |
dirs add:'c:\Programme\SmalltalkX\' , stxRel , '\bin'. |
|
33 |
dirs add:'c:\SmalltalkX\' , stxRel , '\bin'. |
|
1119 | 34 |
] ifFalse:[ |
1132 | 35 |
dirs add:'/opt/smalltalk/' , stxRel , '/bin'. |
1119 | 36 |
dirs add:'/usr/local/bin'. |
37 |
dirs add:'/usr/bin'. |
|
38 |
||
39 |
dirs add:(Filename homeDirectory constructString:'bin'). |
|
40 |
dirs add:((Filename homeDirectory |
|
41 |
construct:'stx') |
|
42 |
constructString:'bin'). |
|
43 |
dirs add:'/tmp/stxbin'. |
|
44 |
('/home' asFilename exists and:['/home' asFilename isDirectory]) ifTrue:[ |
|
45 |
dirs add:'/home/stx/bin'. |
|
46 |
]. |
|
47 |
('/home2' asFilename exists and:['/home2' asFilename isDirectory]) ifTrue:[ |
|
48 |
dirs add:'/home2/stx/bin'. |
|
49 |
]. |
|
3 | 50 |
]. |
51 |
||
52 |
"/ dirs := dirs select:[:path | |
|
53 |
"/ |f| |
|
54 |
"/ |
|
55 |
"/ f := path asFilename. |
|
56 |
"/ f exists and:[f isDirectory]]. |
|
1117
657dde1e749d
new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents:
1010
diff
changeset
|
57 |
^ dirs "sort" |
1 | 58 |
|
1119 | 59 |
"Created: / 18.7.1996 / 19:43:00 / cg" |
1132 | 60 |
"Modified: / 31.5.1999 / 12:11:48 / cg" |
1 | 61 |
! |
62 |
||
678 | 63 |
defaultFullDirs |
64 |
|dirs| |
|
65 |
||
66 |
dirs := OrderedCollection new. |
|
67 |
dirs add:(Filename homeDirectory constructString:'stxDevelop'). |
|
68 |
dirs add:((Filename homeDirectory |
|
69 |
construct:'stx') |
|
70 |
constructString:'develop'). |
|
71 |
('/home' asFilename exists and:['/home' asFilename isDirectory]) ifTrue:[ |
|
72 |
dirs add:'/home/stx/develop'. |
|
73 |
]. |
|
74 |
||
1117
657dde1e749d
new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents:
1010
diff
changeset
|
75 |
^ dirs "sort" |
678 | 76 |
|
77 |
"Modified: / 18.7.1996 / 19:45:08 / cg" |
|
78 |
"Created: / 25.2.1998 / 17:14:43 / cg" |
|
79 |
! |
|
80 |
||
1139 | 81 |
defaultInstDirs |
82 |
|dirs d stxRel| |
|
83 |
||
84 |
stxRel := self smalltalkRelease. |
|
85 |
dirs := OrderedCollection new. |
|
86 |
||
87 |
OperatingSystem isMSWINDOWSlike ifTrue:[ |
|
88 |
dirs add:'c:\Programme\eXept\SmalltalkX\' , stxRel. |
|
89 |
dirs add:'c:\Programme\SmalltalkX\' , stxRel. |
|
90 |
dirs add:'c:\SmalltalkX\' , stxRel. |
|
91 |
] ifFalse:[ |
|
92 |
dirs add:'/opt/smalltalk/' , stxRel. |
|
93 |
dirs add:'/usr/local/smalltalkX'. |
|
94 |
||
95 |
d := (Filename homeDirectory constructString:'smalltalkX'). |
|
96 |
(dirs includes:d) ifFalse:[dirs add:d]. |
|
97 |
d := (Filename homeDirectory constructString:'stx'). |
|
98 |
(dirs includes:d) ifFalse:[dirs add:d]. |
|
99 |
d := '/tmp/stx'. |
|
100 |
(dirs includes:d) ifFalse:[dirs add:d]. |
|
101 |
('/home' asFilename exists and:['/home' asFilename isDirectory]) ifTrue:[ |
|
102 |
d := '/home/stx'. |
|
103 |
(dirs includes:d) ifFalse:[dirs add:d]. |
|
104 |
]. |
|
105 |
('/home2' asFilename exists and:['/home2' asFilename isDirectory]) ifTrue:[ |
|
106 |
d := '/home2/stx'. |
|
107 |
(dirs includes:d) ifFalse:[dirs add:d]. |
|
108 |
]. |
|
109 |
]. |
|
110 |
||
111 |
"/ dirs := dirs select:[:path | |
|
112 |
"/ |f| |
|
113 |
"/ |
|
114 |
"/ f := path asFilename. |
|
115 |
"/ f exists and:[f isDirectory]]. |
|
116 |
^ dirs "sort" |
|
117 |
||
118 |
"Created: / 18.7.1996 / 19:43:00 / cg" |
|
119 |
"Modified: / 31.5.1999 / 18:32:17 / cg" |
|
120 |
! |
|
121 |
||
24 | 122 |
defaultLibBinDirs |
1132 | 123 |
|dirs stxRel| |
24 | 124 |
|
1132 | 125 |
stxRel := self smalltalkRelease. |
24 | 126 |
dirs := OrderedCollection new. |
1119 | 127 |
OperatingSystem isMSWINDOWSlike ifTrue:[ |
1132 | 128 |
dirs add:'c:\Programme\eXept\SmalltalkX\' , stxRel , '\lib'. |
129 |
dirs add:'c:\Programme\SmalltalkX\' , stxRel , '\lib'. |
|
130 |
dirs add:'c:\SmalltalkX\' , stxRel , '\lib'. |
|
1119 | 131 |
] ifFalse:[ |
1132 | 132 |
dirs add:'/opt/smalltalk/' , stxRel , '/lib'. |
1119 | 133 |
dirs add:'/usr/local/lib'. |
134 |
dirs add:'/usr/lib'. |
|
135 |
dirs add:'/lib'. |
|
136 |
dirs add:(Filename homeDirectory |
|
137 |
constructString:'lib'). |
|
24 | 138 |
|
1119 | 139 |
dirs add:((Filename homeDirectory |
140 |
construct:'stx') |
|
141 |
constructString:'lib'). |
|
142 |
dirs add:'/tmp/stxlib'. |
|
143 |
dirs add:'/home/stx/lib'. |
|
144 |
dirs add:'/home2/stx/lib'. |
|
145 |
]. |
|
24 | 146 |
^ dirs sort |
147 |
||
1119 | 148 |
"Created: / 18.7.1996 / 19:43:21 / cg" |
1132 | 149 |
"Modified: / 31.5.1999 / 12:12:17 / cg" |
24 | 150 |
! |
151 |
||
1 | 152 |
defaultLibDirs |
1132 | 153 |
|dirs stxRel| |
1 | 154 |
|
1132 | 155 |
stxRel := self smalltalkRelease. |
1 | 156 |
dirs := OrderedCollection new. |
1119 | 157 |
OperatingSystem isMSWINDOWSlike ifTrue:[ |
1132 | 158 |
dirs add:'c:\Programme\eXept\SmalltalkX\' , stxRel , '\lib'. |
159 |
dirs add:'c:\Programme\SmalltalkX\' , stxRel , '\lib'. |
|
160 |
dirs add:'c:\SmalltalkX\' , stxRel , '\lib'. |
|
1119 | 161 |
] ifFalse:[ |
1132 | 162 |
dirs add:'/opt/smalltalk/' , stxRel , '/lib'. |
1119 | 163 |
dirs add:'/usr/local/lib/smalltalk'. |
164 |
dirs add:'/usr/lib/smalltalk'. |
|
165 |
dirs add:((Filename homeDirectory |
|
166 |
construct:'lib') |
|
167 |
constructString:'smalltalk'). |
|
168 |
dirs add:((Filename homeDirectory |
|
169 |
construct:'stx') |
|
170 |
constructString:'lib'). |
|
171 |
dirs add:'/tmp/stxlib'. |
|
172 |
dirs add:'/home/stx/lib'. |
|
173 |
dirs add:'/home2/stx/lib'. |
|
174 |
]. |
|
3 | 175 |
|
176 |
"/ dirs := dirs select:[:path | |
|
177 |
"/ |f| |
|
178 |
"/ |
|
179 |
"/ f := path asFilename. |
|
180 |
"/ f exists and:[f isDirectory]]. |
|
1117
657dde1e749d
new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents:
1010
diff
changeset
|
181 |
^ dirs "sort" |
1 | 182 |
|
1119 | 183 |
"Created: / 18.7.1996 / 19:43:21 / cg" |
1132 | 184 |
"Modified: / 31.5.1999 / 12:12:30 / cg" |
11 | 185 |
! |
0 | 186 |
|
11 | 187 |
directoriesToMake |
1138 | 188 |
|dirsToMake docDir docOnlineDir| |
0 | 189 |
|
11 | 190 |
dirsToMake := OrderedCollection new. |
1010 | 191 |
installWhat == #full ifTrue:[ |
678 | 192 |
dirsToMake add:fullDir. |
193 |
] ifFalse:[ |
|
194 |
dirsToMake add:stxBinDir. |
|
195 |
dirsToMake add:stxLibDir. |
|
196 |
dirsToMake add:stxLibBinDir. |
|
1279 | 197 |
dirsToMake add:stxDocDir. |
198 |
docOnlineDir := stxDocDir asFilename construct:'online'. |
|
199 |
dirsToMake add:docOnlineDir name. |
|
200 |
dirsToMake add:(docOnlineDir constructString:'english'). |
|
1138 | 201 |
dirsToMake add:(docOnlineDir constructString:'german'). |
202 |
dirsToMake add:(docOnlineDir constructString:'french'). |
|
203 |
dirsToMake add:(docOnlineDir constructString:'italian'). |
|
1137 | 204 |
installGoodyFiles ifTrue:[ |
205 |
dirsToMake add:(stxLibDir asFilename constructString:'goodies'). |
|
206 |
]. |
|
678 | 207 |
]. |
208 |
^ dirsToMake |
|
0 | 209 |
|
1138 | 210 |
"Modified: / 31.5.1999 / 17:52:03 / cg" |
11 | 211 |
! |
212 |
||
73 | 213 |
listOfOptionalPackages |
214 |
^ #( |
|
215 |
'libDB' |
|
216 |
'clients/CBrowser' |
|
217 |
'libcompat' |
|
218 |
'libxt' |
|
219 |
||
220 |
||
221 |
"/ mhmh - these should not be needed here ... |
|
222 |
||
223 |
'projects/smalltalk/bitmaps/javaImages' |
|
224 |
'doc/online/english/overview/icons' |
|
225 |
) |
|
226 |
||
227 |
"Created: 2.3.1997 / 12:39:59 / cg" |
|
228 |
"Modified: 2.3.1997 / 13:24:41 / cg" |
|
229 |
! |
|
230 |
||
1117
657dde1e749d
new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents:
1010
diff
changeset
|
231 |
smalltalkRelease |
657dde1e749d
new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents:
1010
diff
changeset
|
232 |
^ Smalltalk majorVersionNr printString |
657dde1e749d
new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents:
1010
diff
changeset
|
233 |
, '.' , Smalltalk minorVersionNr printString |
657dde1e749d
new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents:
1010
diff
changeset
|
234 |
, '.' , Smalltalk revisionNr printString. |
657dde1e749d
new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents:
1010
diff
changeset
|
235 |
! |
657dde1e749d
new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents:
1010
diff
changeset
|
236 |
|
1279 | 237 |
specOfCommonFilesToCopy |
238 |
|fileSpec| |
|
239 |
||
240 |
fileSpec := #( |
|
241 |
"/ name destination subDir required mode |
|
242 |
( 'projects/smalltalk/include' #lib nil true '644' ) |
|
243 |
( 'projects/smalltalk/*.rc' #lib nil true '644' ) |
|
244 |
( 'projects/smalltalk/patches' #lib nil true '644' ) |
|
245 |
( 'COPYRIGHT' #lib nil true '644' ) |
|
246 |
( 'doc/online/german/LICENCE.STX.html' nil 'doc/online/german' true '644' ) |
|
247 |
( 'doc/online/english/LICENCE.STX.html' nil 'doc/online/english' true '644' ) |
|
248 |
||
249 |
( 'libbasic/abbrev.stc' #pkg 'stx/libbasic' true ) |
|
250 |
( 'libbasic/bitmaps' #pkg 'stx/libbasic' true ) |
|
251 |
( 'libbasic/resources' #pkg 'stx/libbasic' true ) |
|
252 |
||
253 |
( 'libbasic2/abbrev.stc' #pkg 'stx/libbasic2' true ) |
|
254 |
( 'libbasic2/bitmaps' #pkg 'stx/libbasic2' true ) |
|
255 |
( 'libbasic2/resources' #pkg 'stx/libbasic2' true ) |
|
256 |
||
257 |
( 'libbasic3/abbrev.stc' #pkg 'stx/libbasic3' true ) |
|
258 |
( 'libbasic3/bitmaps' #pkg 'stx/libbasic3' true ) |
|
259 |
( 'libbasic3/resources' #pkg 'stx/libbasic3' true ) |
|
260 |
||
261 |
( 'libboss/abbrev.stc' #pkg 'stx/libboss' true ) |
|
262 |
( 'libboss/bitmaps' #pkg 'stx/libboss' true ) |
|
263 |
( 'libboss/resources' #pkg 'stx/libboss' true ) |
|
264 |
||
265 |
( 'libcomp/abbrev.stc' #pkg 'stx/libcomp' true ) |
|
266 |
( 'libcomp/bitmaps' #pkg 'stx/libcomp' true ) |
|
267 |
( 'libcomp/resources' #pkg 'stx/libcomp' true ) |
|
268 |
||
269 |
( 'libview/abbrev.stc' #pkg 'stx/libview' true ) |
|
270 |
( 'libview/bitmaps' #pkg 'stx/libview' true ) |
|
271 |
( 'libview/resources' #pkg 'stx/libview' true ) |
|
272 |
||
273 |
( 'libview2/abbrev.stc' #pkg 'stx/libview2' true ) |
|
274 |
( 'libview2/bitmaps' #pkg 'stx/libview2' true ) |
|
275 |
( 'libview2/resources' #pkg 'stx/libview2' true ) |
|
276 |
||
277 |
( 'libwidg/abbrev.stc' #pkg 'stx/libwidg' true ) |
|
278 |
( 'libwidg/bitmaps' #pkg 'stx/libwidg' true ) |
|
279 |
( 'libwidg/resources' #pkg 'stx/libwidg' true ) |
|
280 |
||
281 |
( 'libwidg2/abbrev.stc' #pkg 'stx/libwidg2' true ) |
|
282 |
( 'libwidg2/bitmaps' #pkg 'stx/libwidg2' true ) |
|
283 |
( 'libwidg2/resources' #pkg 'stx/libwidg2' true ) |
|
284 |
||
285 |
( 'libwidg3/abbrev.stc' #pkg 'stx/libwidg3' true ) |
|
286 |
( 'libwidg3/bitmaps' #pkg 'stx/libwidg2' true ) |
|
287 |
( 'libwidg3/resources' #pkg 'stx/libwidg2' true ) |
|
288 |
||
289 |
( 'libtool/abbrev.stc' #pkg 'stx/libtool' true ) |
|
290 |
( 'libtool/bitmaps' #pkg 'stx/libtool' true ) |
|
291 |
( 'libtool/resources' #pkg 'stx/libtool' true ) |
|
292 |
||
293 |
( 'libtool2/abbrev.stc' #pkg 'stx/libtool2' true ) |
|
294 |
( 'libtool2/bitmaps' #pkg 'stx/libtool2' true ) |
|
295 |
( 'libtool2/resources' #pkg 'stx/libtool2' true ) |
|
296 |
||
297 |
( 'libui/abbrev.stc' #pkg 'stx/libui' true ) |
|
298 |
( 'libui/bitmaps' #pkg 'stx/libui' true ) |
|
299 |
( 'libui/resources' #pkg 'stx/libui' true ) |
|
300 |
||
301 |
( 'libhtml/abbrev.stc' #pkg 'stx/libhtml' true ) |
|
302 |
( 'libhtml/bitmaps' #pkg 'stx/libhtml' true ) |
|
303 |
( 'libhtml/resources' #pkg 'stx/libhtml' true ) |
|
304 |
||
305 |
( 'libodbc/abbrev.stc' #pkg 'stx/libodbc' true ) |
|
306 |
( 'libodbc/bitmaps' #pkg 'stx/libodbc' true ) |
|
307 |
( 'libodbc/resources' #pkg 'stx/libodbc' true ) |
|
308 |
||
309 |
( 'libopengl/abbrev.stc' #pkg 'stx/libopengl' true ) |
|
310 |
( 'libopengl/bitmaps' #pkg 'stx/libopengl' true ) |
|
311 |
( 'libopengl/resources' #pkg 'stx/libopengl' true ) |
|
312 |
||
313 |
( 'libjava/abbrev.stc' #pkg 'stx/libjava' true ) |
|
314 |
( 'libjava/bitmaps' #pkg 'stx/libjava' true ) |
|
315 |
( 'libjava/resources' #pkg 'stx/libjava' true ) |
|
316 |
). |
|
317 |
||
318 |
installDocFiles ifTrue:[ |
|
319 |
fileSpec := fileSpec , #( |
|
320 |
( 'doc' #lib nil false '644' ) |
|
321 |
). |
|
322 |
]. |
|
323 |
||
324 |
installSourceFiles ifTrue:[ |
|
325 |
fileSpec := fileSpec , #( |
|
326 |
( 'libbasic/*.st' #pkg 'stx/libbasic/source' false ) |
|
327 |
( 'libbasic2/*.st' #pkg 'stx/libbasic2/source' false ) |
|
328 |
( 'libbasic3/*.st' #pkg 'stx/libbasic3/source' false ) |
|
329 |
( 'libboss/*.st' #pkg 'stx/libboss/source' false ) |
|
330 |
( 'libcomp/*.st' #pkg 'stx/libcomp/source' false ) |
|
331 |
( 'libview/*.st' #pkg 'stx/libview/source' false ) |
|
332 |
( 'libview2/*.st' #pkg 'stx/libview2/source' false ) |
|
333 |
( 'libwidg/*.st' #pkg 'stx/libwidg/source' false ) |
|
334 |
( 'libwidg2/*.st' #pkg 'stx/libwidg2/source' false ) |
|
335 |
( 'libwidg3/*.st' #pkg 'stx/libwidg3/source' false ) |
|
336 |
( 'libtool/*.st' #pkg 'stx/libtool/source' false ) |
|
337 |
( 'libtool2/*.st' #pkg 'stx/libtool2/source' false ) |
|
338 |
( 'libui/*.st' #pkg 'stx/libui/source' false ) |
|
339 |
( 'libhtml/*.st' #pkg 'stx/libhtml/source' false ) |
|
340 |
( 'libodbc/*.st' #pkg 'stx/libodbc/source' false ) |
|
341 |
( 'libopengl/*.st' #pkg 'stx/libopengl/source' false ) |
|
342 |
( 'libjava/*.st' #pkg 'stx/libjava/source' false ) |
|
343 |
). |
|
344 |
]. |
|
345 |
||
346 |
installSTCFiles ifTrue:[ |
|
347 |
fileSpec := fileSpec , #( |
|
348 |
( 'include' #lib nil false '644' ) |
|
349 |
( 'configurations' #lib nil false '644' ) |
|
350 |
( 'configurations/PACKS' #lib 'configurations' false '644' ) |
|
351 |
( 'configurations/my*' #lib 'configurations' false '644' ) |
|
352 |
( 'configurations/vendor*' #lib 'configurations' false '644' ) |
|
353 |
( 'rules' #lib nil false '644' ) |
|
354 |
). |
|
355 |
]. |
|
356 |
||
357 |
installGoodyFiles ifTrue:[ |
|
358 |
fileSpec := fileSpec , #( |
|
359 |
( 'goodies/*.st' #pkg 'stx/goodies/source' false '644' ) |
|
360 |
( 'goodies/*.chg' #pkg 'stx/goodies/source' false '644' ) |
|
361 |
( 'goodies/rdoit/rdoit' #bin nil false '755' ) |
|
362 |
). |
|
363 |
]. |
|
364 |
||
365 |
||
366 |
^ fileSpec |
|
367 |
||
368 |
"Modified: / 30.4.1999 / 18:02:22 / cg" |
|
369 |
"Created: / 2.5.1999 / 13:17:37 / cg" |
|
370 |
! |
|
371 |
||
11 | 372 |
specOfFilesToCopy |
1119 | 373 |
OperatingSystem isMSWINDOWSlike ifTrue:[ |
374 |
^ self specOfWindowsFilesToCopy |
|
375 |
]. |
|
376 |
^ self specOfUnixFilesToCopy |
|
377 |
||
378 |
"Modified: / 2.5.1999 / 13:17:59 / cg" |
|
379 |
! |
|
380 |
||
381 |
specOfUnixFilesToCopy |
|
11 | 382 |
|fileSpec| |
0 | 383 |
|
1279 | 384 |
fileSpec := self specOfCommonFilesToCopy. |
385 |
||
386 |
fileSpec := fileSpec , #( |
|
27 | 387 |
"/ name destination subDir required mode |
12
6cb00d713d4d
LICENSE texts must always be installed
Claus Gittinger <cg@exept.de>
parents:
11
diff
changeset
|
388 |
( 'projects/smalltalk/smalltalk' #bin nil true '755' ) |
27 | 389 |
( 'projects/smalltalk/stx' #bin nil true '755' ) |
5 | 390 |
). |
0 | 391 |
|
5 | 392 |
installSTCFiles ifTrue:[ |
393 |
fileSpec := fileSpec , #( |
|
24 | 394 |
( 'stc/stc' #bin nil false '755' ) |
395 |
( 'rules/stmkmp' #bin nil false '755' ) |
|
396 |
( 'rules/stmkmf' #bin nil false '755' ) |
|
397 |
( 'configurations' #lib nil false '644' ) |
|
398 |
( 'configurations/PACKS' #lib 'configurations' false '644' ) |
|
399 |
( 'configurations/my*' #lib 'configurations' false '644' ) |
|
400 |
( 'configurations/vendor*' #lib 'configurations' false '644' ) |
|
5 | 401 |
|
276 | 402 |
( 'support/VGL/vogl/src/libvogl.*' #lib 'lib' false '644' ) |
403 |
( 'support/VGL/vogl/src/*.h' #lib 'include' false '644' ) |
|
404 |
( 'support/DLD/dld-3.2.5/libdld.*' #lib 'lib' false '644' ) |
|
405 |
||
406 |
( 'goodies/persistency/db-1.6/PORT/libdb.*' #lib 'lib' false '644' ) |
|
0 | 407 |
|
1279 | 408 |
( 'librun/librun.o' #libBin nil false '644' ) |
409 |
( 'librun/librun.a' #libBin nil false '644' ) |
|
410 |
( 'libbasic/libbasic.o' #libBin nil false '644' ) |
|
411 |
( 'libbasic2/libbasic2.o' #libBin nil false '644' ) |
|
412 |
( 'libbasic3/libbasic3.o' #libBin nil false '644' ) |
|
413 |
( 'libhtml/libhtml.o' #libBin nil false '644' ) |
|
414 |
( 'libcomp/libcomp.o' #libBin nil false '644' ) |
|
276 | 415 |
( 'libcomp/ObjFL*.o' #libBin nil false '644' ) |
416 |
( 'libcomp/ObjFL*.obj' #libBin nil false '644' ) |
|
417 |
( 'libcomp/ObjFL*.so' #libBin nil false '644' ) |
|
1279 | 418 |
( 'libview/libview.o' #libBin nil false '644' ) |
276 | 419 |
( 'libview/GLX*.o' #libBin nil false '644' ) |
420 |
( 'libview/GLX*.obj' #libBin nil false '644' ) |
|
421 |
( 'libview/GLX*.so' #libBin nil false '644' ) |
|
422 |
( 'libview/XW*.o' #libBin nil false '644' ) |
|
423 |
( 'libview/XW*.obj' #libBin nil false '644' ) |
|
424 |
( 'libview/XW*.so' #libBin nil false '644' ) |
|
1279 | 425 |
( 'libview2/libview2.o' #libBin nil false '644' ) |
426 |
( 'libwidg/libwidg.o' #libBin nil false '644' ) |
|
427 |
( 'libwidg2/libwidg2.o' #libBin nil false '644' ) |
|
428 |
( 'libwidg3/libwidg3.o' #libBin nil false '644' ) |
|
429 |
( 'libui/libui.o' #libBin nil false '644' ) |
|
430 |
( 'libjava/libjava.o' #libBin nil false '644' ) |
|
276 | 431 |
|
27 | 432 |
"/ ( 'libsnmp/libsnmp.*' #libBin nil false '644' ) |
433 |
"/ ( 'contrib/libPVM/libPVM.*' #libBin nil false '644' ) |
|
1279 | 434 |
( 'goodies/persistency/libdbase.o' #libBin nil false '644' ) |
27 | 435 |
"/ ( 'libtable/libtable.*' #libBin nil false '644' ) |
1279 | 436 |
( 'libtool/libtool.o' #libBin nil false '644' ) |
437 |
( 'libtool2/libtool2.o' #libBin nil false '644' ) |
|
27 | 438 |
"/ ( 'libxt/libxt.*' #libBin nil false '644' ) |
439 |
"/ ( 'librt/librt.*' #libBin nil false '644' ) |
|
5 | 440 |
). |
441 |
]. |
|
0 | 442 |
|
5 | 443 |
installGoodyFiles ifTrue:[ |
444 |
fileSpec := fileSpec , #( |
|
445 |
( 'goodies/rdoit/rdoit' #bin nil false '755' ) |
|
446 |
). |
|
447 |
]. |
|
0 | 448 |
|
11 | 449 |
^ fileSpec |
450 |
||
1119 | 451 |
"Modified: / 30.4.1999 / 18:02:22 / cg" |
452 |
"Created: / 2.5.1999 / 13:17:37 / cg" |
|
453 |
! |
|
454 |
||
455 |
specOfWindowsFilesToCopy |
|
456 |
|fileSpec| |
|
457 |
||
1279 | 458 |
fileSpec := self specOfCommonFilesToCopy. |
459 |
||
460 |
fileSpec := fileSpec , #( |
|
1119 | 461 |
"/ name destination subDir required |
1132 | 462 |
( 'projects\smalltalk\smalltalk.bat' #bin nil true ) |
463 |
( 'projects\smalltalk\stx.exe' #bin nil true ) |
|
464 |
( 'projects\smalltalk\stxspawn.exe' #bin nil true ) |
|
1279 | 465 |
( 'projects\smalltalk\*.dll' #bin nil true ) |
1119 | 466 |
). |
467 |
||
468 |
installSTCFiles ifTrue:[ |
|
469 |
fileSpec := fileSpec , #( |
|
1132 | 470 |
( 'projects\smalltalk\stc.exe' #bin nil false ) |
471 |
( 'libbc\*.lib' #lib nil false ) |
|
1279 | 472 |
( 'rules' #lib nil false ) |
1119 | 473 |
). |
474 |
]. |
|
475 |
||
476 |
installGoodyFiles ifTrue:[ |
|
477 |
fileSpec := fileSpec , #( |
|
1279 | 478 |
( 'goodies/rdoit/rdoit.exe' #bin nil false ) |
1119 | 479 |
). |
480 |
]. |
|
481 |
||
482 |
^ fileSpec |
|
483 |
||
484 |
"Created: / 2.5.1999 / 13:23:06 / cg" |
|
1137 | 485 |
"Modified: / 31.5.1999 / 17:39:58 / cg" |
11 | 486 |
! ! |
487 |
||
488 |
!STXInstaller methodsFor:'installing'! |
|
489 |
||
790 | 490 |
changeWritability |
791 | 491 |
|msg| |
790 | 492 |
|
1010 | 493 |
installWhat == #full ifTrue:[ |
792 | 494 |
msg := (resources array:#('ST/X Installation' '' 'making target dir writable' '' '' '')) asStringCollection. |
790 | 495 |
|
792 | 496 |
commandTraceView showCR:(resources string:'making target dir writable ...'). |
497 |
commandTraceView endEntry. |
|
790 | 498 |
OperatingSystem executeCommand:('(cd ' , fullDir , ' ; find . -exec chmod u+w {} \;)'). |
499 |
]. |
|
500 |
||
791 | 501 |
"Created: / 17.7.1996 / 15:24:19 / cg" |
792 | 502 |
"Modified: / 20.4.1998 / 15:40:00 / cg" |
790 | 503 |
! |
504 |
||
11 | 505 |
copyFiles |
1132 | 506 |
|msg fileSpec filesToCopy numFiles nDone cmd topDir topDirPrefix| |
507 |
||
508 |
msg := (resources array:#('ST/X Installation' '' 'copying:' '' 'to:' '')) asStringCollection. |
|
678 | 509 |
|
1132 | 510 |
OperatingSystem isUNIXlike ifTrue:[ |
511 |
topDir := '../..'. |
|
512 |
topDirPrefix := '../../'. |
|
513 |
] ifFalse:[ |
|
514 |
topDir := '..\..'. |
|
515 |
topDirPrefix := '..\..\'. |
|
516 |
]. |
|
678 | 517 |
|
1010 | 518 |
installWhat == #full ifTrue:[ |
678 | 519 |
msg at:4 put:(' all from CD' asText allBold). |
520 |
msg at:6 put:' ' , (fullDir asText allBold). |
|
521 |
actionTextHolder value:nil. |
|
522 |
actionTextHolder value:msg. |
|
11 | 523 |
|
1132 | 524 |
cmd := '(cd ' , topDir , ' ; tar cf - .) | (cd ' , fullDir , ' ; tar xvf -)'. |
793
43a9a195b0f3
use tar instead of cp to copy full
Claus Gittinger <cg@exept.de>
parents:
792
diff
changeset
|
525 |
"/ "/ |
43a9a195b0f3
use tar instead of cp to copy full
Claus Gittinger <cg@exept.de>
parents:
792
diff
changeset
|
526 |
"/ "/ not all systems have cp -rv |
43a9a195b0f3
use tar instead of cp to copy full
Claus Gittinger <cg@exept.de>
parents:
792
diff
changeset
|
527 |
"/ "/ |
43a9a195b0f3
use tar instead of cp to copy full
Claus Gittinger <cg@exept.de>
parents:
792
diff
changeset
|
528 |
"/ OperatingSystem getOSType = 'linux' ifTrue:[ |
43a9a195b0f3
use tar instead of cp to copy full
Claus Gittinger <cg@exept.de>
parents:
792
diff
changeset
|
529 |
"/ cmd := 'cp -rv ../../* ' , fullDir. |
43a9a195b0f3
use tar instead of cp to copy full
Claus Gittinger <cg@exept.de>
parents:
792
diff
changeset
|
530 |
"/ ]. |
43a9a195b0f3
use tar instead of cp to copy full
Claus Gittinger <cg@exept.de>
parents:
792
diff
changeset
|
531 |
"/ commandTraceView showCR:cmd , ' ...'. |
43a9a195b0f3
use tar instead of cp to copy full
Claus Gittinger <cg@exept.de>
parents:
792
diff
changeset
|
532 |
commandTraceView showCR:'copying ...'. |
678 | 533 |
commandTraceView endEntry. |
534 |
cmd := cmd , ' 2>&1' . |
|
535 |
||
536 |
self executeCommandAndShowOutput:cmd. |
|
537 |
||
538 |
^ true |
|
539 |
]. |
|
11 | 540 |
|
541 |
fileSpec := self specOfFilesToCopy. |
|
542 |
||
0 | 543 |
filesToCopy := OrderedCollection new. |
544 |
||
545 |
fileSpec do:[:entry | |
|
8 | 546 |
|fileNames dest subDir required destDir| |
0 | 547 |
|
8 | 548 |
fileNames := entry at:1. |
0 | 549 |
dest := entry at:2. |
550 |
subDir := entry at:3. |
|
551 |
required := entry at:4. |
|
552 |
||
553 |
dest == #bin ifTrue:[ |
|
554 |
destDir := stxBinDir |
|
555 |
] ifFalse:[ |
|
24 | 556 |
dest == #libBin ifTrue:[ |
557 |
destDir := stxLibBinDir |
|
558 |
] ifFalse:[ |
|
1279 | 559 |
dest == #pkg ifTrue:[ |
560 |
destDir := stxPkgDir |
|
561 |
] ifFalse:[ |
|
562 |
dest == nil ifTrue:[ |
|
563 |
destDir := stxTopDir |
|
564 |
] ifFalse:[ |
|
565 |
destDir := stxLibDir |
|
566 |
] |
|
567 |
] |
|
24 | 568 |
] |
0 | 569 |
]. |
570 |
||
571 |
destDir := destDir asFilename. |
|
572 |
subDir notNil ifTrue:[ |
|
573 |
destDir := destDir construct:subDir |
|
574 |
]. |
|
575 |
||
8 | 576 |
filesToCopy add:(fileNames -> destDir pathName) |
0 | 577 |
]. |
578 |
||
579 |
numFiles := filesToCopy size. |
|
580 |
nDone := 0. |
|
581 |
||
582 |
filesToCopy do:[:entry | |
|
678 | 583 |
|fileName destDir cmd| |
0 | 584 |
|
585 |
fileName := entry key. |
|
586 |
destDir := entry value. |
|
587 |
||
8 | 588 |
((fileName includes:$*) |
1132 | 589 |
or:[(topDirPrefix , fileName) asFilename exists])ifTrue:[ |
4
8b68fdf7c870
better looking; show command output
Claus Gittinger <cg@exept.de>
parents:
3
diff
changeset
|
590 |
actionPercentageHolder value:(nDone / numFiles * 100) rounded. |
0 | 591 |
|
4
8b68fdf7c870
better looking; show command output
Claus Gittinger <cg@exept.de>
parents:
3
diff
changeset
|
592 |
msg at:4 put:' ' , (fileName asText allBold). |
8b68fdf7c870
better looking; show command output
Claus Gittinger <cg@exept.de>
parents:
3
diff
changeset
|
593 |
msg at:6 put:' ' , (destDir asText allBold). |
8b68fdf7c870
better looking; show command output
Claus Gittinger <cg@exept.de>
parents:
3
diff
changeset
|
594 |
actionTextHolder value:nil. |
8b68fdf7c870
better looking; show command output
Claus Gittinger <cg@exept.de>
parents:
3
diff
changeset
|
595 |
actionTextHolder value:msg. |
8b68fdf7c870
better looking; show command output
Claus Gittinger <cg@exept.de>
parents:
3
diff
changeset
|
596 |
|
73 | 597 |
((fileName includes:$*) not |
1136 | 598 |
and:[(topDirPrefix , fileName) asFilename exists not]) ifTrue:[ |
73 | 599 |
(self listOfOptionalPackages includes:fileName) ifFalse:[ |
117 | 600 |
commandTraceView showCR:('cannot copy ' , fileName , ' - not included in distribution'). |
601 |
commandTraceView endEntry. |
|
73 | 602 |
] |
603 |
] ifFalse:[ |
|
1136 | 604 |
destDir asFilename exists ifFalse:[ |
605 |
commandTraceView showCR:(resources string:'creating %1 ...' with:destDir asFilename pathName). |
|
606 |
commandTraceView endEntry. |
|
607 |
OperatingSystem recursiveCreateDirectory:destDir asFilename pathName |
|
608 |
]. |
|
1132 | 609 |
self recursiveCopy:(topDirPrefix , fileName) to:destDir. |
73 | 610 |
] |
1 | 611 |
]. |
0 | 612 |
|
613 |
nDone := nDone + 1 |
|
614 |
]. |
|
615 |
||
616 |
^ true |
|
617 |
||
678 | 618 |
" |
619 |
STXInstaller open |
|
620 |
" |
|
621 |
||
622 |
"Created: / 17.7.1996 / 15:16:20 / cg" |
|
1138 | 623 |
"Modified: / 31.5.1999 / 18:07:33 / cg" |
0 | 624 |
! |
625 |
||
626 |
createDirectories |
|
627 |
|msg dirsToMake numDirs nDone| |
|
628 |
||
11 | 629 |
msg := (resources array:#('ST/X Installation' '' 'creating directory:' '' '' '')) asStringCollection. |
0 | 630 |
|
11 | 631 |
dirsToMake := self directoriesToMake. |
0 | 632 |
|
633 |
numDirs := dirsToMake size. |
|
634 |
nDone := 0. |
|
635 |
||
636 |
dirsToMake do:[:dirName | |
|
637 |
|d errMsg stop box| |
|
638 |
||
639 |
actionPercentageHolder value:(nDone / numDirs * 100) rounded. |
|
640 |
||
4
8b68fdf7c870
better looking; show command output
Claus Gittinger <cg@exept.de>
parents:
3
diff
changeset
|
641 |
msg at:4 put:' ' , (dirName asText allBold). |
0 | 642 |
actionTextHolder value:nil. |
643 |
actionTextHolder value:msg. |
|
644 |
||
645 |
d := dirName asFilename. |
|
646 |
||
11 | 647 |
commandTraceView showCR:(resources string:'creating %1 ...' with:d pathName). |
117 | 648 |
commandTraceView endEntry. |
4
8b68fdf7c870
better looking; show command output
Claus Gittinger <cg@exept.de>
parents:
3
diff
changeset
|
649 |
|
0 | 650 |
d exists ifFalse:[ |
651 |
OperatingSystem recursiveCreateDirectory:d pathName |
|
652 |
]. |
|
653 |
||
654 |
d exists ifFalse:[ |
|
1279 | 655 |
errMsg := (resources string:'failed to create directory: %1\\Please check your permissions.' with:dirName) withCRs. |
0 | 656 |
stop := true |
657 |
] ifTrue:[ |
|
658 |
d isDirectory ifFalse:[ |
|
11 | 659 |
errMsg := resources string:'not a directory: %1' with:dirName. |
0 | 660 |
stop := true |
661 |
] ifTrue:[ |
|
662 |
(d isReadable |
|
663 |
and:[d isWritable]) ifFalse:[ |
|
11 | 664 |
errMsg := resources string:'no read/write access to directory: %1' with:dirName. |
0 | 665 |
stop := false |
666 |
] ifTrue:[ |
|
667 |
errMsg := nil |
|
668 |
] |
|
669 |
] |
|
670 |
]. |
|
671 |
||
672 |
errMsg notNil ifTrue:[ |
|
673 |
box := WarningBox new. |
|
674 |
box title:errMsg. |
|
675 |
box showAtPointerNotCovering:(WindowGroup activeGroup topViews first). |
|
1 | 676 |
stop ifTrue:[^ false]. |
0 | 677 |
]. |
678 |
||
679 |
Delay waitForSeconds:0.25. |
|
680 |
nDone := nDone + 1. |
|
681 |
]. |
|
682 |
^ true |
|
683 |
||
684 |
"Created: 17.7.1996 / 15:24:19 / cg" |
|
117 | 685 |
"Modified: 22.5.1997 / 15:06:41 / cg" |
19 | 686 |
! |
687 |
||
1134 | 688 |
createRegistryEntries |
689 |
|release msg k| |
|
690 |
||
691 |
msg := (resources array:#('ST/X Installation' '' 'creating registry entries' '' '' '')) asStringCollection. |
|
692 |
actionTextHolder value:nil. |
|
693 |
actionTextHolder value:msg. |
|
694 |
||
695 |
commandTraceView showCR:(resources string:'creating registry entries...'). |
|
696 |
commandTraceView endEntry. |
|
697 |
||
698 |
release := self smalltalkRelease. |
|
699 |
||
700 |
k := Win32OperatingSystem::RegistryEntry key:'HKEY_LOCAL_MACHINE\Software'. |
|
701 |
k := k createSubKeyNamed:'eXept'. |
|
702 |
k := k createSubKeyNamed:'Smalltalk/X'. |
|
703 |
k valueNamed:'CurrentVersion' put:release. |
|
704 |
||
705 |
k := k createSubKeyNamed:release. |
|
706 |
k valueNamed:'LibDir' put:stxLibDir. |
|
707 |
k valueNamed:'BinDir' put:stxBinDir. |
|
1279 | 708 |
k valueNamed:'DocDir' put:stxDocDir. |
709 |
k valueNamed:'PackageDirPath' put:stxPkgDir. |
|
1134 | 710 |
|
711 |
"Modified: / 31.5.1999 / 15:24:41 / cg" |
|
712 |
! |
|
713 |
||
19 | 714 |
createSymbolicLinks |
715 |
|msg dirsToMake numDirs nDone| |
|
716 |
||
1132 | 717 |
OperatingSystem isUNIXlike ifFalse:[^ self]. |
718 |
||
19 | 719 |
msg := (resources array:#('ST/X Installation' '' 'creating symbolic links' '' '' '')) asStringCollection. |
1134 | 720 |
actionTextHolder value:nil. |
721 |
actionTextHolder value:msg. |
|
19 | 722 |
|
28 | 723 |
commandTraceView showCR:(resources string:'setting up symbolic links in doc/online ...'). |
117 | 724 |
commandTraceView endEntry. |
1010 | 725 |
installWhat == #full ifTrue:[ |
678 | 726 |
OperatingSystem executeCommand:('(cd ' , fullDir , '/doc/online ; make links)'). |
727 |
] ifFalse:[ |
|
728 |
OperatingSystem executeCommand:('(cd ' , stxLibDir , '/doc/online ; make links)'). |
|
729 |
]. |
|
19 | 730 |
|
678 | 731 |
"Created: / 17.7.1996 / 15:24:19 / cg" |
1134 | 732 |
"Modified: / 31.5.1999 / 14:46:36 / cg" |
678 | 733 |
! |
734 |
||
735 |
executeCommandAndShowOutput:cmd |
|
736 |
|doneSemaphore line p| |
|
737 |
||
1119 | 738 |
OperatingSystem isMSWINDOWSlike ifTrue:[ |
739 |
^ self |
|
740 |
]. |
|
741 |
||
678 | 742 |
doneSemaphore := Semaphore new. |
743 |
||
744 |
copyProcess := [ |
|
745 |
||
746 |
p := PipeStream readingFrom:cmd. |
|
747 |
p isNil ifTrue:[ |
|
748 |
self warn:('command error. Could not execute:\\' , cmd) withCRs. |
|
749 |
] ifFalse:[ |
|
750 |
[ |
|
751 |
[p atEnd] whileFalse:[ |
|
752 |
(p readWaitWithTimeout:0.1) ifFalse:[ |
|
753 |
line := p nextLine. |
|
754 |
(line notNil and:[line notEmpty]) ifTrue:[ |
|
755 |
commandTraceView showCR:((' ' , line) asText emphasizeAllWith:(#color->Color red)). |
|
756 |
commandTraceView endEntry. |
|
757 |
] |
|
758 |
] |
|
759 |
]. |
|
760 |
p close. |
|
761 |
] valueOnUnwindDo:[ |
|
762 |
p shutDown |
|
763 |
] |
|
764 |
]. |
|
765 |
doneSemaphore signal. |
|
766 |
copyProcess := nil. |
|
767 |
] forkAt:4. |
|
768 |
||
769 |
doneSemaphore wait. |
|
770 |
||
771 |
"Created: / 25.2.1998 / 17:46:06 / cg" |
|
1119 | 772 |
"Modified: / 30.4.1999 / 18:00:43 / cg" |
73 | 773 |
! |
774 |
||
775 |
outputInitialMessage |
|
1279 | 776 |
^ self. |
777 |
||
73 | 778 |
#( |
779 |
'Notice:' |
|
780 |
'' |
|
781 |
'During the installation, you may get error messages' |
|
782 |
'complaining that some files where not found' |
|
783 |
'and could therefore not be copied.' |
|
784 |
) do:[:line | |
|
785 |
commandTraceView showCR:((resources string:line) asText emphasizeAllWith:(#color->Color blue)). |
|
786 |
commandTraceView endEntry. |
|
787 |
]. |
|
788 |
||
789 |
Delay waitForSeconds:2. |
|
790 |
||
791 |
#( |
|
792 |
'' |
|
793 |
'This is normal behavior; since the CD may contain' |
|
794 |
'broken symbolic links to non-existing packages' |
|
795 |
'which are either not contained on your ordered' |
|
276 | 796 |
'package (i.e. non-commercial) or are not required' |
797 |
'for your architecture (and therefore not contained' |
|
798 |
'on the CD).' |
|
799 |
'' |
|
73 | 800 |
) do:[:line | |
801 |
commandTraceView showCR:((resources string:line) asText emphasizeAllWith:(#color->Color blue)). |
|
802 |
commandTraceView endEntry. |
|
803 |
]. |
|
804 |
||
805 |
Delay waitForSeconds:2. |
|
806 |
||
807 |
#( |
|
808 |
'' |
|
809 |
'Please excuse this inconvenience.' |
|
810 |
'' |
|
811 |
) do:[:line | |
|
812 |
commandTraceView showCR:((resources string:line) asText emphasizeAllWith:(#color->Color blue)). |
|
813 |
commandTraceView endEntry. |
|
814 |
]. |
|
815 |
||
816 |
Delay waitForSeconds:2. |
|
817 |
||
818 |
"Created: 2.3.1997 / 12:49:52 / cg" |
|
276 | 819 |
"Modified: 8.8.1997 / 17:47:06 / cg" |
1132 | 820 |
! |
821 |
||
1279 | 822 |
recursiveCopy:src to:dst |
823 |
|cmd srcF dstF d| |
|
1132 | 824 |
|
1279 | 825 |
srcF := src asFilename. |
826 |
dstF := dst asFilename. |
|
827 |
"/ OperatingSystem isUNIXlike ifTrue:[ |
|
828 |
"/ cmd := 'cp -r ' , src , ' ' , destDir. |
|
829 |
"/ commandTraceView showCR:cmd , ' ...'. |
|
830 |
"/ commandTraceView endEntry. |
|
831 |
"/ cmd := cmd , ' 2>&1' . |
|
832 |
"/ |
|
833 |
"/ self executeCommandAndShowOutput:cmd |
|
834 |
"/ ] ifFalse:[ |
|
835 |
(#( |
|
836 |
'CVS' |
|
837 |
'not_delivered' |
|
838 |
) includes:srcF baseName) ifFalse:[ |
|
839 |
srcF baseName includesMatchCharacters ifTrue:[ |
|
840 |
srcF directory directoryContents do:[:fileName | |
|
841 |
((srcF baseName) match:fileName) ifTrue:[ |
|
842 |
(#( |
|
843 |
'CVS' |
|
844 |
'not_delivered' |
|
845 |
) includes:fileName) ifFalse:[ |
|
846 |
self recursiveCopy:(srcF directory construct:fileName) to:dstF |
|
847 |
] |
|
848 |
] |
|
849 |
] |
|
850 |
] ifFalse:[ |
|
851 |
OperatingSystem isUNIXlike ifTrue:[ |
|
852 |
commandTraceView showCR:('cp ' , srcF pathName , ' ' , dstF pathName). |
|
853 |
] ifFalse:[ |
|
854 |
commandTraceView showCR:('copy ' , srcF pathName , ' ' , dstF pathName). |
|
855 |
]. |
|
856 |
commandTraceView endEntry. |
|
857 |
||
858 |
srcF isDirectory ifFalse:[ |
|
859 |
(dstF exists and:[dstF isDirectory]) ifTrue:[ |
|
860 |
dstF := dstF construct:srcF baseName. |
|
861 |
]. |
|
862 |
srcF copyTo:dstF |
|
863 |
] ifTrue:[ |
|
864 |
d := dstF asFilename construct:srcF baseName. |
|
865 |
(d exists) ifFalse:[ |
|
866 |
d makeDirectory. |
|
867 |
]. |
|
868 |
srcF directoryContents do:[:fileName | |
|
869 |
self recursiveCopy:(srcF construct:fileName) |
|
870 |
to:d |
|
871 |
] |
|
1132 | 872 |
] |
873 |
] |
|
874 |
] |
|
1279 | 875 |
"/ ] |
1132 | 876 |
|
877 |
"Created: / 31.5.1999 / 13:05:09 / cg" |
|
878 |
"Modified: / 31.5.1999 / 13:14:19 / cg" |
|
0 | 879 |
! ! |
880 |
||
881 |
!STXInstaller methodsFor:'startup'! |
|
882 |
||
883 |
askAndInstall |
|
884 |
"/ check, if we are in the projects/smalltalk directory |
|
885 |
||
1119 | 886 |
|answer here| |
678 | 887 |
|
11 | 888 |
resources := ResourcePack for:self class. |
889 |
||
1132 | 890 |
(((here := Filename currentDirectory pathName) endsWith:'projects/smalltalk') not |
891 |
and:[(here asLowercase endsWith:'stx\binbc') not |
|
892 |
and:[(here asLowercase endsWith:'projects\smalltalk') not |
|
893 |
]]) ifTrue:[ |
|
1150 | 894 |
"/ double - check if some of my expected files exists here ... |
1151 | 895 |
('../../libbasic' asFilename exists |
896 |
and:['../../libbasic' asFilename isDirectory]) ifTrue:[ |
|
1150 | 897 |
self warn:(resources string:'Oops - current directories name seems to not end with ''/projects/smalltalk''\\Assume its OK.' withCRs). |
898 |
] ifFalse:[ |
|
899 |
self warn:(resources string:'must be in the ''projects/smalltalk'' directory'). |
|
900 |
^ self |
|
901 |
] |
|
0 | 902 |
]. |
903 |
||
678 | 904 |
answer := self askForFullInstallation. |
905 |
answer ifFalse:[^ self]. |
|
906 |
||
0 | 907 |
[self askForDestination] whileTrue:[ |
73 | 908 |
self checkForExistingInstallationAndConfirm ifTrue:[ |
909 |
self preInstall. |
|
910 |
self doInstall ifTrue:[ |
|
911 |
self postInstall. |
|
912 |
^ self |
|
913 |
]. |
|
914 |
(self confirm:(resources string:'installation failed or aborted - retry ?')) |
|
915 |
ifFalse:[ |
|
916 |
^ self |
|
917 |
] |
|
0 | 918 |
] |
919 |
]. |
|
920 |
||
1132 | 921 |
"Modified: / 31.5.1999 / 12:04:14 / cg" |
0 | 922 |
! |
923 |
||
924 |
askForDestination |
|
925 |
"open a dialog to enter destination directories" |
|
926 |
||
1010 | 927 |
installWhat == #full ifTrue:[ |
678 | 928 |
^ self askForDestinationForFullInstallation |
929 |
] ifFalse:[ |
|
930 |
^ self askForDestinationForPartialInstallation |
|
931 |
] |
|
932 |
||
933 |
" |
|
934 |
STXInstaller open |
|
935 |
" |
|
936 |
||
937 |
"Modified: / 25.2.1998 / 17:12:45 / cg" |
|
938 |
! |
|
939 |
||
940 |
askForDestinationForFullInstallation |
|
941 |
"open a dialog to enter destination directories" |
|
942 |
||
943 |
|d cm l green dark img |
|
944 |
fullDirHolder| |
|
945 |
||
946 |
LastFullDir isNil ifTrue:[ |
|
947 |
LastFullDir := (Filename homeDirectory |
|
948 |
construct:'stx') |
|
949 |
constructString:'develop' |
|
950 |
]. |
|
951 |
||
952 |
fullDirHolder := LastFullDir asValue. |
|
953 |
||
954 |
Screen current hasColors ifTrue:[ |
|
955 |
green := (Color red:0 green:80 blue:20) "darkened". |
|
956 |
dark := Color grey:10. |
|
957 |
] ifFalse:[ |
|
958 |
green := Color white. |
|
959 |
dark := Color black. |
|
960 |
]. |
|
961 |
||
962 |
d := DialogBox new. |
|
963 |
||
964 |
d label:(resources string:'ST/X Full Installation'). |
|
965 |
img := Image fromFile:'SmalltalkX.xbm'. |
|
966 |
||
967 |
l := d addTextLabel:img. |
|
968 |
l adjust:#left; foregroundColor:green backgroundColor:dark. |
|
969 |
||
970 |
l := d addTextLabel:(resources string:'Smalltalk/X CD installation (full).'). |
|
971 |
l adjust:#left; backgroundColor:dark; foregroundColor:Color white. |
|
972 |
d addVerticalSpace. |
|
973 |
d addVerticalSpace. |
|
974 |
||
975 |
d addHorizontalLine. |
|
976 |
||
977 |
l := d addTextLabel:(resources string:'ST/X development directory:'). |
|
978 |
l adjust:#left; backgroundColor:dark; foregroundColor:Color white. |
|
979 |
||
980 |
cm := ComboBoxView on:fullDirHolder. |
|
981 |
cm list:self defaultFullDirs. |
|
982 |
d |
|
983 |
addLabelledField:cm |
|
984 |
label:(resources string:'stx develop') |
|
985 |
adjust:#left |
|
986 |
tabable:true |
|
987 |
from:0.0 to:1.0 separateAtX:0.25 |
|
988 |
nameAs:'fullBox'. |
|
989 |
||
990 |
(d componentAt:'fullBox.label') backgroundColor:dark; foregroundColor:Color white. |
|
991 |
||
992 |
d addVerticalSpace. |
|
993 |
d addHorizontalLine. |
|
994 |
||
995 |
d addHelpButtonFor:'STXInstaller/installHelp.html'; |
|
996 |
addAbortButton; |
|
997 |
addOkButtonLabelled:(resources string:'install'). |
|
998 |
d extent:500@400. |
|
1151 | 999 |
d resize. "/ compute best size |
678 | 1000 |
|
1001 |
d allViewBackground:dark. |
|
1002 |
||
1003 |
d openAtCenter. |
|
1004 |
d accepted ifTrue:[ |
|
1005 |
fullDir := LastFullDir := fullDirHolder value. |
|
1006 |
d destroy. |
|
1007 |
^ true |
|
1008 |
]. |
|
1009 |
d destroy. |
|
1010 |
^ false |
|
1011 |
||
1012 |
" |
|
1013 |
STXInstaller open |
|
1014 |
" |
|
1015 |
||
1016 |
"Created: / 25.2.1998 / 17:11:37 / cg" |
|
1017 |
"Modified: / 25.2.1998 / 17:29:07 / cg" |
|
1018 |
! |
|
1019 |
||
1020 |
askForDestinationForPartialInstallation |
|
1021 |
"open a dialog to enter destination directories" |
|
1022 |
||
2 | 1023 |
|d cm l green dark img |
1132 | 1024 |
stxInstDirHolder stxLibDirHolder stxLibBinDirHolder stxBinDirHolder |
5 | 1025 |
installDocHolder installSourceHolder installSTCHolder installGoodiesHolder |
73 | 1026 |
binMegabytes libMegabytes docMegabytes stcMegabytes srcMegabytes |
1132 | 1027 |
goodyMegabytes stxRel list stxInstDir |
0 | 1028 |
| |
1029 |
||
1139 | 1030 |
binMegabytes := 20. |
73 | 1031 |
libMegabytes := 30. |
1139 | 1032 |
docMegabytes := 12. |
1117
657dde1e749d
new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents:
1010
diff
changeset
|
1033 |
stcMegabytes := 2. |
1139 | 1034 |
srcMegabytes := 20. |
1035 |
goodyMegabytes := 10. |
|
11 | 1036 |
|
1132 | 1037 |
stxRel := self smalltalkRelease. |
1038 |
||
1119 | 1039 |
OperatingSystem isMSWINDOWSlike ifTrue:[ |
1132 | 1040 |
LastPartialDir isNil ifTrue:[ |
1139 | 1041 |
LastPartialDir := 'c:\Programme\eXept\SmalltalkX\' , stxRel |
1119 | 1042 |
]. |
1132 | 1043 |
"/ LastLibDir isNil ifTrue:[ |
1044 |
"/ LastLibDir := 'c:\Programme\SmalltalkX\' , stxRel , '\lib' |
|
1045 |
"/ ]. |
|
1046 |
"/ LastLibBinDir isNil ifTrue:[ |
|
1047 |
"/ LastLibBinDir := 'c:\Programme\SmalltalkX\' , stxRel , '\lib' |
|
1048 |
"/ ]. |
|
1049 |
"/ LastBinDir isNil ifTrue:[ |
|
1050 |
"/ LastBinDir := 'c:\Programme\SmalltalkX\' , stxRel , '\bin' |
|
1051 |
"/ ]. |
|
1119 | 1052 |
] ifFalse:[ |
1132 | 1053 |
LastPartialDir isNil ifTrue:[ |
1054 |
LastPartialDir := '/opt/smalltalk/' , stxRel |
|
1119 | 1055 |
]. |
1132 | 1056 |
"/ LastLibDir isNil ifTrue:[ |
1057 |
"/ LastLibDir := '/opt/smalltalk/' , stxRel , '/lib' |
|
1058 |
"/ ]. |
|
1059 |
"/ LastLibBinDir isNil ifTrue:[ |
|
1060 |
"/ LastLibBinDir := '/opt/smalltalk/' , stxRel , '/lib' |
|
1061 |
"/ ]. |
|
1062 |
"/ LastBinDir isNil ifTrue:[ |
|
1063 |
"/ LastBinDir := '/opt/smalltalk/' , stxRel , '/bin' |
|
1064 |
"/ ]. |
|
0 | 1065 |
]. |
1066 |
||
1132 | 1067 |
stxInstDirHolder := LastPartialDir asValue. |
1068 |
"/ stxLibDirHolder := LastLibDir asValue. |
|
1069 |
"/ stxLibBinDirHolder := LastLibBinDir asValue. |
|
1070 |
"/ stxBinDirHolder := LastBinDir asValue. |
|
24 | 1071 |
|
5 | 1072 |
installDocHolder := true asValue. |
1073 |
installSourceHolder := true asValue. |
|
1074 |
installSTCHolder := true asValue. |
|
1075 |
installGoodiesHolder := true asValue. |
|
0 | 1076 |
|
1077 |
Screen current hasColors ifTrue:[ |
|
1078 |
green := (Color red:0 green:80 blue:20) "darkened". |
|
1079 |
dark := Color grey:10. |
|
1080 |
] ifFalse:[ |
|
1081 |
green := Color white. |
|
1082 |
dark := Color black. |
|
1083 |
]. |
|
1084 |
||
1085 |
d := DialogBox new. |
|
1086 |
||
1279 | 1087 |
d label:(resources string:'ST/X Standard Installation'). |
2 | 1088 |
img := Image fromFile:'SmalltalkX.xbm'. |
1089 |
||
1090 |
l := d addTextLabel:img. |
|
1091 |
l adjust:#left; foregroundColor:green backgroundColor:dark. |
|
1092 |
||
1279 | 1093 |
l := d addTextLabel:(resources string:'Smalltalk/X Standard installation (partial).'). |
0 | 1094 |
l adjust:#left; backgroundColor:dark; foregroundColor:Color white. |
1095 |
d addVerticalSpace. |
|
1096 |
d addVerticalSpace. |
|
1097 |
||
1098 |
d addHorizontalLine. |
|
1099 |
||
11 | 1100 |
l := d addTextLabel:(resources string:'Destination directories:'). |
0 | 1101 |
l adjust:#left; backgroundColor:dark; foregroundColor:Color white. |
1102 |
||
1132 | 1103 |
l := d addTextLabel:(resources string:'(the default below is recommended)'). |
678 | 1104 |
l adjust:#right; backgroundColor:dark; foregroundColor:Color white. |
1105 |
||
1132 | 1106 |
cm := ComboBoxView on:stxInstDirHolder. |
1139 | 1107 |
list := self defaultInstDirs collect:[:line | |
1132 | 1108 |
line replChar:$\ withString:'\\' |
1109 |
]. |
|
1110 |
cm list:list. |
|
0 | 1111 |
d |
1112 |
addLabelledField:cm |
|
1132 | 1113 |
label:(resources string:'install into:') |
0 | 1114 |
adjust:#left |
1115 |
tabable:true |
|
1116 |
from:0.0 to:1.0 separateAtX:0.25 |
|
1132 | 1117 |
nameAs:'instDirBox'. |
0 | 1118 |
|
1132 | 1119 |
(d componentAt:'instDirBox.label') backgroundColor:dark; foregroundColor:Color white. |
24 | 1120 |
|
1132 | 1121 |
"/ cm := ComboBoxView on:stxBinDirHolder. |
1122 |
"/ list := self defaultBinDirs collect:[:line | |
|
1123 |
"/ line replChar:$\ withString:'\\' |
|
1124 |
"/ ]. |
|
1125 |
"/ cm list:list. |
|
1126 |
"/ d |
|
1127 |
"/ addLabelledField:cm |
|
1128 |
"/ label:(resources string:'binaries') |
|
1129 |
"/ adjust:#left |
|
1130 |
"/ tabable:true |
|
1131 |
"/ from:0.0 to:1.0 separateAtX:0.25 |
|
1132 |
"/ nameAs:'binaryBox'. |
|
1133 |
"/ |
|
1134 |
"/ (d componentAt:'binaryBox.label') backgroundColor:dark; foregroundColor:Color white. |
|
1135 |
"/ |
|
1136 |
"/ cm := ComboBoxView on:stxLibBinDirHolder. |
|
1137 |
"/ cm list:self defaultLibBinDirs. |
|
1138 |
"/ d |
|
1139 |
"/ addLabelledField:cm |
|
1140 |
"/ label:(resources string:'libraries') |
|
1141 |
"/ adjust:#left |
|
1142 |
"/ tabable:true |
|
1143 |
"/ from:0.0 to:1.0 separateAtX:0.25 |
|
1144 |
"/ nameAs:'libraryBinBox'. |
|
1145 |
"/ |
|
1146 |
"/ (d componentAt:'libraryBinBox.label') backgroundColor:dark; foregroundColor:Color white. |
|
1147 |
"/ |
|
1148 |
"/ cm := ComboBoxView on:stxLibDirHolder. |
|
1149 |
"/ cm list:self defaultLibDirs. |
|
1150 |
"/ d |
|
1151 |
"/ addLabelledField:cm |
|
1152 |
"/ label:(resources string:'other files') |
|
1153 |
"/ adjust:#left |
|
1154 |
"/ tabable:true |
|
1155 |
"/ from:0.0 to:1.0 separateAtX:0.25 |
|
1156 |
"/ nameAs:'libraryBox'. |
|
1157 |
"/ |
|
1158 |
"/ (d componentAt:'libraryBox.label') backgroundColor:dark; foregroundColor:Color white. |
|
0 | 1159 |
|
5 | 1160 |
d addVerticalSpace. |
1161 |
d addHorizontalLine. |
|
1162 |
d addVerticalSpace. |
|
1163 |
||
11 | 1164 |
(d addTextLabel:(resources string:'required:')) |
5 | 1165 |
adjust:#left; foregroundColor:Color white backgroundColor:dark. |
1166 |
||
1167 |
d leftIndent:35. |
|
11 | 1168 |
(d addTextLabel:(resources string:'binaries (approx. %1 Mb)' with:binMegabytes printString)) |
5 | 1169 |
adjust:#left; foregroundColor:Color white backgroundColor:dark. |
11 | 1170 |
(d addTextLabel:(resources string:'libraries (approx. %1 Mb)' with:libMegabytes printString)) |
5 | 1171 |
adjust:#left; foregroundColor:Color white backgroundColor:dark. |
1172 |
d leftIndent:0. |
|
1173 |
||
1174 |
d addVerticalSpace. |
|
1175 |
d addHorizontalLine. |
|
1176 |
d addVerticalSpace. |
|
1177 |
||
11 | 1178 |
(d addTextLabel:(resources string:'optional:')) |
5 | 1179 |
adjust:#left; foregroundColor:Color white backgroundColor:dark. |
1180 |
||
73 | 1181 |
(d addCheckBox:((resources string:'doc files (+%1 Mb)' with:docMegabytes)) on:installDocHolder) |
5 | 1182 |
labelView foregroundColor:Color white backgroundColor:dark. |
73 | 1183 |
(d addCheckBox:((resources string:'stc & support files (+%1 Mb)' with:stcMegabytes)) on:installSTCHolder) |
10 | 1184 |
labelView foregroundColor:Color white backgroundColor:dark. |
1185 |
||
1186 |
d addVerticalSpace. |
|
1187 |
d addHorizontalLine. |
|
1188 |
d addVerticalSpace. |
|
1189 |
||
11 | 1190 |
(d addTextLabel:(resources string:'optional (but highly recommended):')) |
10 | 1191 |
adjust:#left; foregroundColor:Color white backgroundColor:dark. |
1192 |
||
73 | 1193 |
(d addCheckBox:((resources string:'smalltalk source files (+%1 Mb)' with:srcMegabytes)) on:installSourceHolder) |
5 | 1194 |
labelView foregroundColor:Color white backgroundColor:dark. |
1117
657dde1e749d
new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents:
1010
diff
changeset
|
1195 |
(d addCheckBox:((resources string:'goodies (+%1 Mb)' with:goodyMegabytes)) on:installGoodiesHolder) |
5 | 1196 |
labelView foregroundColor:Color white backgroundColor:dark. |
1197 |
||
1198 |
d addVerticalSpace. |
|
1199 |
d addHorizontalLine. |
|
1200 |
||
24 | 1201 |
d addHelpButtonFor:'STXInstaller/installHelp.html'; |
1202 |
addAbortButton; |
|
1203 |
addOkButtonLabelled:(resources string:'install'). |
|
73 | 1204 |
d extent:500@400. |
1151 | 1205 |
d resize. "/ compute best size |
0 | 1206 |
|
1207 |
d allViewBackground:dark. |
|
1208 |
||
1209 |
d openAtCenter. |
|
1210 |
d accepted ifTrue:[ |
|
1279 | 1211 |
stxInstDir := LastPartialDir := stxTopDir := stxInstDirHolder value. |
1212 |
stxDocDir := stxInstDir asFilename constructString:'doc'. |
|
1132 | 1213 |
stxLibDir := stxInstDir asFilename constructString:'lib'. |
1214 |
stxLibBinDir := stxInstDir asFilename constructString:'lib'. |
|
1215 |
stxBinDir := stxInstDir asFilename constructString:'bin'. |
|
1279 | 1216 |
stxPkgDir := stxInstDir asFilename constructString:'packages'. |
1132 | 1217 |
|
1218 |
"/ stxLibDir := LastLibDir := stxLibDirHolder value. |
|
1219 |
"/ stxLibBinDir := LastLibBinDir := stxLibBinDirHolder value. |
|
1220 |
"/ stxBinDir := LastBinDir := stxBinDirHolder value. |
|
5 | 1221 |
installDocFiles := installDocHolder value. |
1222 |
installSourceFiles := installSourceHolder value. |
|
1223 |
installSTCFiles := installSTCHolder value. |
|
1224 |
installGoodyFiles := installGoodiesHolder value. |
|
1 | 1225 |
d destroy. |
0 | 1226 |
^ true |
1227 |
]. |
|
1 | 1228 |
d destroy. |
0 | 1229 |
^ false |
1230 |
||
678 | 1231 |
" |
1232 |
STXInstaller open |
|
1233 |
" |
|
1234 |
||
1235 |
"Created: / 25.2.1998 / 17:11:26 / cg" |
|
1139 | 1236 |
"Modified: / 31.5.1999 / 18:37:50 / cg" |
678 | 1237 |
! |
1238 |
||
1239 |
askForFullInstallation |
|
1240 |
"open a dialog to enter destination directories" |
|
1241 |
||
1242 |
|d cm l green dark img| |
|
1243 |
||
1244 |
Screen current hasColors ifTrue:[ |
|
1245 |
green := (Color red:0 green:80 blue:20) "darkened". |
|
1246 |
dark := Color grey:10. |
|
1247 |
] ifFalse:[ |
|
1248 |
green := Color white. |
|
1249 |
dark := Color black. |
|
1250 |
]. |
|
1251 |
||
1252 |
d := DialogBox new. |
|
1253 |
||
1254 |
d label:(resources string:'ST/X CD Installation'). |
|
1255 |
img := Image fromFile:'SmalltalkX.xbm'. |
|
1256 |
||
1257 |
l := d addTextLabel:img. |
|
1258 |
l adjust:#left; foregroundColor:green backgroundColor:dark. |
|
1259 |
||
1260 |
l := d addTextLabel:(resources string:'Smalltalk/X CD installation.'). |
|
1261 |
l adjust:#left; backgroundColor:dark; foregroundColor:Color white. |
|
1262 |
d addVerticalSpace. |
|
1263 |
d addVerticalSpace. |
|
1264 |
||
1265 |
d addHorizontalLine. |
|
1266 |
||
1267 |
l := d addTextLabel:(resources string: |
|
1279 | 1268 |
'You can either perform a ' , 'full' asText allBold , ' installation, or a ' , 'standard' asText allBold ,' (partial) installation.'). |
678 | 1269 |
l adjust:#left; backgroundColor:dark; foregroundColor:Color white. |
1270 |
||
1271 |
d addVerticalSpace. |
|
1272 |
d addHorizontalLine. |
|
1273 |
||
1274 |
d leftIndent:20. |
|
1275 |
l := d addTextLabel:(resources string: |
|
1117
657dde1e749d
new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents:
1010
diff
changeset
|
1276 |
'full:' asText allBold , ' |
657dde1e749d
new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents:
1010
diff
changeset
|
1277 |
The full installation is required if you want to build your own |
657dde1e749d
new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents:
1010
diff
changeset
|
1278 |
customized smalltalk executable. It allows you to create and include |
657dde1e749d
new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents:
1010
diff
changeset
|
1279 |
additional precompiled binary classes or classLibraries. |
678 | 1280 |
This is also required if you want to link your own standalone executables. |
1281 |
||
1282 |
It consists of a directory hierachy, including makefiles for a customizeable |
|
1283 |
rebuild of the whole smalltalk system. |
|
1284 |
(Actually, it simply copies the whole CD contents onto your disk). |
|
1151 | 1285 |
This requires roughly 120-250Mb of hard disk space (dep. upon architecture).'). |
678 | 1286 |
l adjust:#left; backgroundColor:dark; foregroundColor:Color white. |
1287 |
||
1288 |
d addVerticalSpace. |
|
1289 |
d addHorizontalLine. |
|
1290 |
||
1291 |
l := d addTextLabel:(resources string: |
|
1279 | 1292 |
'standard:' asText allBold , ' |
1293 |
The standard (runTime) installation requires less disk space and only copies the |
|
678 | 1294 |
smalltalk executable, shared libraries and support files onto your hard disk. |
1117
657dde1e749d
new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents:
1010
diff
changeset
|
1295 |
This setup allows normal smalltalk development and is also useful as a runtime |
657dde1e749d
new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents:
1010
diff
changeset
|
1296 |
environment for smalltalk applications. |
1151 | 1297 |
However, it does not support recreation of a new smalltalk executable and/or |
1117
657dde1e749d
new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents:
1010
diff
changeset
|
1298 |
shared binary classLibraries. |
1151 | 1299 |
This setup also saves a lot of disk space, if multiple users are going to |
1300 |
use smalltalk, since most of the code is shared (both on disk and in memory). |
|
1301 |
This requires roughly 70-120Mb of hard disk space (dep. upon architecture). |
|
678 | 1302 |
|
1303 |
||
1304 |
'). |
|
1305 |
l adjust:#left; backgroundColor:dark; foregroundColor:Color white. |
|
1306 |
||
1307 |
||
1308 |
d leftIndent:0. |
|
1309 |
d addVerticalSpace. |
|
1310 |
d addHorizontalLine. |
|
1311 |
||
1312 |
||
1313 |
d addHelpButtonFor:'STXInstaller/installHelp.html'; |
|
1314 |
addAbortButton; |
|
1010 | 1315 |
addOkButton:(Button label:(resources string:'full') action:[installWhat := #full]); |
1279 | 1316 |
addOkButtonLabelled:(resources string:'standard'). |
1151 | 1317 |
d extent:500@500. |
1318 |
d resize. "/ compute best size ... |
|
678 | 1319 |
|
1320 |
d allViewBackground:dark. |
|
1321 |
||
1010 | 1322 |
installWhat := #partial. |
678 | 1323 |
d openAtCenter. |
1324 |
d accepted ifTrue:[ |
|
1325 |
d destroy. |
|
1326 |
^ true |
|
1327 |
]. |
|
1328 |
d destroy. |
|
1329 |
^ false |
|
1330 |
||
1331 |
" |
|
1332 |
STXInstaller open |
|
1333 |
" |
|
1334 |
||
1335 |
"Created: / 25.2.1998 / 16:50:16 / cg" |
|
1336 |
"Modified: / 25.2.1998 / 19:42:31 / cg" |
|
0 | 1337 |
! |
1338 |
||
1339 |
checkForExistingInstallationAndConfirm |
|
1340 |
"look if there is another installation and confirm |
|
1341 |
reinstalling; return true if ok, false if not" |
|
1342 |
||
678 | 1343 |
|whichDir canOverWrite whatToDo box| |
1344 |
||
1010 | 1345 |
installWhat == #full ifTrue:[ |
678 | 1346 |
whichDir := fullDir. |
1347 |
canOverWrite := false. |
|
1348 |
] ifFalse:[ |
|
1349 |
whichDir := stxLibDir. |
|
1350 |
canOverWrite := true. |
|
1351 |
]. |
|
1 | 1352 |
|
678 | 1353 |
whichDir asFilename exists ifTrue:[ |
1354 |
whatToDo := Dialog |
|
1355 |
choose:(resources |
|
1356 |
string:'detected existing ST/X installation in %1' |
|
1357 |
with:whichDir asText allBold) |
|
1358 |
label:(resources string:'Attention') |
|
1359 |
labels:(resources array:(canOverWrite |
|
1360 |
ifFalse:[#('remove first' 'cancel')] |
|
1361 |
ifTrue:[#('remove first' 'overwrite' 'cancel')] )) |
|
1362 |
values:(canOverWrite ifFalse:[#(remove nil)] ifTrue:[#(remove over nil)]) |
|
1363 |
default:nil. |
|
73 | 1364 |
|
678 | 1365 |
whatToDo isNil ifTrue:[^false]. |
1366 |
whatToDo == #remove ifTrue:[ |
|
1367 |
((whichDir findString:'stx') == 0 |
|
1368 |
and:[(whichDir findString:'smalltalk') == 0]) ifTrue:[ |
|
1369 |
"/ confirm again |
|
1370 |
(self confirm:(resources |
|
1371 |
string:'are you certain that the directory to remove |
|
1372 |
(' , whichDir , ') is really a smalltalk directory ? |
|
23
42997b231783
double confirm removal of directory, if its name
Claus Gittinger <cg@exept.de>
parents:
22
diff
changeset
|
1373 |
|
73 | 1374 |
Remove it now ?')) ifFalse:[ |
678 | 1375 |
^ false |
1376 |
] |
|
1377 |
]. |
|
1378 |
||
1379 |
[ |
|
1380 |
box := DialogBox new label:'please wait'. |
|
1381 |
box addTextLabel:'removing ' , whichDir , ' ...'. |
|
1382 |
box showAtPointer. |
|
1383 |
] forkAt:(Processor activePriority+1). |
|
1384 |
box waitUntilVisible. |
|
23
42997b231783
double confirm removal of directory, if its name
Claus Gittinger <cg@exept.de>
parents:
22
diff
changeset
|
1385 |
|
678 | 1386 |
(OperatingSystem recursiveRemoveDirectory:whichDir) |
1387 |
ifFalse:[ |
|
1388 |
self warn:(resources string:'mhmh - could not remove old installation. |
|
1389 |
||
1132 | 1390 |
Please remove it manually (using administrator privileges if required) |
678 | 1391 |
and try again.'). |
1392 |
box destroy. |
|
1393 |
^ false |
|
1394 |
]. |
|
1395 |
||
1396 |
box destroy |
|
1 | 1397 |
]. |
0 | 1398 |
]. |
678 | 1399 |
|
0 | 1400 |
^ true |
1401 |
||
678 | 1402 |
" |
1403 |
STXInstaller open |
|
1404 |
" |
|
1405 |
||
1132 | 1406 |
"Modified: / 31.5.1999 / 13:23:03 / cg" |
0 | 1407 |
! |
1408 |
||
1409 |
doInstall |
|
1410 |
"install ST/X; return true if ok, false if not" |
|
1411 |
||
678 | 1412 |
|progressView ok v textView p l |
1132 | 1413 |
dirToMonitor doDfMonitoring dfMonitorProcess kB drive| |
678 | 1414 |
|
1415 |
doDfMonitoring := false. |
|
1416 |
||
1417 |
v := View new preferredExtent:(250 @ 350). |
|
1418 |
||
1419 |
textView := HVScrollableView for:TextCollector in:v. |
|
1420 |
textView origin:0.0@0.0 corner:1.0@1.0. |
|
1421 |
textView bottomInset:30. |
|
1422 |
commandTraceView := textView scrolledView. |
|
1423 |
||
1010 | 1424 |
installWhat == #full ifTrue:[ |
678 | 1425 |
dirToMonitor := fullDir. |
1426 |
] ifFalse:[ |
|
1427 |
dirToMonitor := stxLibDir |
|
1428 |
]. |
|
1429 |
||
1132 | 1430 |
OperatingSystem isMSWINDOWSlike ifTrue:[ |
1431 |
drive := Filename rootDirectoryOnVolume:(dirToMonitor asFilename volume) |
|
1432 |
] ifFalse:[ |
|
1433 |
drive := dirToMonitor |
|
1434 |
]. |
|
1152 | 1435 |
drive := drive asFilename. |
678 | 1436 |
|
1132 | 1437 |
p := HorizontalPanelView in:v. |
1438 |
p origin:0.0@1.0 corner:1.0@1.0. |
|
1439 |
p topInset:-30. |
|
1440 |
p horizontalLayout:#fit. |
|
1441 |
||
1442 |
l := Label label:'' in:p. |
|
1443 |
l labelChannel:(dfHolder := '' asValue). |
|
1444 |
l adjust:#left. |
|
1445 |
dfMonitorProcess := [ |
|
1446 |
|ok info free kB i l| |
|
4
8b68fdf7c870
better looking; show command output
Claus Gittinger <cg@exept.de>
parents:
3
diff
changeset
|
1447 |
|
1132 | 1448 |
ok := true. |
1449 |
[ok] whileTrue:[ |
|
1450 |
doDfMonitoring ifTrue:[ |
|
1451 |
ok := false. |
|
1452 |
info := OperatingSystem getDiskInfoOf:drive pathName. |
|
1453 |
info notNil ifTrue:[ |
|
1454 |
free := info at:#freeBytes ifAbsent:nil. |
|
1455 |
free notNil ifTrue:[ |
|
1456 |
kB := free / 1024. |
|
1457 |
kB > 10000 ifTrue:[ |
|
1458 |
l := (kB // 1024) printString, 'Mb available.'. |
|
1459 |
] ifFalse:[ |
|
1460 |
l := kB printString , 'Kb available.'. |
|
678 | 1461 |
]. |
1132 | 1462 |
dfHolder value:l. |
1463 |
ok := true. |
|
1464 |
Delay waitForSeconds:9. |
|
678 | 1465 |
]. |
1466 |
]. |
|
1132 | 1467 |
]. |
1468 |
Delay waitForSeconds:1. |
|
1469 |
] |
|
1470 |
] forkAt:(Processor activePriority+3). |
|
0 | 1471 |
|
1472 |
progressView := ProgressIndicator |
|
1118 | 1473 |
inBoxWithLabel:'ST/X Installation' icon:(Icon stxIcon) |
0 | 1474 |
text:#('ST/X Installation' '' '' '' '' '' '' '') asStringCollection |
4
8b68fdf7c870
better looking; show command output
Claus Gittinger <cg@exept.de>
parents:
3
diff
changeset
|
1475 |
abortable:true |
678 | 1476 |
view:v |
4
8b68fdf7c870
better looking; show command output
Claus Gittinger <cg@exept.de>
parents:
3
diff
changeset
|
1477 |
closeWhenDone:false. |
73 | 1478 |
progressView topView extent:(640 min:Display width) @ (500 min:Display height). |
0 | 1479 |
|
1480 |
ok := false. |
|
1481 |
||
1482 |
progressView showProgressOf: |
|
4
8b68fdf7c870
better looking; show command output
Claus Gittinger <cg@exept.de>
parents:
3
diff
changeset
|
1483 |
[:progressValue :currentAction| |msg| |
8b68fdf7c870
better looking; show command output
Claus Gittinger <cg@exept.de>
parents:
3
diff
changeset
|
1484 |
|
8b68fdf7c870
better looking; show command output
Claus Gittinger <cg@exept.de>
parents:
3
diff
changeset
|
1485 |
Processor activeProcess withPriority:7 do:[ |
682
9fcd010d8fd3
terminate monitor process on unwind
Claus Gittinger <cg@exept.de>
parents:
678
diff
changeset
|
1486 |
[ |
9fcd010d8fd3
terminate monitor process on unwind
Claus Gittinger <cg@exept.de>
parents:
678
diff
changeset
|
1487 |
actionPercentageHolder := progressValue. |
9fcd010d8fd3
terminate monitor process on unwind
Claus Gittinger <cg@exept.de>
parents:
678
diff
changeset
|
1488 |
actionTextHolder := currentAction. |
9fcd010d8fd3
terminate monitor process on unwind
Claus Gittinger <cg@exept.de>
parents:
678
diff
changeset
|
1489 |
|
1010 | 1490 |
installWhat == #full ifFalse:[ |
682
9fcd010d8fd3
terminate monitor process on unwind
Claus Gittinger <cg@exept.de>
parents:
678
diff
changeset
|
1491 |
self outputInitialMessage. |
9fcd010d8fd3
terminate monitor process on unwind
Claus Gittinger <cg@exept.de>
parents:
678
diff
changeset
|
1492 |
]. |
0 | 1493 |
|
682
9fcd010d8fd3
terminate monitor process on unwind
Claus Gittinger <cg@exept.de>
parents:
678
diff
changeset
|
1494 |
(self createDirectories) ifTrue:[ |
9fcd010d8fd3
terminate monitor process on unwind
Claus Gittinger <cg@exept.de>
parents:
678
diff
changeset
|
1495 |
doDfMonitoring := true. |
9fcd010d8fd3
terminate monitor process on unwind
Claus Gittinger <cg@exept.de>
parents:
678
diff
changeset
|
1496 |
ok := self copyFiles |
9fcd010d8fd3
terminate monitor process on unwind
Claus Gittinger <cg@exept.de>
parents:
678
diff
changeset
|
1497 |
]. |
790 | 1498 |
self changeWritability. |
682
9fcd010d8fd3
terminate monitor process on unwind
Claus Gittinger <cg@exept.de>
parents:
678
diff
changeset
|
1499 |
self createSymbolicLinks. |
1134 | 1500 |
OperatingSystem isMSWINDOWSlike ifTrue:[ |
1501 |
self createRegistryEntries. |
|
1502 |
]. |
|
682
9fcd010d8fd3
terminate monitor process on unwind
Claus Gittinger <cg@exept.de>
parents:
678
diff
changeset
|
1503 |
|
9fcd010d8fd3
terminate monitor process on unwind
Claus Gittinger <cg@exept.de>
parents:
678
diff
changeset
|
1504 |
progressValue value:100. |
73 | 1505 |
|
1117
657dde1e749d
new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents:
1010
diff
changeset
|
1506 |
progressView topView raise. |
657dde1e749d
new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents:
1010
diff
changeset
|
1507 |
commandTraceView showCR:'Installation finished.' asText allBold. |
657dde1e749d
new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents:
1010
diff
changeset
|
1508 |
commandTraceView endEntry. |
657dde1e749d
new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents:
1010
diff
changeset
|
1509 |
textView flash. |
657dde1e749d
new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents:
1010
diff
changeset
|
1510 |
|
682
9fcd010d8fd3
terminate monitor process on unwind
Claus Gittinger <cg@exept.de>
parents:
678
diff
changeset
|
1511 |
progressView topView abortButton label:(resources string:'continue'). |
9fcd010d8fd3
terminate monitor process on unwind
Claus Gittinger <cg@exept.de>
parents:
678
diff
changeset
|
1512 |
progressView topView abortButton action:[progressView topView hide]. |
9fcd010d8fd3
terminate monitor process on unwind
Claus Gittinger <cg@exept.de>
parents:
678
diff
changeset
|
1513 |
msg := (resources |
9fcd010d8fd3
terminate monitor process on unwind
Claus Gittinger <cg@exept.de>
parents:
678
diff
changeset
|
1514 |
array:#('ST/X Installation finished.' '' 'press continue ...' '' '' '')) |
9fcd010d8fd3
terminate monitor process on unwind
Claus Gittinger <cg@exept.de>
parents:
678
diff
changeset
|
1515 |
asStringCollection. |
9fcd010d8fd3
terminate monitor process on unwind
Claus Gittinger <cg@exept.de>
parents:
678
diff
changeset
|
1516 |
actionTextHolder value:nil. |
9fcd010d8fd3
terminate monitor process on unwind
Claus Gittinger <cg@exept.de>
parents:
678
diff
changeset
|
1517 |
actionTextHolder value:msg. |
9fcd010d8fd3
terminate monitor process on unwind
Claus Gittinger <cg@exept.de>
parents:
678
diff
changeset
|
1518 |
] valueOnUnwindDo:[ |
9fcd010d8fd3
terminate monitor process on unwind
Claus Gittinger <cg@exept.de>
parents:
678
diff
changeset
|
1519 |
dfMonitorProcess notNil ifTrue:[ |
9fcd010d8fd3
terminate monitor process on unwind
Claus Gittinger <cg@exept.de>
parents:
678
diff
changeset
|
1520 |
dfMonitorProcess terminate. |
9fcd010d8fd3
terminate monitor process on unwind
Claus Gittinger <cg@exept.de>
parents:
678
diff
changeset
|
1521 |
dfMonitorProcess := nil. |
9fcd010d8fd3
terminate monitor process on unwind
Claus Gittinger <cg@exept.de>
parents:
678
diff
changeset
|
1522 |
]. |
9fcd010d8fd3
terminate monitor process on unwind
Claus Gittinger <cg@exept.de>
parents:
678
diff
changeset
|
1523 |
copyProcess notNil ifTrue:[ |
9fcd010d8fd3
terminate monitor process on unwind
Claus Gittinger <cg@exept.de>
parents:
678
diff
changeset
|
1524 |
copyProcess terminate. |
9fcd010d8fd3
terminate monitor process on unwind
Claus Gittinger <cg@exept.de>
parents:
678
diff
changeset
|
1525 |
copyProcess := nil. |
9fcd010d8fd3
terminate monitor process on unwind
Claus Gittinger <cg@exept.de>
parents:
678
diff
changeset
|
1526 |
]. |
9fcd010d8fd3
terminate monitor process on unwind
Claus Gittinger <cg@exept.de>
parents:
678
diff
changeset
|
1527 |
] |
4
8b68fdf7c870
better looking; show command output
Claus Gittinger <cg@exept.de>
parents:
3
diff
changeset
|
1528 |
] |
0 | 1529 |
]. |
1530 |
||
678 | 1531 |
dfMonitorProcess notNil ifTrue:[ |
682
9fcd010d8fd3
terminate monitor process on unwind
Claus Gittinger <cg@exept.de>
parents:
678
diff
changeset
|
1532 |
dfMonitorProcess terminate. |
9fcd010d8fd3
terminate monitor process on unwind
Claus Gittinger <cg@exept.de>
parents:
678
diff
changeset
|
1533 |
dfMonitorProcess := nil. |
678 | 1534 |
]. |
1535 |
copyProcess notNil ifTrue:[ |
|
1536 |
copyProcess terminate. |
|
1537 |
copyProcess := nil. |
|
1538 |
]. |
|
0 | 1539 |
^ ok |
1540 |
||
678 | 1541 |
" |
1542 |
STXInstaller open |
|
1543 |
" |
|
1544 |
||
1545 |
"Created: / 17.7.1996 / 15:11:27 / cg" |
|
1134 | 1546 |
"Modified: / 31.5.1999 / 14:45:12 / cg" |
0 | 1547 |
! |
1548 |
||
1549 |
open |
|
1 | 1550 |
self askAndInstall. |
0 | 1551 |
|
5 | 1552 |
" |
1119 | 1553 |
LastLibDir := LastBinDir := LastLibBinDir := nil. |
1139 | 1554 |
LastPartialDir := LastFullDir := nil. |
1119 | 1555 |
|
5 | 1556 |
STXInstaller open |
1557 |
" |
|
1119 | 1558 |
|
1139 | 1559 |
"Modified: / 31.5.1999 / 18:28:10 / cg" |
1 | 1560 |
! |
1561 |
||
1562 |
postInstall |
|
1563 |
"some messages at the end ..." |
|
1564 |
||
4
8b68fdf7c870
better looking; show command output
Claus Gittinger <cg@exept.de>
parents:
3
diff
changeset
|
1565 |
|shInfo cshInfo msg havePath| |
1 | 1566 |
|
678 | 1567 |
resources isNil ifTrue:[ |
1568 |
resources := ResourcePack for:self class. |
|
1569 |
]. |
|
1570 |
||
11 | 1571 |
msg := (resources string:'ST/X Installation complete.\\') withCRs. |
1 | 1572 |
shInfo := ''. |
1573 |
cshInfo := ''. |
|
1574 |
||
1119 | 1575 |
OperatingSystem isMSWINDOWSlike ifFalse:[ |
1576 |
||
1577 |
installWhat == #full ifTrue:[ |
|
1578 |
msg := msg , 'You will now find a development directory hierarchy |
|
678 | 1579 |
in ''' , fullDir asText allBold , '''. |
1580 |
||
1581 |
To try it, ''cd'' to ''' , fullDir , '/projects/smalltalk'' |
|
1582 |
and start smalltalk with the command: ''./smalltalk''. |
|
1583 |
||
1584 |
To perform a partial installation of your customized smalltalk later, |
|
1585 |
use the INSTALL script found in ''' , fullDir , ''''. |
|
1 | 1586 |
|
1119 | 1587 |
] ifFalse:[ |
1588 |
havePath := true. |
|
1589 |
(((OperatingSystem getEnvironment:'PATH') |
|
1590 |
asCollectionOfSubstringsSeparatedBy:$:) |
|
1591 |
includes:stxBinDir) ifFalse:[ |
|
1 | 1592 |
|
1119 | 1593 |
havePath := false. |
1594 |
shInfo := 'PATH=$PATH:' , stxBinDir , ' ; export PATH\'. |
|
1595 |
cshInfo := 'set path=($path ' , stxBinDir , ')\'. |
|
1596 |
msg := msg , (resources string:'%1 is not in your PATH.\You should change your ".login" and/or ".profile" files to include it.\\' |
|
1597 |
with:stxBinDir asText allBold) withCRs. |
|
678 | 1598 |
]. |
1 | 1599 |
|
1119 | 1600 |
(stxLibDir ~= '/usr/local/lib/smalltalk' |
1601 |
and:[stxLibDir ~= '/usr/lib/smalltalk' |
|
1602 |
and:[stxLibDir ~= ('/opt/smalltalk/' , self smalltalkRelease , '/lib')]]) ifTrue:[ |
|
1603 |
msg := msg , (resources string:'The library directory is not a standard ST/X library directory\("/opt/smalltalk/' , self smalltalkRelease , '/lib", "/usr/local/lib/smalltalk" or "/usr/lib/smalltalk"). |
|
1604 |
You may have to define the %1 environment variable\as %2 if ST/X complains about not finding its files.\' |
|
1605 |
with:'STX_LIBDIR' asText allBold |
|
1606 |
with:stxLibDir asText allBold) withCRs. |
|
1607 |
havePath ifFalse:[ |
|
1608 |
msg := msg , (resources string:'The above mentioned files are also a good place to do this.\') withCRs. |
|
1609 |
] ifTrue:[ |
|
1610 |
msg := msg , (resources string:'The ".login" and/or ".profile" files are a good place to do this.\') withCRs. |
|
1611 |
]. |
|
678 | 1612 |
|
1119 | 1613 |
shInfo := shInfo , 'STX_LIBDIR=' , stxLibDir , ' ; export STX_LIBDIR\'. |
1614 |
cshInfo := cshInfo , 'setenv STX_LIBDIR ' , stxLibDir , '\'. |
|
1615 |
]. |
|
1616 |
||
1617 |
shInfo notEmpty ifTrue:[ |
|
1618 |
'*********************************************************' errorPrintCR. |
|
1619 |
(resources string:'Message from the ST/X Installer:\\') withCRs errorPrintCR. |
|
1620 |
(resources string:'Please add the following to your ".profile" file:') withCRs errorPrintCR. |
|
1621 |
'' errorPrintCR. |
|
1622 |
shInfo withCRs errorPrintCR. |
|
1623 |
'' errorPrintCR. |
|
1624 |
(resources string:'or (if you use csh/tcsh), add to your ".login" file:') withCRs errorPrintCR. |
|
1625 |
'' errorPrintCR. |
|
1626 |
cshInfo withCRs errorPrintCR. |
|
1627 |
'' errorPrintCR. |
|
1628 |
'*********************************************************' errorPrintCR. |
|
1629 |
]. |
|
678 | 1630 |
]. |
1 | 1631 |
]. |
73 | 1632 |
msg := msg , '\\Have fun using ST/X !!'. |
1633 |
||
1634 |
self information:msg withCRs. |
|
1 | 1635 |
|
1119 | 1636 |
"Modified: / 30.4.1999 / 17:59:39 / cg" |
25
42ee3e7ced09
remove local symbolic links (if any) in doc/online
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
1637 |
! |
42ee3e7ced09
remove local symbolic links (if any) in doc/online
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
1638 |
|
42ee3e7ced09
remove local symbolic links (if any) in doc/online
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
1639 |
preInstall |
678 | 1640 |
"clobber the doc directory, to avoid copying cyclic symbolic links. |
1641 |
Notice, the CD does not contain symlinks, but checking for them |
|
1642 |
allows installing from a development dir." |
|
25
42ee3e7ced09
remove local symbolic links (if any) in doc/online
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
1643 |
|
42ee3e7ced09
remove local symbolic links (if any) in doc/online
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
1644 |
|f| |
42ee3e7ced09
remove local symbolic links (if any) in doc/online
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
1645 |
|
1119 | 1646 |
OperatingSystem isMSWINDOWSlike ifFalse:[ |
1647 |
f := '../../doc/online/english/german' asFilename. |
|
1648 |
f exists ifTrue:[ |
|
1649 |
f isSymbolicLink ifTrue:[ |
|
1650 |
OperatingSystem executeCommand:'(cd ../../doc/online; make clobber) >/dev/null 2>/dev/null' |
|
1651 |
] |
|
25
42ee3e7ced09
remove local symbolic links (if any) in doc/online
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
1652 |
] |
42ee3e7ced09
remove local symbolic links (if any) in doc/online
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
1653 |
] |
42ee3e7ced09
remove local symbolic links (if any) in doc/online
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
1654 |
|
42ee3e7ced09
remove local symbolic links (if any) in doc/online
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
1655 |
" |
42ee3e7ced09
remove local symbolic links (if any) in doc/online
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
1656 |
STXInstaller new preInstall |
42ee3e7ced09
remove local symbolic links (if any) in doc/online
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
1657 |
" |
42ee3e7ced09
remove local symbolic links (if any) in doc/online
Claus Gittinger <cg@exept.de>
parents:
24
diff
changeset
|
1658 |
|
1119 | 1659 |
"Modified: / 30.4.1999 / 17:54:38 / cg" |
0 | 1660 |
! ! |
1661 |
||
28 | 1662 |
!STXInstaller class methodsFor:'documentation'! |
0 | 1663 |
|
1664 |
version |
|
1665 |
^ '$Header$' |
|
1666 |
! ! |