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