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