STXInstaller.st
author Claus Gittinger <cg@exept.de>
Thu, 23 Dec 1999 22:43:20 +0100
changeset 1282 7fa3b3c668f3
parent 1281 e83c14253471
child 1284 9f4ba1b3b604
permissions -rw-r--r--
checkin from browser
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' )
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   235
                ( 'COPYRIGHT'                           #lib     nil                  true  '644' )
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   236
                ( 'doc/online/german/LICENCE.STX.html'  nil      'doc/online/german'      true  '644' )
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   237
                ( 'doc/online/english/LICENCE.STX.html' nil      'doc/online/english'     true  '644' )
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   238
    ).
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   239
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   240
    installDocFiles ifTrue:[
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   241
        fileSpec := fileSpec , #(
1281
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   242
                ( 'doc'                                  nil     nil        false '644' )
1279
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   243
        ).
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   244
    ].
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
    installSTCFiles ifTrue:[
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   247
        fileSpec := fileSpec , #(
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   248
                ( 'include'                                  #lib        nil              false '644' )
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   249
                ( 'configurations'                           #lib        nil              false '644' )
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   250
                ( 'configurations/PACKS'                     #lib        'configurations' false '644' )
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   251
                ( 'configurations/my*'                       #lib        'configurations' false '644' )
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   252
                ( 'configurations/vendor*'                   #lib        'configurations' false '644' )
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   253
                ( 'rules'                                    #lib        nil              false '644' )
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   254
        ).
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   255
    ].
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
    installGoodyFiles ifTrue:[
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   258
        fileSpec := fileSpec , #(
1281
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   259
                ( 'goodies/*.st'                  #pkg     'stx/goodies/source'       false '644' )
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   260
                ( 'goodies/*.chg'                 #pkg     'stx/goodies/source'       false '644' )
1279
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   261
        ).
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   262
    ].
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
    ^ fileSpec
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
    "Modified: / 30.4.1999 / 18:02:22 / cg"
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   268
    "Created: / 2.5.1999 / 13:17:37 / cg"
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   269
!
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   270
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   271
specOfFilesToCopy
1119
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   272
    OperatingSystem isMSWINDOWSlike ifTrue:[
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   273
        ^ self specOfWindowsFilesToCopy
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   274
    ].
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   275
    ^ self specOfUnixFilesToCopy
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
    "Modified: / 2.5.1999 / 13:17:59 / cg"
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
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   280
specOfUnixFilesToCopy
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   281
    |fileSpec|
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   282
1279
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   283
    fileSpec := self specOfCommonFilesToCopy.
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   284
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   285
    fileSpec := fileSpec , #(
27
8c5195f9508a also install stx.
Claus Gittinger <cg@exept.de>
parents: 26
diff changeset
   286
                "/ name                             destination  subDir             required mode      
12
6cb00d713d4d LICENSE texts must always be installed
Claus Gittinger <cg@exept.de>
parents: 11
diff changeset
   287
                ( 'projects/smalltalk/smalltalk'        #bin     nil                  true  '755' )
27
8c5195f9508a also install stx.
Claus Gittinger <cg@exept.de>
parents: 26
diff changeset
   288
                ( 'projects/smalltalk/stx'              #bin     nil                  true  '755' )
1281
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   289
                ( 'librun/librun.so'                    #lib     'lib'                true  '644' )
5
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   290
    ).
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   291
5
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   292
    installSTCFiles ifTrue:[
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   293
        fileSpec := fileSpec , #(
24
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   294
                ( 'stc/stc'                                  #bin        nil              false '755' )
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   295
                ( 'rules/stmkmp'                             #bin        nil              false '755' )
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   296
                ( 'rules/stmkmf'                             #bin        nil              false '755' )
1281
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   297
                ( 'configurations/COMMON'                    #lib        'configurations' false '644' )
24
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   298
                ( 'configurations/PACKS'                     #lib        'configurations' false '644' )
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   299
                ( 'configurations/my*'                       #lib        'configurations' false '644' )
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   300
                ( 'configurations/vendor*'                   #lib        'configurations' false '644' )
5
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   301
276
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   302
                ( 'support/VGL/vogl/src/libvogl.*'           #lib        'lib'            false '644' )
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   303
                ( 'support/VGL/vogl/src/*.h'                 #lib        'include'        false '644' )
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   304
                ( 'support/DLD/dld-3.2.5/libdld.*'           #lib        'lib'            false '644' )
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   305
1281
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   306
                ( 'goodies/persistency/db-1.6/PORT/libdb.*'  #libBin     'lib'            false '644' )
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   307
1281
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   308
"/                ( 'librun/librun.o'                          #libBin     nil              false '644' )
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   309
"/                ( 'librun/librun.a'                          #libBin     nil              false '644' )
5
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   310
        ).
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   311
    ].
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   312
5
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   313
    installGoodyFiles ifTrue:[
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   314
        fileSpec := fileSpec , #(
1281
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   315
                ( 'goodies/rdoit/rdoit'           #bin     nil        false '755' )
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   316
                ( 'goodies/xml-indelv/abbrev.stc' #pkg     'stx/goodies/xml-indelv'   true  )
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   317
        ).
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   318
    ] ifFalse:[
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   319
        fileSpec := fileSpec , #(
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   320
                ( 'goodies/persistency/libdbase.so'  #pkg     'stx/goodies/persistency' true '644' )
5
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   321
        ).
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   322
    ].
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   323
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   324
    ^ fileSpec
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   325
1119
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   326
    "Modified: / 30.4.1999 / 18:02:22 / cg"
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   327
    "Created: / 2.5.1999 / 13:17:37 / cg"
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   328
!
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   329
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   330
specOfWindowsFilesToCopy
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   331
    |fileSpec|
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   332
1279
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   333
    fileSpec := self specOfCommonFilesToCopy.
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   334
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   335
    fileSpec := fileSpec , #(
1119
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   336
                "/ name                             destination  subDir             required       
1132
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
   337
                ( 'projects\smalltalk\smalltalk.bat'    #bin     nil                  true   )
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
   338
                ( 'projects\smalltalk\stx.exe'          #bin     nil                  true   )
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
   339
                ( 'projects\smalltalk\stxspawn.exe'     #bin     nil                  true   )
1279
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   340
                ( 'projects\smalltalk\*.dll'            #bin     nil                  true   )
1119
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   341
    ).
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   342
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   343
    installSTCFiles ifTrue:[
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   344
        fileSpec := fileSpec , #(
1132
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
   345
                ( 'projects\smalltalk\stc.exe'           #bin        nil              false  )
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
   346
                ( 'libbc\*.lib'                          #lib        nil              false  )
1279
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   347
                ( 'rules'                                #lib        nil              false  )
1119
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   348
        ).
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   349
    ].
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
    installGoodyFiles ifTrue:[
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   352
        fileSpec := fileSpec , #(
1279
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   353
                ( 'goodies/rdoit/rdoit.exe'              #bin     nil                 false )
1119
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   354
        ).
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   355
    ].
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
    ^ fileSpec
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
    "Created: / 2.5.1999 / 13:23:06 / cg"
1137
77c59731e289 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1136
diff changeset
   360
    "Modified: / 31.5.1999 / 17:39:58 / cg"
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   361
! !
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   362
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   363
!STXInstaller methodsFor:'installing'!
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   364
1281
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   365
addFilesToSpec:fileSpec relativeTo:rel fromINSTALLSpec:f
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   366
    |s entry t cond dst|
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   367
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   368
    s := f asFilename readStream.
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   369
    s isNil ifTrue:[^  self].
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   370
    [s atEnd] whileFalse:[
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   371
        entry := s nextLine.
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   372
        (entry startsWith:$#) ifFalse:[
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   373
            t := entry asCollectionOfWords.
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   374
            t size >= 2 ifTrue:[
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   375
                cond := t at:3 ifAbsent:nil.
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   376
                (cond ~= 'optionalSource' 
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   377
                 or:[installSourceFiles]) ifTrue:[
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   378
                    ((rel startsWith:'goodies/') not
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   379
                    or:[installGoodyFiles]) ifTrue:[
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   380
                        dst := t at:2.
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   381
                        (dst startsWith:'packages/stx/') ifTrue:[
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   382
                            fileSpec add:(Array 
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   383
                                            with:(rel asFilename constructString:(t at:1))
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   384
                                            with:#pkg
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   385
                                            with:('stx' asFilename constructString:(dst copyFrom:'packages/stx/' size+1))
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   386
                                            with:true).
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   387
                        ] ifFalse:[
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   388
                            (dst = 'bin') ifTrue:[
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   389
                                fileSpec add:(Array 
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   390
                                                with:(rel asFilename constructString:(t at:1))
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   391
                                                with:#bin
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   392
                                                with:nil
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   393
                                                with:true).
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   394
                            ]
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   395
                        ]
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
    s close.
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
790
79bc027907ee checkin from browser
Claus Gittinger <cg@exept.de>
parents: 682
diff changeset
   404
changeWritability
791
108f933f9385 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 790
diff changeset
   405
    |msg|
790
79bc027907ee checkin from browser
Claus Gittinger <cg@exept.de>
parents: 682
diff changeset
   406
1010
d744cc925443 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 793
diff changeset
   407
    installWhat == #full ifTrue:[
792
bffad322b0bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 791
diff changeset
   408
        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
   409
792
bffad322b0bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 791
diff changeset
   410
        commandTraceView showCR:(resources string:'making target dir writable ...').
bffad322b0bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 791
diff changeset
   411
        commandTraceView endEntry.
790
79bc027907ee checkin from browser
Claus Gittinger <cg@exept.de>
parents: 682
diff changeset
   412
        OperatingSystem executeCommand:('(cd ' , fullDir , ' ; find . -exec chmod u+w {} \;)').
79bc027907ee checkin from browser
Claus Gittinger <cg@exept.de>
parents: 682
diff changeset
   413
    ].
79bc027907ee checkin from browser
Claus Gittinger <cg@exept.de>
parents: 682
diff changeset
   414
791
108f933f9385 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 790
diff changeset
   415
    "Created: / 17.7.1996 / 15:24:19 / cg"
792
bffad322b0bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 791
diff changeset
   416
    "Modified: / 20.4.1998 / 15:40:00 / cg"
790
79bc027907ee checkin from browser
Claus Gittinger <cg@exept.de>
parents: 682
diff changeset
   417
!
79bc027907ee checkin from browser
Claus Gittinger <cg@exept.de>
parents: 682
diff changeset
   418
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   419
copyFiles
1132
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
   420
    |msg fileSpec filesToCopy numFiles nDone cmd topDir topDirPrefix|
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
   421
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
   422
    msg := (resources array:#('ST/X Installation' '' 'copying:' '' 'to:' '')) asStringCollection.
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   423
1132
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
   424
    OperatingSystem isUNIXlike ifTrue:[
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
   425
        topDir := '../..'.
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
   426
        topDirPrefix := '../../'.
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
   427
    ] ifFalse:[
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
   428
        topDir := '..\..'.
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
   429
        topDirPrefix := '..\..\'.
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
   430
    ].
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   431
1010
d744cc925443 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 793
diff changeset
   432
    installWhat == #full ifTrue:[
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   433
        msg at:4 put:('    all from CD' asText allBold).
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   434
        msg at:6 put:'    ' , (fullDir asText allBold).
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   435
        actionTextHolder value:nil.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   436
        actionTextHolder value:msg.
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   437
1132
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
   438
        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
   439
"/        "/
43a9a195b0f3 use tar instead of cp to copy full
Claus Gittinger <cg@exept.de>
parents: 792
diff changeset
   440
"/        "/ not all systems have cp -rv
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
"/        OperatingSystem getOSType = 'linux' ifTrue:[
43a9a195b0f3 use tar instead of cp to copy full
Claus Gittinger <cg@exept.de>
parents: 792
diff changeset
   443
"/            cmd := 'cp -rv ../../* ' , fullDir.
43a9a195b0f3 use tar instead of cp to copy full
Claus Gittinger <cg@exept.de>
parents: 792
diff changeset
   444
"/        ].
43a9a195b0f3 use tar instead of cp to copy full
Claus Gittinger <cg@exept.de>
parents: 792
diff changeset
   445
"/      commandTraceView showCR:cmd , ' ...'.
43a9a195b0f3 use tar instead of cp to copy full
Claus Gittinger <cg@exept.de>
parents: 792
diff changeset
   446
        commandTraceView showCR:'copying ...'.
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   447
        commandTraceView endEntry.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   448
        cmd := cmd , ' 2>&1' .
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   449
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   450
        self executeCommandAndShowOutput:cmd.
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
        ^ true
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   453
    ].
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   454
1281
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   455
    fileSpec := self specOfFilesToCopy asOrderedCollection.
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   456
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   457
    actionPercentageHolder value:0.
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   458
    "/ search for INSTALL.files specs, and add to list ...
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   459
    actionTextHolder value:nil.
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   460
    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
   461
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   462
    topDir asFilename recursiveDirectoryContentsDo:[:f |
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   463
        f asFilename baseName = 'INSTALL.files' ifTrue:[
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   464
            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
   465
        ]
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   466
    ].
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   467
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   468
    filesToCopy := OrderedCollection new.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   469
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   470
    fileSpec do:[:entry |
8
88df33224360 oops - did not copy file*
Claus Gittinger <cg@exept.de>
parents: 7
diff changeset
   471
        |fileNames dest subDir required destDir|
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   472
8
88df33224360 oops - did not copy file*
Claus Gittinger <cg@exept.de>
parents: 7
diff changeset
   473
        fileNames := entry at:1.
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   474
        dest := entry at:2.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   475
        subDir := entry at:3.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   476
        required := entry at:4.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   477
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   478
        dest == #bin ifTrue:[
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   479
            destDir := stxBinDir
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   480
        ] ifFalse:[
24
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   481
            dest == #libBin ifTrue:[
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   482
                destDir := stxLibBinDir
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   483
            ] ifFalse:[
1279
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   484
                dest == #pkg ifTrue:[
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   485
                    destDir := stxPkgDir
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   486
                ] ifFalse:[
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   487
                    dest == nil ifTrue:[
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   488
                        destDir := stxTopDir
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   489
                    ] ifFalse:[
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   490
                        destDir := stxLibDir
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   491
                    ]
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   492
                ]
24
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   493
            ]
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   494
        ].
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   495
        
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   496
        destDir := destDir asFilename.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   497
        subDir notNil ifTrue:[
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   498
            destDir := destDir construct:subDir
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   499
        ].
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   500
8
88df33224360 oops - did not copy file*
Claus Gittinger <cg@exept.de>
parents: 7
diff changeset
   501
        filesToCopy add:(fileNames -> destDir pathName)
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   502
    ].
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   503
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   504
    numFiles := filesToCopy size.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   505
    nDone := 0.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   506
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   507
    filesToCopy do:[:entry |
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   508
        |fileName destDir cmd|
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   509
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   510
        fileName := entry key.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   511
        destDir := entry value.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   512
8
88df33224360 oops - did not copy file*
Claus Gittinger <cg@exept.de>
parents: 7
diff changeset
   513
        ((fileName includes:$*)
1132
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
   514
        or:[(topDirPrefix , fileName) asFilename exists])ifTrue:[
4
8b68fdf7c870 better looking; show command output
Claus Gittinger <cg@exept.de>
parents: 3
diff changeset
   515
            actionPercentageHolder value:(nDone / numFiles * 100) rounded.
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   516
4
8b68fdf7c870 better looking; show command output
Claus Gittinger <cg@exept.de>
parents: 3
diff changeset
   517
            msg at:4 put:'    ' , (fileName asText allBold).
8b68fdf7c870 better looking; show command output
Claus Gittinger <cg@exept.de>
parents: 3
diff changeset
   518
            msg at:6 put:'    ' , (destDir asText allBold).
8b68fdf7c870 better looking; show command output
Claus Gittinger <cg@exept.de>
parents: 3
diff changeset
   519
            actionTextHolder value:nil.
8b68fdf7c870 better looking; show command output
Claus Gittinger <cg@exept.de>
parents: 3
diff changeset
   520
            actionTextHolder value:msg.
8b68fdf7c870 better looking; show command output
Claus Gittinger <cg@exept.de>
parents: 3
diff changeset
   521
73
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   522
            ((fileName includes:$*) not
1136
f861c61ca047 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1135
diff changeset
   523
            and:[(topDirPrefix , fileName) asFilename exists not]) ifTrue:[
73
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   524
                (self listOfOptionalPackages includes:fileName) ifFalse:[
117
45af2b7a5eca checkin from browser
Claus Gittinger <cg@exept.de>
parents: 73
diff changeset
   525
                    commandTraceView showCR:('cannot copy ' , fileName , ' - not included in distribution').
45af2b7a5eca checkin from browser
Claus Gittinger <cg@exept.de>
parents: 73
diff changeset
   526
                    commandTraceView endEntry.
73
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   527
                ]
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   528
            ] ifFalse:[
1136
f861c61ca047 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1135
diff changeset
   529
                destDir asFilename exists ifFalse:[
f861c61ca047 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1135
diff changeset
   530
                    commandTraceView showCR:(resources string:'creating %1 ...' with:destDir asFilename pathName).
f861c61ca047 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1135
diff changeset
   531
                    commandTraceView endEntry.
f861c61ca047 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1135
diff changeset
   532
                    OperatingSystem recursiveCreateDirectory:destDir asFilename pathName
f861c61ca047 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1135
diff changeset
   533
                ].
1132
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
   534
                self recursiveCopy:(topDirPrefix , fileName) to:destDir.
73
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   535
            ]
1
7ebb34d8f3df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 0
diff changeset
   536
        ].
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   537
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   538
        nDone := nDone + 1
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   539
    ].
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   540
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   541
    ^ true
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   542
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   543
    "
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   544
     STXInstaller open
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
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   547
    "Created: / 17.7.1996 / 15:16:20 / cg"
1138
66190ee44a6a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1137
diff changeset
   548
    "Modified: / 31.5.1999 / 18:07:33 / cg"
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   549
!
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   550
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   551
createDirectories
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   552
    |msg dirsToMake numDirs nDone|
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   553
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   554
    msg := (resources array:#('ST/X Installation' '' 'creating directory:' '' '' '')) asStringCollection.
0
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
    dirsToMake := self directoriesToMake.
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   557
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   558
    numDirs := dirsToMake size.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   559
    nDone := 0.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   560
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   561
    dirsToMake do:[:dirName |
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   562
        |d errMsg stop box|
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   563
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   564
        actionPercentageHolder value:(nDone / numDirs * 100) rounded.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   565
4
8b68fdf7c870 better looking; show command output
Claus Gittinger <cg@exept.de>
parents: 3
diff changeset
   566
        msg at:4 put:'    ' , (dirName asText allBold).
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   567
        actionTextHolder value:nil.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   568
        actionTextHolder value:msg.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   569
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   570
        d := dirName asFilename.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   571
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   572
        commandTraceView showCR:(resources string:'creating %1 ...' with:d pathName).
117
45af2b7a5eca checkin from browser
Claus Gittinger <cg@exept.de>
parents: 73
diff changeset
   573
        commandTraceView endEntry.
4
8b68fdf7c870 better looking; show command output
Claus Gittinger <cg@exept.de>
parents: 3
diff changeset
   574
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   575
        d exists ifFalse:[
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   576
            OperatingSystem recursiveCreateDirectory:d pathName
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   577
        ].
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   578
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   579
        d exists ifFalse:[
1279
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   580
            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
   581
            stop := true
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   582
        ] ifTrue:[
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   583
            d isDirectory ifFalse:[
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   584
                errMsg := resources string:'not a directory: %1' with:dirName.
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   585
                stop := true
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   586
            ] ifTrue:[
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   587
                (d isReadable
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   588
                and:[d isWritable]) ifFalse:[
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   589
                    errMsg := resources string:'no read/write access to directory: %1' with:dirName.
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   590
                    stop := false
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   591
                ] ifTrue:[
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   592
                    errMsg := nil
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   593
                ]
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   594
            ]
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
        errMsg notNil ifTrue:[
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   598
            box := WarningBox new.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   599
            box title:errMsg.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   600
            box showAtPointerNotCovering:(WindowGroup activeGroup topViews first).
1
7ebb34d8f3df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 0
diff changeset
   601
            stop ifTrue:[^ false].
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   602
        ].
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   603
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   604
        Delay waitForSeconds:0.25.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   605
        nDone := nDone + 1.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   606
    ].
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   607
    ^ true
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   608
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   609
    "Created: 17.7.1996 / 15:24:19 / cg"
117
45af2b7a5eca checkin from browser
Claus Gittinger <cg@exept.de>
parents: 73
diff changeset
   610
    "Modified: 22.5.1997 / 15:06:41 / cg"
19
504c3ad987d1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 18
diff changeset
   611
!
504c3ad987d1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 18
diff changeset
   612
1134
8401cae5d88e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1133
diff changeset
   613
createRegistryEntries
8401cae5d88e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1133
diff changeset
   614
    |release msg k|
8401cae5d88e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1133
diff changeset
   615
8401cae5d88e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1133
diff changeset
   616
    msg := (resources array:#('ST/X Installation' '' 'creating registry entries' '' '' '')) asStringCollection.
8401cae5d88e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1133
diff changeset
   617
    actionTextHolder value:nil.
8401cae5d88e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1133
diff changeset
   618
    actionTextHolder value:msg.
8401cae5d88e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1133
diff changeset
   619
8401cae5d88e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1133
diff changeset
   620
    commandTraceView showCR:(resources string:'creating registry entries...').
8401cae5d88e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1133
diff changeset
   621
    commandTraceView endEntry.
8401cae5d88e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1133
diff changeset
   622
8401cae5d88e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1133
diff changeset
   623
    release := self smalltalkRelease.
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
    k := Win32OperatingSystem::RegistryEntry key:'HKEY_LOCAL_MACHINE\Software'.
1282
7fa3b3c668f3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1281
diff changeset
   626
    k isNil ifTrue:[
7fa3b3c668f3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1281
diff changeset
   627
        self warn:'cannot update registry under HKEY_LOCAL_MACHINE\Software\eXept'.
7fa3b3c668f3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1281
diff changeset
   628
        ^ self.
7fa3b3c668f3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1281
diff changeset
   629
    ].
7fa3b3c668f3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1281
diff changeset
   630
1134
8401cae5d88e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1133
diff changeset
   631
    k := k createSubKeyNamed:'eXept'.
8401cae5d88e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1133
diff changeset
   632
    k := k createSubKeyNamed:'Smalltalk/X'.
8401cae5d88e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1133
diff changeset
   633
    k valueNamed:'CurrentVersion' put:release.
8401cae5d88e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1133
diff changeset
   634
8401cae5d88e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1133
diff changeset
   635
    k := k createSubKeyNamed:release.
8401cae5d88e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1133
diff changeset
   636
    k valueNamed:'LibDir' put:stxLibDir.
8401cae5d88e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1133
diff changeset
   637
    k valueNamed:'BinDir' put:stxBinDir.
1279
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   638
    k valueNamed:'DocDir' put:stxDocDir.
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   639
    k valueNamed:'PackageDirPath' put:stxPkgDir.
1134
8401cae5d88e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1133
diff changeset
   640
1282
7fa3b3c668f3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1281
diff changeset
   641
    "Modified: / 23.12.1999 / 22:21:18 / cg"
1134
8401cae5d88e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1133
diff changeset
   642
!
8401cae5d88e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1133
diff changeset
   643
19
504c3ad987d1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 18
diff changeset
   644
createSymbolicLinks
504c3ad987d1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 18
diff changeset
   645
    |msg dirsToMake numDirs nDone|
504c3ad987d1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 18
diff changeset
   646
1132
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
   647
    OperatingSystem isUNIXlike ifFalse:[^ self].
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
   648
19
504c3ad987d1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 18
diff changeset
   649
    msg := (resources array:#('ST/X Installation' '' 'creating symbolic links' '' '' '')) asStringCollection.
1134
8401cae5d88e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1133
diff changeset
   650
    actionTextHolder value:nil.
8401cae5d88e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1133
diff changeset
   651
    actionTextHolder value:msg.
19
504c3ad987d1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 18
diff changeset
   652
1281
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   653
    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
   654
1010
d744cc925443 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 793
diff changeset
   655
    installWhat == #full ifTrue:[
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   656
        OperatingSystem executeCommand:('(cd ' , fullDir , '/doc/online ; make links)').
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   657
    ] ifFalse:[
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   658
        OperatingSystem executeCommand:('(cd ' , stxLibDir , '/doc/online ; make links)').
1281
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   659
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   660
        commandTraceView showCR:(resources string:'setting up symbolic links in lib ...'); endEntry.
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
        #(
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   663
            'libbasic/libbasic.so'
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   664
            'libbasic2/libbasic2.so'
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   665
            'libbasic3/libbasic3.so'
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   666
            'libcomp/libcomp.so'
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   667
            'libboss/libboss.so'
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   668
            'libview/*.so'
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   669
            'libview2/libview2.so'
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   670
            'libwidg/libwidg.so'
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   671
            'libwidg2/libwidg2.so'
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   672
            'libwidg3/libwidg3.so'
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   673
            'libhtml/libhtml.so'
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   674
            'libui/libui.so'
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   675
            'libtool/libtool.so'
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   676
            'libtool2/libtool2.so'
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   677
            'goodies/persistency/libdbase.so'
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   678
        ) do:[:src |  |cmd|
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   679
            cmd := '(cd ' , stxLibDir , '/lib ; ln -s ../../packages/stx/' , src , ' . )'.
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   680
            commandTraceView showCR:cmd; endEntry.
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   681
            OperatingSystem executeCommand:cmd.
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   682
        ].
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   683
    ].
19
504c3ad987d1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 18
diff changeset
   684
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   685
    "Created: / 17.7.1996 / 15:24:19 / cg"
1134
8401cae5d88e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1133
diff changeset
   686
    "Modified: / 31.5.1999 / 14:46:36 / cg"
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   687
!
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   688
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   689
executeCommandAndShowOutput:cmd
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   690
    |doneSemaphore line p|
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   691
1119
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   692
    OperatingSystem isMSWINDOWSlike ifTrue:[
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   693
        ^ self
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   694
    ].
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   695
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   696
    doneSemaphore := Semaphore new.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   697
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   698
    copyProcess := [   
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
        p := PipeStream readingFrom:cmd.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   701
        p isNil ifTrue:[
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   702
            self warn:('command error. Could not execute:\\' , cmd) withCRs.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   703
        ] ifFalse:[
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   704
            [
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   705
                [p atEnd] whileFalse:[
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   706
                    (p readWaitWithTimeout:0.1) ifFalse:[
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   707
                        line := p nextLine.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   708
                        (line notNil and:[line notEmpty]) ifTrue:[
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   709
                            commandTraceView showCR:(('  ' , line) asText emphasizeAllWith:(#color->Color red)).
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   710
                            commandTraceView endEntry.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   711
                        ]
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   712
                    ]
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
                p close.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   715
            ] valueOnUnwindDo:[
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   716
                p shutDown
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   717
            ]
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   718
        ].
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   719
        doneSemaphore signal.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   720
        copyProcess := nil.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   721
    ] forkAt:4.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   722
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   723
    doneSemaphore wait.
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
    "Created: / 25.2.1998 / 17:46:06 / cg"
1119
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   726
    "Modified: / 30.4.1999 / 18:00:43 / cg"
73
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   727
!
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   728
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   729
outputInitialMessage
1279
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   730
^ self.
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   731
73
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   732
    #(
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   733
    'Notice:'
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
    'During the installation, you may get error messages'
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   736
    'complaining that some files where not found'
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   737
    'and could therefore not be copied.'
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   738
    ) do:[:line |
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   739
        commandTraceView showCR:((resources string:line) asText emphasizeAllWith:(#color->Color blue)).
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   740
        commandTraceView endEntry. 
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   741
    ].
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   742
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   743
    Delay waitForSeconds:2.
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
    #(
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
    'This is normal behavior; since the CD may contain'
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   748
    'broken symbolic links to non-existing packages'
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   749
    'which are either not contained on your ordered'
276
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   750
    'package (i.e. non-commercial) or are not required'
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   751
    'for your architecture (and therefore not contained'
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   752
    'on the CD).'
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   753
    ''
73
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   754
    ) do:[:line |
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   755
        commandTraceView showCR:((resources string:line) asText emphasizeAllWith:(#color->Color blue)).
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   756
        commandTraceView endEntry.
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   757
    ].
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   758
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   759
    Delay waitForSeconds:2.
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
    #(
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
    'Please excuse this inconvenience.'
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
    ) do:[:line |
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   766
        commandTraceView showCR:((resources string:line) asText emphasizeAllWith:(#color->Color blue)).
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   767
        commandTraceView endEntry.
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   768
    ].
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   769
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   770
    Delay waitForSeconds:2.
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
    "Created: 2.3.1997 / 12:49:52 / cg"
276
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   773
    "Modified: 8.8.1997 / 17:47:06 / cg"
1132
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
   774
!
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
   775
1279
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   776
recursiveCopy:src to:dst
1281
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   777
    self recursiveCopy:src to:dst print:true
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   778
!
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   779
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   780
recursiveCopy:src to:dst print:doPrint
1282
7fa3b3c668f3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1281
diff changeset
   781
    |cmd srcBaseName srcF dstF d|
1132
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
   782
1279
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   783
    srcF := src asFilename.
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   784
    dstF := dst asFilename.
1282
7fa3b3c668f3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1281
diff changeset
   785
1279
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   786
"/    OperatingSystem isUNIXlike ifTrue:[
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   787
"/        cmd := 'cp -r ' , src , ' ' , destDir.
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   788
"/        commandTraceView showCR:cmd , ' ...'.
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   789
"/        commandTraceView endEntry.
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   790
"/        cmd := cmd , ' 2>&1' .
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   791
"/
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   792
"/        self executeCommandAndShowOutput:cmd
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   793
"/    ] ifFalse:[
1282
7fa3b3c668f3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1281
diff changeset
   794
        srcBaseName := srcF baseName.
7fa3b3c668f3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1281
diff changeset
   795
        (srcBaseName startsWith:'.#') ifTrue:[^ self].
7fa3b3c668f3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1281
diff changeset
   796
1279
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   797
        (#(
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   798
            'CVS'
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   799
            'not_delivered'
1282
7fa3b3c668f3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1281
diff changeset
   800
            '.cvsignore'
7fa3b3c668f3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1281
diff changeset
   801
            '.dir.info'
7fa3b3c668f3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1281
diff changeset
   802
        ) includes:srcBaseName) ifFalse:[
7fa3b3c668f3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1281
diff changeset
   803
            srcBaseName includesMatchCharacters ifTrue:[
1281
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   804
                doPrint ifTrue:[
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   805
                    OperatingSystem isUNIXlike ifTrue:[
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   806
                        commandTraceView showCR:('cp ' , srcF pathName , ' ' , dstF pathName).
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   807
                    ] ifFalse:[
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   808
                        commandTraceView showCR:('copy ' , srcF pathName , ' ' , dstF pathName).
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   809
                    ].
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   810
                    commandTraceView endEntry.
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   811
                ].
1279
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   812
                srcF directory directoryContents do:[:fileName |
1282
7fa3b3c668f3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1281
diff changeset
   813
                    (srcBaseName match:fileName) ifTrue:[
1279
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   814
                        (#(
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   815
                            'CVS'
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   816
                            'not_delivered'
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   817
                        ) includes:fileName) ifFalse:[
1281
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   818
                            self 
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   819
                                recursiveCopy:(srcF directory construct:fileName) 
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   820
                                to:dstF
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   821
                                print:false
1279
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   822
                        ]
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   823
                    ]
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
            ] ifFalse:[
1281
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   826
                doPrint ifTrue:[
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   827
                    OperatingSystem isUNIXlike ifTrue:[
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   828
                        commandTraceView showCR:('cp ' , srcF pathName , ' ' , dstF pathName).
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   829
                    ] ifFalse:[
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   830
                        commandTraceView showCR:('copy ' , srcF pathName , ' ' , dstF pathName).
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   831
                    ].
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   832
                    commandTraceView endEntry.
1279
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   833
                ].
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   834
                srcF isDirectory ifFalse:[
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   835
                    (dstF exists and:[dstF isDirectory]) ifTrue:[
1282
7fa3b3c668f3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1281
diff changeset
   836
                        dstF := dstF construct:srcBaseName.
1279
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   837
                    ].
1281
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   838
                    srcF copyTo:dstF.
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   839
                    OperatingSystem isUNIXlike ifTrue:[
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   840
                        srcF isExecutable ifTrue:[
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   841
                            dstF makeExecutableForAll
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   842
                        ]
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   843
                    ]
1279
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   844
                ] ifTrue:[
1282
7fa3b3c668f3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1281
diff changeset
   845
                    d := dstF asFilename construct:srcBaseName.
1279
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   846
                    (d exists) ifFalse:[
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   847
                        d makeDirectory.
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   848
                    ].
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   849
                    srcF directoryContents do:[:fileName |
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   850
                        self recursiveCopy:(srcF construct:fileName) 
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   851
                             to:d
1281
e83c14253471 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1279
diff changeset
   852
                             print:false
1279
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   853
                    ]
1132
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
   854
                ]
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
   855
            ]
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
   856
        ]
1279
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
   857
"/    ]
1132
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
   858
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
   859
    "Created: / 31.5.1999 / 13:05:09 / cg"
1282
7fa3b3c668f3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1281
diff changeset
   860
    "Modified: / 23.12.1999 / 22:07:41 / cg"
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   861
! !
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   862
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   863
!STXInstaller methodsFor:'startup'!
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   864
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   865
askAndInstall
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   866
    "/ check, if we are in the projects/smalltalk directory
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   867
1119
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   868
    |answer here|
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   869
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   870
    resources := ResourcePack for:self class.
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   871
1132
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
   872
    (((here := Filename currentDirectory pathName) endsWith:'projects/smalltalk') not
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
   873
    and:[(here asLowercase endsWith:'stx\binbc') not
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
   874
    and:[(here asLowercase endsWith:'projects\smalltalk') not
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
   875
    ]]) ifTrue:[
1150
a3879a40eb37 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1139
diff changeset
   876
        "/ double - check if some of my expected files exists here ...
1151
4e43271cc266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1150
diff changeset
   877
        ('../../libbasic' asFilename exists
4e43271cc266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1150
diff changeset
   878
        and:['../../libbasic' asFilename isDirectory]) ifTrue:[
1150
a3879a40eb37 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1139
diff changeset
   879
            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
   880
        ] ifFalse:[
a3879a40eb37 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1139
diff changeset
   881
            self warn:(resources string:'must be in the ''projects/smalltalk'' directory').
a3879a40eb37 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1139
diff changeset
   882
            ^ self
a3879a40eb37 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1139
diff changeset
   883
        ]
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   884
    ].
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   885
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   886
    answer := self askForFullInstallation.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   887
    answer ifFalse:[^ self].
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   888
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   889
    [self askForDestination] whileTrue:[
73
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   890
        self checkForExistingInstallationAndConfirm ifTrue:[
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   891
            self preInstall.
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   892
            self doInstall ifTrue:[
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   893
                self postInstall.
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   894
                ^ self
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   895
            ].
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   896
            (self confirm:(resources string:'installation failed or aborted - retry ?'))
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   897
            ifFalse:[
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   898
                ^ self
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   899
            ]
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   900
        ]
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   901
    ].
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   902
1132
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
   903
    "Modified: / 31.5.1999 / 12:04:14 / cg"
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   904
!
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   905
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   906
askForDestination
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   907
    "open a dialog to enter destination directories"
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   908
1010
d744cc925443 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 793
diff changeset
   909
    installWhat == #full ifTrue:[
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   910
        ^ self askForDestinationForFullInstallation
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   911
    ] ifFalse:[
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   912
        ^ self askForDestinationForPartialInstallation
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   913
    ]
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   914
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
     STXInstaller open
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
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   919
    "Modified: / 25.2.1998 / 17:12:45 / cg"
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
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   922
askForDestinationForFullInstallation
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   923
    "open a dialog to enter destination directories"
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   924
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   925
    |d cm l green dark img
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   926
     fullDirHolder|
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   927
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   928
    LastFullDir isNil ifTrue:[
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   929
        LastFullDir := (Filename homeDirectory 
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   930
                            construct:'stx')
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   931
                            constructString:'develop'
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   932
    ].
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   933
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   934
    fullDirHolder := LastFullDir asValue.
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
    Screen current hasColors ifTrue:[
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   937
        green := (Color red:0 green:80 blue:20) "darkened".
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   938
        dark := Color grey:10.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   939
    ] ifFalse:[
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   940
        green := Color white.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   941
        dark := Color black.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   942
    ].
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   943
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   944
    d := DialogBox new.
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 label:(resources string:'ST/X Full Installation').
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   947
    img := Image fromFile:'SmalltalkX.xbm'.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   948
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   949
    l := d addTextLabel:img.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   950
    l adjust:#left; foregroundColor:green backgroundColor:dark.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   951
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   952
    l := d addTextLabel:(resources string:'Smalltalk/X CD installation (full).').
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   953
    l adjust:#left; backgroundColor:dark; foregroundColor:Color white.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   954
    d addVerticalSpace.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   955
    d addVerticalSpace.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   956
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   957
    d addHorizontalLine.
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
    l := d addTextLabel:(resources string:'ST/X development directory:').
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   960
    l adjust:#left; backgroundColor:dark; foregroundColor:Color white.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   961
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   962
    cm := ComboBoxView on:fullDirHolder.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   963
    cm list:self defaultFullDirs.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   964
    d 
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   965
        addLabelledField:cm 
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   966
        label:(resources string:'stx develop')
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   967
        adjust:#left 
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   968
        tabable:true 
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   969
        from:0.0 to:1.0 separateAtX:0.25
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   970
        nameAs:'fullBox'.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   971
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   972
    (d componentAt:'fullBox.label') backgroundColor:dark; foregroundColor:Color white.
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 addVerticalSpace.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   975
    d addHorizontalLine.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   976
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   977
    d addHelpButtonFor:'STXInstaller/installHelp.html';
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   978
      addAbortButton; 
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   979
      addOkButtonLabelled:(resources string:'install').
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   980
    d extent:500@400.
1151
4e43271cc266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1150
diff changeset
   981
    d resize. "/ compute best size
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   982
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   983
    d allViewBackground:dark.
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 openAtCenter.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   986
    d accepted ifTrue:[
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   987
        fullDir := LastFullDir := fullDirHolder value.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   988
        d destroy.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   989
        ^ true
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   990
    ].
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   991
    d destroy.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   992
    ^ false
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   993
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   994
    "
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   995
     STXInstaller open
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
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   998
    "Created: / 25.2.1998 / 17:11:37 / cg"
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   999
    "Modified: / 25.2.1998 / 17:29:07 / cg"
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1000
!
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1001
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1002
askForDestinationForPartialInstallation
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1003
    "open a dialog to enter destination directories"
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1004
2
936a4407697b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1
diff changeset
  1005
    |d cm l green dark img
1132
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1006
     stxInstDirHolder stxLibDirHolder stxLibBinDirHolder stxBinDirHolder
5
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1007
     installDocHolder installSourceHolder installSTCHolder installGoodiesHolder
73
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
  1008
     binMegabytes libMegabytes docMegabytes stcMegabytes srcMegabytes
1132
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1009
     goodyMegabytes stxRel list stxInstDir
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1010
    |
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1011
1139
c5940bfd4ce2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
  1012
    binMegabytes := 20.
73
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
  1013
    libMegabytes := 30.
1139
c5940bfd4ce2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
  1014
    docMegabytes := 12.
1117
657dde1e749d new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents: 1010
diff changeset
  1015
    stcMegabytes := 2.
1139
c5940bfd4ce2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
  1016
    srcMegabytes := 20.
c5940bfd4ce2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
  1017
    goodyMegabytes := 10.
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
  1018
1132
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1019
    stxRel := self smalltalkRelease.
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1020
1119
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
  1021
    OperatingSystem isMSWINDOWSlike ifTrue:[
1132
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1022
        LastPartialDir isNil ifTrue:[
1139
c5940bfd4ce2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
  1023
            LastPartialDir := 'c:\Programme\eXept\SmalltalkX\' , stxRel 
1119
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
  1024
        ].
1132
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1025
"/        LastLibDir isNil ifTrue:[
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1026
"/            LastLibDir := 'c:\Programme\SmalltalkX\' , stxRel , '\lib'
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1027
"/        ].
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1028
"/        LastLibBinDir isNil ifTrue:[
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1029
"/            LastLibBinDir := 'c:\Programme\SmalltalkX\' , stxRel , '\lib'
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1030
"/        ].
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1031
"/        LastBinDir isNil ifTrue:[
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1032
"/            LastBinDir := 'c:\Programme\SmalltalkX\' , stxRel , '\bin'
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1033
"/        ].
1119
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
  1034
    ] ifFalse:[
1132
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1035
        LastPartialDir isNil ifTrue:[
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1036
            LastPartialDir := '/opt/smalltalk/' , stxRel
1119
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
  1037
        ].
1132
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1038
"/        LastLibDir isNil ifTrue:[
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1039
"/            LastLibDir := '/opt/smalltalk/' , stxRel , '/lib'
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1040
"/        ].
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1041
"/        LastLibBinDir isNil ifTrue:[
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1042
"/            LastLibBinDir := '/opt/smalltalk/' , stxRel , '/lib'
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1043
"/        ].
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1044
"/        LastBinDir isNil ifTrue:[
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1045
"/            LastBinDir := '/opt/smalltalk/' , stxRel , '/bin'
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1046
"/        ].
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1047
    ].
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1048
1132
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1049
    stxInstDirHolder := LastPartialDir asValue.
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1050
"/    stxLibDirHolder := LastLibDir asValue.
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1051
"/    stxLibBinDirHolder := LastLibBinDir asValue.
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1052
"/    stxBinDirHolder := LastBinDir asValue.
24
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
  1053
5
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1054
    installDocHolder := true asValue.
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1055
    installSourceHolder := true asValue.
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1056
    installSTCHolder := true asValue.
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1057
    installGoodiesHolder := true asValue.
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1058
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1059
    Screen current hasColors ifTrue:[
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1060
        green := (Color red:0 green:80 blue:20) "darkened".
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1061
        dark := Color grey:10.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1062
    ] ifFalse:[
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1063
        green := Color white.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1064
        dark := Color black.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1065
    ].
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1066
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1067
    d := DialogBox new.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1068
1279
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
  1069
    d label:(resources string:'ST/X Standard Installation').
2
936a4407697b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1
diff changeset
  1070
    img := Image fromFile:'SmalltalkX.xbm'.
936a4407697b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1
diff changeset
  1071
936a4407697b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1
diff changeset
  1072
    l := d addTextLabel:img.
936a4407697b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1
diff changeset
  1073
    l adjust:#left; foregroundColor:green backgroundColor:dark.
936a4407697b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1
diff changeset
  1074
1279
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
  1075
    l := d addTextLabel:(resources string:'Smalltalk/X Standard installation (partial).').
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1076
    l adjust:#left; backgroundColor:dark; foregroundColor:Color white.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1077
    d addVerticalSpace.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1078
    d addVerticalSpace.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1079
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1080
    d addHorizontalLine.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1081
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
  1082
    l := d addTextLabel:(resources string:'Destination directories:').
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1083
    l adjust:#left; backgroundColor:dark; foregroundColor:Color white.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1084
1132
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1085
    l := d addTextLabel:(resources string:'(the default below is recommended)').
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1086
    l adjust:#right; backgroundColor:dark; foregroundColor:Color white.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1087
1132
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1088
    cm := ComboBoxView on:stxInstDirHolder.
1139
c5940bfd4ce2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1138
diff changeset
  1089
    list := self defaultInstDirs collect:[:line |
1132
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1090
                line replChar:$\ withString:'\\'
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1091
            ].
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1092
    cm list:list.
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1093
    d 
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1094
        addLabelledField:cm 
1132
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1095
        label:(resources string:'install into:')
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1096
        adjust:#left 
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1097
        tabable:true 
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1098
        from:0.0 to:1.0 separateAtX:0.25
1132
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1099
        nameAs:'instDirBox'.
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1100
1132
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1101
    (d componentAt:'instDirBox.label') backgroundColor:dark; foregroundColor:Color white.
24
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
  1102
1132
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1103
"/    cm := ComboBoxView on:stxBinDirHolder.
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1104
"/    list := self defaultBinDirs collect:[:line |
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1105
"/                line replChar:$\ withString:'\\'
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1106
"/            ].
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1107
"/    cm list:list.
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1108
"/    d 
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1109
"/        addLabelledField:cm 
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1110
"/        label:(resources string:'binaries')
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1111
"/        adjust:#left 
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1112
"/        tabable:true 
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1113
"/        from:0.0 to:1.0 separateAtX:0.25
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1114
"/        nameAs:'binaryBox'.
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1115
"/
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1116
"/    (d componentAt:'binaryBox.label') backgroundColor:dark; foregroundColor:Color white.
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
"/    cm := ComboBoxView on:stxLibBinDirHolder.
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1119
"/    cm list:self defaultLibBinDirs.
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1120
"/    d 
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1121
"/        addLabelledField:cm 
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1122
"/        label:(resources string:'libraries') 
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1123
"/        adjust:#left 
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1124
"/        tabable:true 
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1125
"/        from:0.0 to:1.0 separateAtX:0.25
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1126
"/        nameAs:'libraryBinBox'.
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1127
"/
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1128
"/    (d componentAt:'libraryBinBox.label') backgroundColor:dark; foregroundColor:Color white.
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
"/    cm := ComboBoxView on:stxLibDirHolder.
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1131
"/    cm list:self defaultLibDirs.
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1132
"/    d 
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1133
"/        addLabelledField:cm 
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1134
"/        label:(resources string:'other files') 
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1135
"/        adjust:#left 
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1136
"/        tabable:true 
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1137
"/        from:0.0 to:1.0 separateAtX:0.25
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1138
"/        nameAs:'libraryBox'.
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1139
"/
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1140
"/    (d componentAt:'libraryBox.label') backgroundColor:dark; foregroundColor:Color white.
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1141
5
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1142
    d addVerticalSpace.
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1143
    d addHorizontalLine.
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
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
  1146
    (d addTextLabel:(resources string:'required:'))
5
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1147
        adjust:#left; foregroundColor:Color white backgroundColor:dark.
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1148
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1149
    d leftIndent:35.
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
  1150
    (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
  1151
        adjust:#left; foregroundColor:Color white backgroundColor:dark.
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
  1152
    (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
  1153
        adjust:#left; foregroundColor:Color white backgroundColor:dark.
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1154
    d leftIndent:0.
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1155
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1156
    d addVerticalSpace.
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1157
    d addHorizontalLine.
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
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
  1160
    (d addTextLabel:(resources string:'optional:'))
5
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1161
        adjust:#left; foregroundColor:Color white backgroundColor:dark.
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1162
73
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
  1163
    (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
  1164
        labelView foregroundColor:Color white backgroundColor:dark.
73
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
  1165
    (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
  1166
        labelView foregroundColor:Color white backgroundColor:dark.
c9574685e157 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 9
diff changeset
  1167
c9574685e157 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 9
diff changeset
  1168
    d addVerticalSpace.
c9574685e157 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 9
diff changeset
  1169
    d addHorizontalLine.
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
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
  1172
    (d addTextLabel:(resources string:'optional (but highly recommended):'))
10
c9574685e157 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 9
diff changeset
  1173
        adjust:#left; foregroundColor:Color white backgroundColor:dark.
c9574685e157 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 9
diff changeset
  1174
73
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
  1175
    (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
  1176
        labelView foregroundColor:Color white backgroundColor:dark.
1117
657dde1e749d new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents: 1010
diff changeset
  1177
    (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
  1178
        labelView foregroundColor:Color white backgroundColor:dark.
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1179
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1180
    d addVerticalSpace.
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1181
    d addHorizontalLine.
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1182
24
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
  1183
    d addHelpButtonFor:'STXInstaller/installHelp.html';
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
  1184
      addAbortButton; 
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
  1185
      addOkButtonLabelled:(resources string:'install').
73
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
  1186
    d extent:500@400.
1151
4e43271cc266 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1150
diff changeset
  1187
    d resize. "/ compute best size
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1188
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1189
    d allViewBackground:dark.
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 openAtCenter.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1192
    d accepted ifTrue:[
1279
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
  1193
        stxInstDir := LastPartialDir := stxTopDir := stxInstDirHolder value.
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
  1194
        stxDocDir := stxInstDir asFilename constructString:'doc'.
1132
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1195
        stxLibDir := stxInstDir asFilename constructString:'lib'.
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1196
        stxLibBinDir := stxInstDir asFilename constructString:'lib'.
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1197
        stxBinDir := stxInstDir asFilename constructString:'bin'.
1279
b531a4cf201a checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1152
diff changeset
  1198
        stxPkgDir := stxInstDir asFilename constructString:'packages'.
1132
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1199
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1200
"/        stxLibDir := LastLibDir := stxLibDirHolder value.
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1201
"/        stxLibBinDir := LastLibBinDir := stxLibBinDirHolder value.
ef8fb42803b0 changes for win32.
Claus Gittinger <cg@exept.de>
parents: 1119
diff changeset
  1202
"/        stxBinDir := LastBinDir := stxBinDirHolder value.
5
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1203
        installDocFiles := installDocHolder value.
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1204
        installSourceFiles := installSourceHolder value.
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1205
        installSTCFiles := installSTCHolder value.
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1206
        installGoodyFiles := installGoodiesHolder value.
1
7ebb34d8f3df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 0
diff changeset
  1207
        d destroy.