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