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