STXInstaller.st
author Claus Gittinger <cg@exept.de>
Sun, 02 May 1999 13:40:15 +0200
changeset 1119 556bb6c9e36c
parent 1118 ebecbe5d4b6b
child 1132 ef8fb42803b0
permissions -rw-r--r--
first changes for win32
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
24
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
     2
	instanceVariableNames:'stxLibDir stxLibBinDir stxBinDir installDocFiles
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
     3
		installSourceFiles installSTCFiles installGoodyFiles fullDir
24
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
     4
		actionPercentageHolder actionTextHolder commandTraceView
1010
d744cc925443 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 793
diff changeset
     5
		resources dfHolder copyProcess installWhat'
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
     6
	classVariableNames:'LastBinDir LastLibBinDir LastLibDir 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
7ebb34d8f3df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 0
diff changeset
    25
    |dirs|
7ebb34d8f3df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 0
diff changeset
    26
7ebb34d8f3df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 0
diff changeset
    27
    dirs := OrderedCollection new.
1119
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    28
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    29
    OperatingSystem isMSWINDOWSlike ifTrue:[
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    30
        dirs add:'\Programme\eXept\SmalltalkX\' , self smalltalkRelease , '\bin'.
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    31
        dirs add:'\Programme\SmalltalkX\' , self smalltalkRelease , '\bin'.
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    32
        dirs add:'\SmalltalkX\' , self smalltalkRelease , '\bin'.
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    33
    ] ifFalse:[
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    34
        dirs add:'/opt/smalltalk/' , self smalltalkRelease , '/bin'.
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    35
        dirs add:'/usr/local/bin'.
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    36
        dirs add:'/usr/bin'.
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    37
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    38
        dirs add:(Filename homeDirectory constructString:'bin').
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    39
        dirs add:((Filename homeDirectory 
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    40
                                construct:'stx')
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    41
                                constructString:'bin').
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    42
        dirs add:'/tmp/stxbin'.
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    43
        ('/home' asFilename exists and:['/home' asFilename isDirectory]) ifTrue:[
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    44
            dirs add:'/home/stx/bin'.
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    45
        ].
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    46
        ('/home2' asFilename exists and:['/home2' asFilename isDirectory]) ifTrue:[
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    47
            dirs add:'/home2/stx/bin'.
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    48
        ].
3
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
7b048cdcc856 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2
diff changeset
    51
"/    dirs := dirs select:[:path | 
7b048cdcc856 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2
diff changeset
    52
"/                            |f|
7b048cdcc856 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2
diff changeset
    53
"/
7b048cdcc856 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2
diff changeset
    54
"/                            f := path asFilename.
7b048cdcc856 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2
diff changeset
    55
"/                            f exists and:[f isDirectory]].
1117
657dde1e749d new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents: 1010
diff changeset
    56
    ^ dirs "sort"
1
7ebb34d8f3df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 0
diff changeset
    57
1119
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    58
    "Created: / 18.7.1996 / 19:43:00 / cg"
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    59
    "Modified: / 30.4.1999 / 11:56:03 / cg"
1
7ebb34d8f3df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 0
diff changeset
    60
!
7ebb34d8f3df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 0
diff changeset
    61
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
    62
defaultFullDirs
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
    63
    |dirs|
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
    64
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
    65
    dirs := OrderedCollection new.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
    66
    dirs add:(Filename homeDirectory constructString:'stxDevelop').
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
    67
    dirs add:((Filename homeDirectory 
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
    68
                            construct:'stx')
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
    69
                            constructString:'develop').
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
    70
    ('/home' asFilename exists and:['/home' asFilename isDirectory]) ifTrue:[
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
    71
        dirs add:'/home/stx/develop'.
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
1117
657dde1e749d new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents: 1010
diff changeset
    74
    ^ dirs "sort"
678
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
    "Modified: / 18.7.1996 / 19:45:08 / cg"
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
    77
    "Created: / 25.2.1998 / 17:14:43 / cg"
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
    78
!
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
    79
24
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
    80
defaultLibBinDirs
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
    81
    |dirs|
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
    82
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
    83
    dirs := OrderedCollection new.
1119
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    84
    OperatingSystem isMSWINDOWSlike ifTrue:[
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    85
        dirs add:'\Programme\eXept\SmalltalkX\' , self smalltalkRelease , '\lib'.
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    86
        dirs add:'\Programme\SmalltalkX\' , self smalltalkRelease , '\lib'.
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    87
        dirs add:'\SmalltalkX\' , self smalltalkRelease , '\lib'.
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    88
    ] ifFalse:[
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    89
        dirs add:'/usr/local/lib'.
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    90
        dirs add:'/usr/lib'.
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    91
        dirs add:'/lib'.
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    92
        dirs add:(Filename homeDirectory 
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    93
                                constructString:'lib').
24
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
    94
1119
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    95
        dirs add:((Filename homeDirectory 
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    96
                                construct:'stx')
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    97
                                constructString:'lib').
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    98
        dirs add:'/tmp/stxlib'.
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
    99
        dirs add:'/home/stx/lib'.
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   100
        dirs add:'/home2/stx/lib'.
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   101
    ].
24
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   102
    ^ dirs sort
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   103
1119
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   104
    "Created: / 18.7.1996 / 19:43:21 / cg"
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   105
    "Modified: / 30.4.1999 / 11:56:48 / cg"
24
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   106
!
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   107
1
7ebb34d8f3df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 0
diff changeset
   108
defaultLibDirs
7ebb34d8f3df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 0
diff changeset
   109
    |dirs|
7ebb34d8f3df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 0
diff changeset
   110
7ebb34d8f3df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 0
diff changeset
   111
    dirs := OrderedCollection new.
1119
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   112
    OperatingSystem isMSWINDOWSlike ifTrue:[
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   113
        dirs add:'\Programme\eXept\SmalltalkX\' , self smalltalkRelease , '\lib'.
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   114
        dirs add:'\Programme\SmalltalkX\' , self smalltalkRelease , '\lib'.
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   115
        dirs add:'\SmalltalkX\' , self smalltalkRelease , '\lib'.
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   116
    ] ifFalse:[
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   117
        dirs add:'/opt/smalltalk/' , self smalltalkRelease , '/lib'.
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   118
        dirs add:'/usr/local/lib/smalltalk'.
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   119
        dirs add:'/usr/lib/smalltalk'.
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   120
        dirs add:((Filename homeDirectory 
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   121
                                construct:'lib')
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   122
                                constructString:'smalltalk').
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   123
        dirs add:((Filename homeDirectory 
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   124
                                construct:'stx')
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   125
                                constructString:'lib').
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   126
        dirs add:'/tmp/stxlib'.
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   127
        dirs add:'/home/stx/lib'.
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   128
        dirs add:'/home2/stx/lib'.
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   129
    ].
3
7b048cdcc856 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2
diff changeset
   130
7b048cdcc856 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2
diff changeset
   131
"/    dirs := dirs select:[:path | 
7b048cdcc856 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2
diff changeset
   132
"/                            |f|
7b048cdcc856 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2
diff changeset
   133
"/
7b048cdcc856 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2
diff changeset
   134
"/                            f := path asFilename.
7b048cdcc856 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 2
diff changeset
   135
"/                            f exists and:[f isDirectory]].
1117
657dde1e749d new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents: 1010
diff changeset
   136
    ^ dirs "sort"
1
7ebb34d8f3df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 0
diff changeset
   137
1119
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   138
    "Created: / 18.7.1996 / 19:43:21 / cg"
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   139
    "Modified: / 30.4.1999 / 11:57:02 / cg"
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   140
!
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   141
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   142
directoriesToMake
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   143
    |dirsToMake|
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   144
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   145
    dirsToMake := OrderedCollection new.
1010
d744cc925443 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 793
diff changeset
   146
    installWhat == #full ifTrue:[
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   147
        dirsToMake add:fullDir.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   148
    ] ifFalse:[
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   149
        dirsToMake add:stxBinDir.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   150
        dirsToMake add:stxLibDir.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   151
        dirsToMake add:stxLibBinDir.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   152
        dirsToMake add:(stxLibDir asFilename constructString:'configurations').
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   153
        dirsToMake add:(stxLibDir asFilename constructString:'doc').
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   154
        dirsToMake add:(stxLibDir asFilename constructString:'doc/online').
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   155
        dirsToMake add:(stxLibDir asFilename constructString:'doc/online/english').
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   156
        dirsToMake add:(stxLibDir asFilename constructString:'doc/online/german').
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   157
        dirsToMake add:(stxLibDir asFilename constructString:'doc/online/french').
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   158
        dirsToMake add:(stxLibDir asFilename constructString:'doc/online/italian').
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   159
        dirsToMake add:(stxLibDir asFilename constructString:'include').
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   160
        dirsToMake add:(stxLibDir asFilename constructString:'resources').
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   161
        dirsToMake add:(stxLibDir asFilename constructString:'binary').
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   162
        dirsToMake add:(stxLibDir asFilename constructString:'bitmaps').
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   163
        dirsToMake add:(stxLibDir asFilename constructString:'goodies').
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   164
    ].
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   165
    ^ dirsToMake
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   166
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   167
    "Modified: / 25.2.1998 / 17:15:19 / cg"
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   168
!
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   169
73
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   170
listOfOptionalPackages
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   171
    ^ #(
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   172
        'libDB'
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   173
        'clients/CBrowser'
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   174
        'libcompat'
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   175
        'libxt'
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   176
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   177
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   178
        "/ mhmh - these should not be needed here ...
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   179
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   180
        'projects/smalltalk/bitmaps/javaImages'
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   181
        'doc/online/english/overview/icons'
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   182
      )
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   183
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   184
    "Created: 2.3.1997 / 12:39:59 / cg"
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   185
    "Modified: 2.3.1997 / 13:24:41 / cg"
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   186
!
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   187
1117
657dde1e749d new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents: 1010
diff changeset
   188
smalltalkRelease
657dde1e749d new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents: 1010
diff changeset
   189
    ^ Smalltalk majorVersionNr printString 
657dde1e749d new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents: 1010
diff changeset
   190
               , '.' , Smalltalk minorVersionNr printString
657dde1e749d new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents: 1010
diff changeset
   191
               , '.' , Smalltalk revisionNr printString.
657dde1e749d new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents: 1010
diff changeset
   192
!
657dde1e749d new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents: 1010
diff changeset
   193
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   194
specOfFilesToCopy
1119
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   195
    OperatingSystem isMSWINDOWSlike ifTrue:[
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   196
        ^ self specOfWindowsFilesToCopy
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   197
    ].
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   198
    ^ self specOfUnixFilesToCopy
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   199
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   200
    "Modified: / 2.5.1999 / 13:17:59 / cg"
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   201
!
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   202
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   203
specOfUnixFilesToCopy
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   204
    |fileSpec|
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   205
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   206
    fileSpec := #(
27
8c5195f9508a also install stx.
Claus Gittinger <cg@exept.de>
parents: 26
diff changeset
   207
                "/ name                             destination  subDir             required mode      
12
6cb00d713d4d LICENSE texts must always be installed
Claus Gittinger <cg@exept.de>
parents: 11
diff changeset
   208
                ( 'projects/smalltalk/smalltalk'        #bin     nil                  true  '755' )
27
8c5195f9508a also install stx.
Claus Gittinger <cg@exept.de>
parents: 26
diff changeset
   209
                ( 'projects/smalltalk/stx'              #bin     nil                  true  '755' )
12
6cb00d713d4d LICENSE texts must always be installed
Claus Gittinger <cg@exept.de>
parents: 11
diff changeset
   210
                ( 'projects/smalltalk/include'          #lib     nil                  true  '644' )
277
935f9a055594 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 276
diff changeset
   211
                ( 'COPYRIGHT'                           #lib     nil                  true  '644' )
12
6cb00d713d4d LICENSE texts must always be installed
Claus Gittinger <cg@exept.de>
parents: 11
diff changeset
   212
                ( 'projects/smalltalk/*.rc'             #lib     nil                  true  '644' )
6cb00d713d4d LICENSE texts must always be installed
Claus Gittinger <cg@exept.de>
parents: 11
diff changeset
   213
                ( 'projects/smalltalk/patches'          #lib     nil                  true  '644' )
6cb00d713d4d LICENSE texts must always be installed
Claus Gittinger <cg@exept.de>
parents: 11
diff changeset
   214
                ( 'projects/smalltalk/bitmaps'          #lib     nil                  true  '644' )
6cb00d713d4d LICENSE texts must always be installed
Claus Gittinger <cg@exept.de>
parents: 11
diff changeset
   215
                ( 'projects/smalltalk/resources'        #lib     nil                  true  '644' )
6cb00d713d4d LICENSE texts must always be installed
Claus Gittinger <cg@exept.de>
parents: 11
diff changeset
   216
                ( 'projects/smalltalk/lib'              #lib     nil                  true  '644' )
16
e41abdee193f checkin from browser
Claus Gittinger <cg@exept.de>
parents: 15
diff changeset
   217
                ( 'doc/online/german/LICENCE.STX.html'  #lib     'doc/online/german'  true  '644' )
277
935f9a055594 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 276
diff changeset
   218
                ( 'doc/online/english/LICENCE.STX.html' #lib     'doc/online/english' true  '644' )
5
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   219
    ).
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   220
5
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   221
    installDocFiles ifTrue:[
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   222
        fileSpec := fileSpec , #(
24
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   223
                ( 'doc'                                  #lib     nil        false '644' )
5
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   224
        ).
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   225
    ].
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   226
9
9f31213107b8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8
diff changeset
   227
    installSourceFiles ifTrue:[
9f31213107b8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8
diff changeset
   228
        fileSpec := fileSpec , #(
24
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   229
                ( 'projects/smalltalk/source'                #lib        nil        false '644' )
9
9f31213107b8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8
diff changeset
   230
        ).
9f31213107b8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8
diff changeset
   231
    ].
9f31213107b8 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 8
diff changeset
   232
5
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   233
    installSTCFiles ifTrue:[
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   234
        fileSpec := fileSpec , #(
24
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   235
                ( 'stc/stc'                                  #bin        nil              false '755' )
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   236
                ( 'rules/stmkmp'                             #bin        nil              false '755' )
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   237
                ( 'rules/stmkmf'                             #bin        nil              false '755' )
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   238
                ( 'include'                                  #lib        nil              false '644' )
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   239
                ( 'configurations'                           #lib        nil              false '644' )
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   240
                ( 'configurations/PACKS'                     #lib        'configurations' false '644' )
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   241
                ( 'configurations/my*'                       #lib        'configurations' false '644' )
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   242
                ( 'configurations/vendor*'                   #lib        'configurations' false '644' )
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   243
                ( 'rules'                                    #lib        nil              false '644' )
5
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   244
276
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   245
                ( 'support/VGL/vogl/src/libvogl.*'           #lib        'lib'            false '644' )
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   246
                ( 'support/VGL/vogl/src/*.h'                 #lib        'include'        false '644' )
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   247
                ( 'support/DLD/dld-3.2.5/libdld.*'           #lib        'lib'            false '644' )
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   248
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   249
                ( 'goodies/persistency/db-1.6/PORT/libdb.*'  #lib        'lib'            false '644' )
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   250
276
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   251
                ( 'librun/librun.*'                          #libBin     nil              false '644' )
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   252
                ( 'libbasic/libbasic.*'                      #libBin     nil              false '644' )
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   253
                ( 'libbasic2/libbasic2.*'                    #libBin     nil              false '644' )
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   254
                ( 'libbasic3/libbasic3.*'                    #libBin     nil              false '644' )
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   255
                ( 'libhtml/libhtml.*'                        #libBin     nil              false '644' )
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   256
                ( 'libcomp/libcomp.*'                        #libBin     nil              false '644' )
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   257
                ( 'libcomp/ObjFL*.o'                         #libBin     nil              false '644' )
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   258
                ( 'libcomp/ObjFL*.obj'                       #libBin     nil              false '644' )
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   259
                ( 'libcomp/ObjFL*.so'                        #libBin     nil              false '644' )
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   260
                ( 'libview/libview.*'                        #libBin     nil              false '644' )
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   261
                ( 'libview/GLX*.o'                           #libBin     nil              false '644' )
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   262
                ( 'libview/GLX*.obj'                         #libBin     nil              false '644' )
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   263
                ( 'libview/GLX*.so'                          #libBin     nil              false '644' )
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   264
                ( 'libview/XW*.o'                            #libBin     nil              false '644' )
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   265
                ( 'libview/XW*.obj'                          #libBin     nil              false '644' )
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   266
                ( 'libview/XW*.so'                           #libBin     nil              false '644' )
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   267
                ( 'libview2/libview2.*'                      #libBin     nil              false '644' )
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   268
                ( 'libwidg/libwidg.*'                        #libBin     nil              false '644' )
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   269
                ( 'libwidg2/libwidg2.*'                      #libBin     nil              false '644' )
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   270
                ( 'libwidg3/libwidg3.*'                      #libBin     nil              false '644' )
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   271
                ( 'libui/libui.*'                            #libBin     nil              false '644' )
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   272
27
8c5195f9508a also install stx.
Claus Gittinger <cg@exept.de>
parents: 26
diff changeset
   273
"/                ( 'libsnmp/libsnmp.*'                        #libBin     nil      false '644' )
8c5195f9508a also install stx.
Claus Gittinger <cg@exept.de>
parents: 26
diff changeset
   274
"/                ( 'contrib/libPVM/libPVM.*'                  #libBin     nil      false '644' )
24
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   275
                ( 'goodies/persistency/libdbase.*'           #libBin     nil      false '644' )
27
8c5195f9508a also install stx.
Claus Gittinger <cg@exept.de>
parents: 26
diff changeset
   276
"/                ( 'libtable/libtable.*'                      #libBin     nil      false '644' )
24
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   277
                ( 'libtool/libtool.*'                        #libBin     nil      false '644' )
214
e5aaf5e3bbf9 also install libtool2 & libui
Claus Gittinger <cg@exept.de>
parents: 117
diff changeset
   278
                ( 'libtool2/libtool2.*'                      #libBin     nil      false '644' )
27
8c5195f9508a also install stx.
Claus Gittinger <cg@exept.de>
parents: 26
diff changeset
   279
"/                ( 'libxt/libxt.*'                            #libBin     nil      false '644' )
8c5195f9508a also install stx.
Claus Gittinger <cg@exept.de>
parents: 26
diff changeset
   280
"/                ( 'librt/librt.*'                            #libBin     nil      false '644' )
5
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   281
        ).
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   282
    ].
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   283
5
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   284
    installGoodyFiles ifTrue:[
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   285
        fileSpec := fileSpec , #(
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   286
                ( 'goodies/*.st'                             #lib     'goodies'  false '644' )
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   287
                ( 'goodies/*.chg'                            #lib     'goodies'  false '644' )
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   288
                ( 'goodies/rdoit/rdoit'                      #bin     nil        false '755' )
236
622b9a04eb9b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 214
diff changeset
   289
                ( 'goodies/bitmaps/rdoit'                    #lib     'goodies/bitmaps'  false '755' )
5
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   290
        ).
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   291
    ].
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   292
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   293
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   294
    ^ fileSpec
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   295
1119
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   296
    "Modified: / 30.4.1999 / 18:02:22 / cg"
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   297
    "Created: / 2.5.1999 / 13:17:37 / cg"
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   298
!
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   299
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   300
specOfWindowsFilesToCopy
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   301
    |fileSpec|
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   302
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   303
    fileSpec := #(
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   304
                "/ name                             destination  subDir             required       
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   305
"/                ( 'binbc\smalltalk'                     #bin     nil                  true   )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   306
                ( 'binbc\stx'                           #bin     nil                  true   )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   307
                ( 'binbc\include'                       #lib     nil                  true   )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   308
                ( 'binbc\lib*.dll'                      #bin     nil                  true   )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   309
                ( 'COPYRIGHT'                           #lib     nil                  true   )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   310
                ( 'binbc\*.rc'                          #lib     nil                  true   )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   311
                ( 'binbc\patches'                       #lib     nil                  true   )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   312
                ( 'binbc\bitmaps'                       #lib     nil                  true   )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   313
                ( 'binbc\resources'                     #lib     nil                  true   )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   314
                ( 'doc\online\german\LICENCE.STX.html'  #lib     'doc\online\german'  true   )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   315
                ( 'doc\online\english\LICENCE.STX.html' #lib     'doc\online\english' true   )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   316
    ).
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   317
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   318
    installDocFiles ifTrue:[
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   319
        fileSpec := fileSpec , #(
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   320
                ( 'doc'                                  #lib     nil        false  )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   321
        ).
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   322
    ].
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   323
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   324
    installSourceFiles ifTrue:[
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   325
        fileSpec := fileSpec , #(
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   326
                ( 'binbc\source'                         #lib     nil        false  )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   327
        ).
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
    installSTCFiles ifTrue:[
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   331
        fileSpec := fileSpec , #(
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   332
                ( 'binbc\stc'                            #bin        nil              false  )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   333
                ( 'include'                              #lib        nil              false  )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   334
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   335
                ( 'binbc\*.lib'                          #libBin     nil              false  )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   336
        ).
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   337
    ].
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   338
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   339
    installGoodyFiles ifTrue:[
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   340
        fileSpec := fileSpec , #(
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   341
                ( 'goodies\*.st'                             #lib     'goodies'  false  )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   342
                ( 'goodies\*.chg'                            #lib     'goodies'  false  )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   343
        ).
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   344
    ].
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   345
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   346
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   347
    ^ fileSpec
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
    "Modified: / 30.4.1999 / 18:02:22 / cg"
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   350
    "Created: / 2.5.1999 / 13:23:06 / cg"
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   351
!
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   352
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   353
xxspecOfFilesToCopy
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   354
    |fileSpec|
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
    OperatingSystem isMSWINDOWSlike ifTrue:[
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   357
        ^self specOfWindowsFilesToCopy
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
    ].
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   360
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   361
    fileSpec := #(
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   362
                "/ name                             destination  subDir             required mode      
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   363
                ( 'projects/smalltalk/smalltalk'        #bin     nil                  true  '755' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   364
                ( 'projects/smalltalk/stx'              #bin     nil                  true  '755' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   365
                ( 'projects/smalltalk/include'          #lib     nil                  true  '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   366
                ( 'COPYRIGHT'                           #lib     nil                  true  '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   367
                ( 'projects/smalltalk/*.rc'             #lib     nil                  true  '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   368
                ( 'projects/smalltalk/patches'          #lib     nil                  true  '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   369
                ( 'projects/smalltalk/bitmaps'          #lib     nil                  true  '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   370
                ( 'projects/smalltalk/resources'        #lib     nil                  true  '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   371
                ( 'projects/smalltalk/lib'              #lib     nil                  true  '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   372
                ( 'doc/online/german/LICENCE.STX.html'  #lib     'doc/online/german'  true  '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   373
                ( 'doc/online/english/LICENCE.STX.html' #lib     'doc/online/english' true  '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   374
    ).
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   375
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   376
    installDocFiles ifTrue:[
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   377
        fileSpec := fileSpec , #(
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   378
                ( 'doc'                                  #lib     nil        false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   379
        ).
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   380
    ].
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   381
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   382
    installSourceFiles ifTrue:[
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   383
        fileSpec := fileSpec , #(
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   384
                ( 'projects/smalltalk/source'                #lib        nil        false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   385
        ).
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   386
    ].
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   387
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   388
    installSTCFiles ifTrue:[
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   389
        fileSpec := fileSpec , #(
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   390
                ( 'stc/stc'                                  #bin        nil              false '755' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   391
                ( 'rules/stmkmp'                             #bin        nil              false '755' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   392
                ( 'rules/stmkmf'                             #bin        nil              false '755' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   393
                ( 'include'                                  #lib        nil              false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   394
                ( 'configurations'                           #lib        nil              false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   395
                ( 'configurations/PACKS'                     #lib        'configurations' false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   396
                ( 'configurations/my*'                       #lib        'configurations' false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   397
                ( 'configurations/vendor*'                   #lib        'configurations' false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   398
                ( 'rules'                                    #lib        nil              false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   399
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   400
                ( 'support/VGL/vogl/src/libvogl.*'           #lib        'lib'            false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   401
                ( 'support/VGL/vogl/src/*.h'                 #lib        'include'        false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   402
                ( 'support/DLD/dld-3.2.5/libdld.*'           #lib        'lib'            false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   403
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   404
                ( 'goodies/persistency/db-1.6/PORT/libdb.*'  #lib        'lib'            false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   405
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   406
                ( 'librun/librun.*'                          #libBin     nil              false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   407
                ( 'libbasic/libbasic.*'                      #libBin     nil              false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   408
                ( 'libbasic2/libbasic2.*'                    #libBin     nil              false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   409
                ( 'libbasic3/libbasic3.*'                    #libBin     nil              false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   410
                ( 'libhtml/libhtml.*'                        #libBin     nil              false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   411
                ( 'libcomp/libcomp.*'                        #libBin     nil              false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   412
                ( 'libcomp/ObjFL*.o'                         #libBin     nil              false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   413
                ( 'libcomp/ObjFL*.obj'                       #libBin     nil              false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   414
                ( 'libcomp/ObjFL*.so'                        #libBin     nil              false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   415
                ( 'libview/libview.*'                        #libBin     nil              false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   416
                ( 'libview/GLX*.o'                           #libBin     nil              false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   417
                ( 'libview/GLX*.obj'                         #libBin     nil              false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   418
                ( 'libview/GLX*.so'                          #libBin     nil              false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   419
                ( 'libview/XW*.o'                            #libBin     nil              false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   420
                ( 'libview/XW*.obj'                          #libBin     nil              false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   421
                ( 'libview/XW*.so'                           #libBin     nil              false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   422
                ( 'libview2/libview2.*'                      #libBin     nil              false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   423
                ( 'libwidg/libwidg.*'                        #libBin     nil              false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   424
                ( 'libwidg2/libwidg2.*'                      #libBin     nil              false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   425
                ( 'libwidg3/libwidg3.*'                      #libBin     nil              false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   426
                ( 'libui/libui.*'                            #libBin     nil              false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   427
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   428
"/                ( 'libsnmp/libsnmp.*'                        #libBin     nil      false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   429
"/                ( 'contrib/libPVM/libPVM.*'                  #libBin     nil      false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   430
                ( 'goodies/persistency/libdbase.*'           #libBin     nil      false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   431
"/                ( 'libtable/libtable.*'                      #libBin     nil      false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   432
                ( 'libtool/libtool.*'                        #libBin     nil      false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   433
                ( 'libtool2/libtool2.*'                      #libBin     nil      false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   434
"/                ( 'libxt/libxt.*'                            #libBin     nil      false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   435
"/                ( 'librt/librt.*'                            #libBin     nil      false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   436
        ).
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   437
    ].
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   438
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   439
    installGoodyFiles ifTrue:[
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   440
        fileSpec := fileSpec , #(
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   441
                ( 'goodies/*.st'                             #lib     'goodies'  false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   442
                ( 'goodies/*.chg'                            #lib     'goodies'  false '644' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   443
                ( 'goodies/rdoit/rdoit'                      #bin     nil        false '755' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   444
                ( 'goodies/bitmaps/rdoit'                    #lib     'goodies/bitmaps'  false '755' )
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   445
        ).
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   446
    ].
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   447
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   448
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   449
    ^ fileSpec
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   450
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   451
    "Modified: / 8.8.1997 / 18:39:06 / cg"
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   452
    "Created: / 2.5.1999 / 13:17:27 / cg"
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   453
! !
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   454
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   455
!STXInstaller methodsFor:'installing'!
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   456
790
79bc027907ee checkin from browser
Claus Gittinger <cg@exept.de>
parents: 682
diff changeset
   457
changeWritability
791
108f933f9385 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 790
diff changeset
   458
    |msg|
790
79bc027907ee checkin from browser
Claus Gittinger <cg@exept.de>
parents: 682
diff changeset
   459
1010
d744cc925443 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 793
diff changeset
   460
    installWhat == #full ifTrue:[
792
bffad322b0bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 791
diff changeset
   461
        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
   462
792
bffad322b0bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 791
diff changeset
   463
        commandTraceView showCR:(resources string:'making target dir writable ...').
bffad322b0bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 791
diff changeset
   464
        commandTraceView endEntry.
790
79bc027907ee checkin from browser
Claus Gittinger <cg@exept.de>
parents: 682
diff changeset
   465
        OperatingSystem executeCommand:('(cd ' , fullDir , ' ; find . -exec chmod u+w {} \;)').
79bc027907ee checkin from browser
Claus Gittinger <cg@exept.de>
parents: 682
diff changeset
   466
    ].
79bc027907ee checkin from browser
Claus Gittinger <cg@exept.de>
parents: 682
diff changeset
   467
791
108f933f9385 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 790
diff changeset
   468
    "Created: / 17.7.1996 / 15:24:19 / cg"
792
bffad322b0bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 791
diff changeset
   469
    "Modified: / 20.4.1998 / 15:40:00 / cg"
790
79bc027907ee checkin from browser
Claus Gittinger <cg@exept.de>
parents: 682
diff changeset
   470
!
79bc027907ee checkin from browser
Claus Gittinger <cg@exept.de>
parents: 682
diff changeset
   471
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   472
copyFiles
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   473
    |msg fileSpec filesToCopy numFiles nDone cmd|
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   474
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   475
     msg := (resources array:#('ST/X Installation' '' 'copying:' '' 'to:' '')) asStringCollection.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   476
1010
d744cc925443 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 793
diff changeset
   477
    installWhat == #full ifTrue:[
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   478
        msg at:4 put:('    all from CD' asText allBold).
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   479
        msg at:6 put:'    ' , (fullDir asText allBold).
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   480
        actionTextHolder value:nil.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   481
        actionTextHolder value:msg.
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   482
793
43a9a195b0f3 use tar instead of cp to copy full
Claus Gittinger <cg@exept.de>
parents: 792
diff changeset
   483
        cmd := '(cd ../.. ; tar cf - .) | (cd ' , fullDir , ' ; tar xvf -)'.
43a9a195b0f3 use tar instead of cp to copy full
Claus Gittinger <cg@exept.de>
parents: 792
diff changeset
   484
"/        "/
43a9a195b0f3 use tar instead of cp to copy full
Claus Gittinger <cg@exept.de>
parents: 792
diff changeset
   485
"/        "/ not all systems have cp -rv
43a9a195b0f3 use tar instead of cp to copy full
Claus Gittinger <cg@exept.de>
parents: 792
diff changeset
   486
"/        "/
43a9a195b0f3 use tar instead of cp to copy full
Claus Gittinger <cg@exept.de>
parents: 792
diff changeset
   487
"/        OperatingSystem getOSType = 'linux' ifTrue:[
43a9a195b0f3 use tar instead of cp to copy full
Claus Gittinger <cg@exept.de>
parents: 792
diff changeset
   488
"/            cmd := 'cp -rv ../../* ' , fullDir.
43a9a195b0f3 use tar instead of cp to copy full
Claus Gittinger <cg@exept.de>
parents: 792
diff changeset
   489
"/        ].
43a9a195b0f3 use tar instead of cp to copy full
Claus Gittinger <cg@exept.de>
parents: 792
diff changeset
   490
"/      commandTraceView showCR:cmd , ' ...'.
43a9a195b0f3 use tar instead of cp to copy full
Claus Gittinger <cg@exept.de>
parents: 792
diff changeset
   491
        commandTraceView showCR:'copying ...'.
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   492
        commandTraceView endEntry.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   493
        cmd := cmd , ' 2>&1' .
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   494
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   495
        self executeCommandAndShowOutput:cmd.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   496
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   497
        ^ true
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   498
    ].
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   499
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   500
    fileSpec := self specOfFilesToCopy.
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   501
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   502
    filesToCopy := OrderedCollection new.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   503
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   504
    fileSpec do:[:entry |
8
88df33224360 oops - did not copy file*
Claus Gittinger <cg@exept.de>
parents: 7
diff changeset
   505
        |fileNames dest subDir required destDir|
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   506
8
88df33224360 oops - did not copy file*
Claus Gittinger <cg@exept.de>
parents: 7
diff changeset
   507
        fileNames := entry at:1.
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   508
        dest := entry at:2.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   509
        subDir := entry at:3.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   510
        required := entry at:4.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   511
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   512
        dest == #bin ifTrue:[
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   513
            destDir := stxBinDir
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   514
        ] ifFalse:[
24
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   515
            dest == #libBin ifTrue:[
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   516
                destDir := stxLibBinDir
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   517
            ] ifFalse:[
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   518
                destDir := stxLibDir
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   519
            ]
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   520
        ].
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   521
        
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   522
        destDir := destDir asFilename.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   523
        subDir notNil ifTrue:[
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   524
            destDir := destDir construct:subDir
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   525
        ].
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   526
8
88df33224360 oops - did not copy file*
Claus Gittinger <cg@exept.de>
parents: 7
diff changeset
   527
        filesToCopy add:(fileNames -> destDir pathName)
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   528
    ].
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   529
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   530
    numFiles := filesToCopy size.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   531
    nDone := 0.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   532
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   533
    filesToCopy do:[:entry |
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   534
        |fileName destDir cmd|
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   535
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   536
        fileName := entry key.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   537
        destDir := entry value.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   538
8
88df33224360 oops - did not copy file*
Claus Gittinger <cg@exept.de>
parents: 7
diff changeset
   539
        ((fileName includes:$*)
88df33224360 oops - did not copy file*
Claus Gittinger <cg@exept.de>
parents: 7
diff changeset
   540
        or:[('../../' , fileName) asFilename exists])ifTrue:[
4
8b68fdf7c870 better looking; show command output
Claus Gittinger <cg@exept.de>
parents: 3
diff changeset
   541
            actionPercentageHolder value:(nDone / numFiles * 100) rounded.
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   542
4
8b68fdf7c870 better looking; show command output
Claus Gittinger <cg@exept.de>
parents: 3
diff changeset
   543
            msg at:4 put:'    ' , (fileName asText allBold).
8b68fdf7c870 better looking; show command output
Claus Gittinger <cg@exept.de>
parents: 3
diff changeset
   544
            msg at:6 put:'    ' , (destDir asText allBold).
8b68fdf7c870 better looking; show command output
Claus Gittinger <cg@exept.de>
parents: 3
diff changeset
   545
            actionTextHolder value:nil.
8b68fdf7c870 better looking; show command output
Claus Gittinger <cg@exept.de>
parents: 3
diff changeset
   546
            actionTextHolder value:msg.
8b68fdf7c870 better looking; show command output
Claus Gittinger <cg@exept.de>
parents: 3
diff changeset
   547
73
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   548
            ((fileName includes:$*) not
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   549
            and:[('../../' , fileName) asFilename exists not]) ifTrue:[
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   550
                (self listOfOptionalPackages includes:fileName) ifFalse:[
117
45af2b7a5eca checkin from browser
Claus Gittinger <cg@exept.de>
parents: 73
diff changeset
   551
                    commandTraceView showCR:('cannot copy ' , fileName , ' - not included in distribution').
45af2b7a5eca checkin from browser
Claus Gittinger <cg@exept.de>
parents: 73
diff changeset
   552
                    commandTraceView endEntry.
73
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   553
                ]
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   554
            ] ifFalse:[
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   555
                cmd := 'cp -r ../../' , fileName , ' ' , destDir.
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   556
                commandTraceView showCR:cmd , ' ...'.
117
45af2b7a5eca checkin from browser
Claus Gittinger <cg@exept.de>
parents: 73
diff changeset
   557
                commandTraceView endEntry.
73
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   558
                cmd := cmd , ' 2>&1' .
1
7ebb34d8f3df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 0
diff changeset
   559
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   560
                self executeCommandAndShowOutput:cmd
73
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   561
            ]
1
7ebb34d8f3df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 0
diff changeset
   562
        ].
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   563
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   564
        nDone := nDone + 1
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   565
    ].
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   566
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   567
    ^ true
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   568
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   569
    "
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   570
     STXInstaller open
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   571
    "
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   572
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   573
    "Created: / 17.7.1996 / 15:16:20 / cg"
793
43a9a195b0f3 use tar instead of cp to copy full
Claus Gittinger <cg@exept.de>
parents: 792
diff changeset
   574
    "Modified: / 20.4.1998 / 17:41:45 / cg"
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   575
!
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   576
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   577
createDirectories
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   578
    |msg dirsToMake numDirs nDone|
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   579
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   580
    msg := (resources array:#('ST/X Installation' '' 'creating directory:' '' '' '')) asStringCollection.
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   581
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   582
    dirsToMake := self directoriesToMake.
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   583
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   584
    numDirs := dirsToMake size.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   585
    nDone := 0.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   586
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   587
    dirsToMake do:[:dirName |
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   588
        |d errMsg stop box|
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   589
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   590
        actionPercentageHolder value:(nDone / numDirs * 100) rounded.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   591
4
8b68fdf7c870 better looking; show command output
Claus Gittinger <cg@exept.de>
parents: 3
diff changeset
   592
        msg at:4 put:'    ' , (dirName asText allBold).
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   593
        actionTextHolder value:nil.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   594
        actionTextHolder value:msg.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   595
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   596
        d := dirName asFilename.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   597
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   598
        commandTraceView showCR:(resources string:'creating %1 ...' with:d pathName).
117
45af2b7a5eca checkin from browser
Claus Gittinger <cg@exept.de>
parents: 73
diff changeset
   599
        commandTraceView endEntry.
4
8b68fdf7c870 better looking; show command output
Claus Gittinger <cg@exept.de>
parents: 3
diff changeset
   600
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   601
        d exists ifFalse:[
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   602
            OperatingSystem recursiveCreateDirectory:d pathName
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   603
        ].
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   604
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   605
        d exists ifFalse:[
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   606
            errMsg := resources string:'failed to create directory: %1' with: dirName.
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   607
            stop := true
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   608
        ] ifTrue:[
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   609
            d isDirectory ifFalse:[
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   610
                errMsg := resources string:'not a directory: %1' with:dirName.
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   611
                stop := true
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   612
            ] ifTrue:[
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   613
                (d isReadable
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   614
                and:[d isWritable]) ifFalse:[
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   615
                    errMsg := resources string:'no read/write access to directory: %1' with:dirName.
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   616
                    stop := false
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   617
                ] ifTrue:[
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   618
                    errMsg := nil
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   619
                ]
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   620
            ]
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   621
        ].
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   622
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   623
        errMsg notNil ifTrue:[
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   624
            box := WarningBox new.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   625
            box title:errMsg.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   626
            box showAtPointerNotCovering:(WindowGroup activeGroup topViews first).
1
7ebb34d8f3df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 0
diff changeset
   627
            stop ifTrue:[^ false].
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   628
        ].
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   629
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   630
        Delay waitForSeconds:0.25.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   631
        nDone := nDone + 1.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   632
    ].
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   633
    ^ true
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   634
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   635
    "Created: 17.7.1996 / 15:24:19 / cg"
117
45af2b7a5eca checkin from browser
Claus Gittinger <cg@exept.de>
parents: 73
diff changeset
   636
    "Modified: 22.5.1997 / 15:06:41 / cg"
19
504c3ad987d1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 18
diff changeset
   637
!
504c3ad987d1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 18
diff changeset
   638
504c3ad987d1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 18
diff changeset
   639
createSymbolicLinks
504c3ad987d1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 18
diff changeset
   640
    |msg dirsToMake numDirs nDone|
504c3ad987d1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 18
diff changeset
   641
504c3ad987d1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 18
diff changeset
   642
    msg := (resources array:#('ST/X Installation' '' 'creating symbolic links' '' '' '')) asStringCollection.
504c3ad987d1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 18
diff changeset
   643
28
b3a8378dd626 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 27
diff changeset
   644
    commandTraceView showCR:(resources string:'setting up symbolic links in doc/online ...').
117
45af2b7a5eca checkin from browser
Claus Gittinger <cg@exept.de>
parents: 73
diff changeset
   645
    commandTraceView endEntry.
1010
d744cc925443 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 793
diff changeset
   646
    installWhat == #full ifTrue:[
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   647
        OperatingSystem executeCommand:('(cd ' , fullDir , '/doc/online ; make links)').
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   648
    ] ifFalse:[
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   649
        OperatingSystem executeCommand:('(cd ' , stxLibDir , '/doc/online ; make links)').
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   650
    ].
19
504c3ad987d1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 18
diff changeset
   651
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   652
    "Created: / 17.7.1996 / 15:24:19 / cg"
792
bffad322b0bb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 791
diff changeset
   653
    "Modified: / 20.4.1998 / 15:40:11 / cg"
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   654
!
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   655
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   656
executeCommandAndShowOutput:cmd
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   657
    |doneSemaphore line p|
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   658
1119
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   659
    OperatingSystem isMSWINDOWSlike ifTrue:[
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   660
        ^ self
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   661
    ].
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   662
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   663
    doneSemaphore := Semaphore new.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   664
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   665
    copyProcess := [   
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   666
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   667
        p := PipeStream readingFrom:cmd.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   668
        p isNil ifTrue:[
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   669
            self warn:('command error. Could not execute:\\' , cmd) withCRs.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   670
        ] ifFalse:[
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   671
            [
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   672
                [p atEnd] whileFalse:[
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   673
                    (p readWaitWithTimeout:0.1) ifFalse:[
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   674
                        line := p nextLine.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   675
                        (line notNil and:[line notEmpty]) ifTrue:[
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   676
                            commandTraceView showCR:(('  ' , line) asText emphasizeAllWith:(#color->Color red)).
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   677
                            commandTraceView endEntry.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   678
                        ]
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   679
                    ]
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   680
                ].
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   681
                p close.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   682
            ] valueOnUnwindDo:[
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   683
                p shutDown
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   684
            ]
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   685
        ].
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   686
        doneSemaphore signal.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   687
        copyProcess := nil.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   688
    ] forkAt:4.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   689
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   690
    doneSemaphore wait.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   691
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   692
    "Created: / 25.2.1998 / 17:46:06 / cg"
1119
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   693
    "Modified: / 30.4.1999 / 18:00:43 / cg"
73
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   694
!
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   695
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   696
outputInitialMessage
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   697
    #(
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   698
    'Notice:'
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   699
    ''
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   700
    'During the installation, you may get error messages'
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   701
    'complaining that some files where not found'
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   702
    'and could therefore not be copied.'
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   703
    ) do:[:line |
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   704
        commandTraceView showCR:((resources string:line) asText emphasizeAllWith:(#color->Color blue)).
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   705
        commandTraceView endEntry. 
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   706
    ].
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   707
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   708
    Delay waitForSeconds:2.
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   709
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   710
    #(
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   711
    ''
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   712
    'This is normal behavior; since the CD may contain'
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   713
    'broken symbolic links to non-existing packages'
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   714
    'which are either not contained on your ordered'
276
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   715
    'package (i.e. non-commercial) or are not required'
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   716
    'for your architecture (and therefore not contained'
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   717
    'on the CD).'
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   718
    ''
73
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   719
    ) do:[:line |
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   720
        commandTraceView showCR:((resources string:line) asText emphasizeAllWith:(#color->Color blue)).
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   721
        commandTraceView endEntry.
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   722
    ].
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   723
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   724
    Delay waitForSeconds:2.
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   725
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   726
    #(
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
    'Please excuse this inconvenience.'
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   729
    ''
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   730
    ) do:[:line |
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   731
        commandTraceView showCR:((resources string:line) asText emphasizeAllWith:(#color->Color blue)).
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   732
        commandTraceView endEntry.
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   733
    ].
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
    Delay waitForSeconds:2.
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   736
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   737
    "Created: 2.3.1997 / 12:49:52 / cg"
276
c8b7fd1fcec5 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 237
diff changeset
   738
    "Modified: 8.8.1997 / 17:47:06 / cg"
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   739
! !
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   740
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   741
!STXInstaller methodsFor:'startup'!
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   742
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   743
askAndInstall
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   744
    "/ check, if we are in the projects/smalltalk directory
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   745
1119
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   746
    |answer here|
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   747
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   748
    resources := ResourcePack for:self class.
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   749
1119
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   750
    ((here := Filename currentDirectory pathName) endsWith:'projects/smalltalk') ifFalse:[
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   751
        (here endsWith:'stx\binbc') ifFalse:[
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   752
            self warn:(resources string:'must be in the ''projects/smalltalk'' directory').
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   753
            ^ self
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   754
        ]
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   755
    ].
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   756
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   757
    answer := self askForFullInstallation.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   758
    answer ifFalse:[^ self].
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   759
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   760
    [self askForDestination] whileTrue:[
73
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   761
        self checkForExistingInstallationAndConfirm ifTrue:[
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   762
            self preInstall.
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   763
            self doInstall ifTrue:[
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   764
                self postInstall.
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   765
                ^ self
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   766
            ].
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   767
            (self confirm:(resources string:'installation failed or aborted - retry ?'))
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   768
            ifFalse:[
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   769
                ^ self
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   770
            ]
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   771
        ]
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   772
    ].
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   773
1119
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   774
    "Modified: / 30.4.1999 / 11:53:35 / cg"
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   775
!
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   776
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   777
askForDestination
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   778
    "open a dialog to enter destination directories"
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   779
1010
d744cc925443 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 793
diff changeset
   780
    installWhat == #full ifTrue:[
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   781
        ^ self askForDestinationForFullInstallation
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   782
    ] ifFalse:[
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   783
        ^ self askForDestinationForPartialInstallation
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   784
    ]
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   785
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   786
    "
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   787
     STXInstaller open
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   788
    "
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   789
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   790
    "Modified: / 25.2.1998 / 17:12:45 / cg"
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   791
!
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   792
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   793
askForDestinationForFullInstallation
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   794
    "open a dialog to enter destination directories"
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   795
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   796
    |d cm l green dark img
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   797
     fullDirHolder|
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   798
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   799
    LastFullDir isNil ifTrue:[
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   800
        LastFullDir := (Filename homeDirectory 
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   801
                            construct:'stx')
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   802
                            constructString:'develop'
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   803
    ].
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   804
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   805
    fullDirHolder := LastFullDir asValue.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   806
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   807
    Screen current hasColors ifTrue:[
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   808
        green := (Color red:0 green:80 blue:20) "darkened".
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   809
        dark := Color grey:10.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   810
    ] ifFalse:[
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   811
        green := Color white.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   812
        dark := Color black.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   813
    ].
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   814
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   815
    d := DialogBox new.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   816
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   817
    d label:(resources string:'ST/X Full Installation').
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   818
    img := Image fromFile:'SmalltalkX.xbm'.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   819
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   820
    l := d addTextLabel:img.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   821
    l adjust:#left; foregroundColor:green backgroundColor:dark.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   822
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   823
    l := d addTextLabel:(resources string:'Smalltalk/X CD installation (full).').
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   824
    l adjust:#left; backgroundColor:dark; foregroundColor:Color white.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   825
    d addVerticalSpace.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   826
    d addVerticalSpace.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   827
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   828
    d addHorizontalLine.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   829
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   830
    l := d addTextLabel:(resources string:'ST/X development directory:').
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   831
    l adjust:#left; backgroundColor:dark; foregroundColor:Color white.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   832
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   833
    cm := ComboBoxView on:fullDirHolder.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   834
    cm list:self defaultFullDirs.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   835
    d 
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   836
        addLabelledField:cm 
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   837
        label:(resources string:'stx develop')
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   838
        adjust:#left 
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   839
        tabable:true 
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   840
        from:0.0 to:1.0 separateAtX:0.25
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   841
        nameAs:'fullBox'.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   842
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   843
    (d componentAt:'fullBox.label') backgroundColor:dark; foregroundColor:Color white.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   844
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   845
    d addVerticalSpace.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   846
    d addHorizontalLine.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   847
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   848
    d addHelpButtonFor:'STXInstaller/installHelp.html';
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   849
      addAbortButton; 
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   850
      addOkButtonLabelled:(resources string:'install').
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   851
    d extent:500@400.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   852
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   853
    d allViewBackground:dark.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   854
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   855
    d openAtCenter.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   856
    d accepted ifTrue:[
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   857
        fullDir := LastFullDir := fullDirHolder value.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   858
        d destroy.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   859
        ^ true
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   860
    ].
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   861
    d destroy.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   862
    ^ false
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   863
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   864
    "
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   865
     STXInstaller open
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   866
    "
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   867
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   868
    "Created: / 25.2.1998 / 17:11:37 / cg"
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   869
    "Modified: / 25.2.1998 / 17:29:07 / cg"
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   870
!
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   871
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   872
askForDestinationForPartialInstallation
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   873
    "open a dialog to enter destination directories"
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   874
2
936a4407697b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1
diff changeset
   875
    |d cm l green dark img
24
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   876
     stxLibDirHolder stxLibBinDirHolder stxBinDirHolder
5
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   877
     installDocHolder installSourceHolder installSTCHolder installGoodiesHolder
73
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   878
     binMegabytes libMegabytes docMegabytes stcMegabytes srcMegabytes
1117
657dde1e749d new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents: 1010
diff changeset
   879
     goodyMegabytes
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   880
    |
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   881
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   882
    binMegabytes := 12.
73
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
   883
    libMegabytes := 30.
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   884
    docMegabytes := 15.
1117
657dde1e749d new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents: 1010
diff changeset
   885
    stcMegabytes := 2.
657dde1e749d new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents: 1010
diff changeset
   886
    srcMegabytes := 25.
657dde1e749d new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents: 1010
diff changeset
   887
    goodyMegabytes := 2.
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   888
1119
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   889
    OperatingSystem isMSWINDOWSlike ifTrue:[
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   890
        LastLibDir isNil ifTrue:[
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   891
            LastLibDir := '\Programme\SmalltalkX\' , self smalltalkRelease , '\lib'
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   892
        ].
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   893
        LastLibBinDir isNil ifTrue:[
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   894
            LastLibBinDir := '\Programme\SmalltalkX\' , self smalltalkRelease , '\lib'
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   895
        ].
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   896
        LastBinDir isNil ifTrue:[
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   897
            LastBinDir := '\Programme\SmalltalkX\' , self smalltalkRelease , '\lib'
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   898
        ].
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   899
    ] ifFalse:[
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   900
        LastLibDir isNil ifTrue:[
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   901
            LastLibDir := '/opt/smalltalk/' , self smalltalkRelease , '/lib'
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   902
        ].
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   903
        LastLibBinDir isNil ifTrue:[
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   904
            LastLibBinDir := '/opt/smalltalk/' , self smalltalkRelease , '/lib'
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   905
        ].
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   906
        LastBinDir isNil ifTrue:[
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   907
            LastBinDir := '/opt/smalltalk/' , self smalltalkRelease , '/bin'
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
   908
        ].
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   909
    ].
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   910
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   911
    stxLibDirHolder := LastLibDir asValue.
24
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   912
    stxLibBinDirHolder := LastLibBinDir asValue.
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   913
    stxBinDirHolder := LastBinDir asValue.
24
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   914
5
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   915
    installDocHolder := true asValue.
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   916
    installSourceHolder := true asValue.
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   917
    installSTCHolder := true asValue.
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   918
    installGoodiesHolder := true asValue.
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   919
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   920
    Screen current hasColors ifTrue:[
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   921
        green := (Color red:0 green:80 blue:20) "darkened".
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   922
        dark := Color grey:10.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   923
    ] ifFalse:[
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   924
        green := Color white.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   925
        dark := Color black.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   926
    ].
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   927
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   928
    d := DialogBox new.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   929
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   930
    d label:(resources string:'ST/X Partial Installation').
2
936a4407697b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1
diff changeset
   931
    img := Image fromFile:'SmalltalkX.xbm'.
936a4407697b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1
diff changeset
   932
936a4407697b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1
diff changeset
   933
    l := d addTextLabel:img.
936a4407697b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1
diff changeset
   934
    l adjust:#left; foregroundColor:green backgroundColor:dark.
936a4407697b checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1
diff changeset
   935
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   936
    l := d addTextLabel:(resources string:'Smalltalk/X CD installation (partial).').
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   937
    l adjust:#left; backgroundColor:dark; foregroundColor:Color white.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   938
    d addVerticalSpace.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   939
    d addVerticalSpace.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   940
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   941
    d addHorizontalLine.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   942
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   943
    l := d addTextLabel:(resources string:'Destination directories:').
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   944
    l adjust:#left; backgroundColor:dark; foregroundColor:Color white.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   945
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   946
    l := d addTextLabel:(resources string:'(the defaults below are recommended)').
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   947
    l adjust:#right; backgroundColor:dark; foregroundColor:Color white.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
   948
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   949
    cm := ComboBoxView on:stxBinDirHolder.
1
7ebb34d8f3df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 0
diff changeset
   950
    cm list:self defaultBinDirs.
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   951
    d 
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   952
        addLabelledField:cm 
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   953
        label:(resources string:'binaries')
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   954
        adjust:#left 
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   955
        tabable:true 
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   956
        from:0.0 to:1.0 separateAtX:0.25
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   957
        nameAs:'binaryBox'.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   958
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   959
    (d componentAt:'binaryBox.label') backgroundColor:dark; foregroundColor:Color white.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   960
24
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   961
    cm := ComboBoxView on:stxLibBinDirHolder.
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   962
    cm list:self defaultLibBinDirs.
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   963
    d 
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   964
        addLabelledField:cm 
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   965
        label:(resources string:'libraries') 
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   966
        adjust:#left 
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   967
        tabable:true 
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   968
        from:0.0 to:1.0 separateAtX:0.25
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   969
        nameAs:'libraryBinBox'.
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   970
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   971
    (d componentAt:'libraryBinBox.label') backgroundColor:dark; foregroundColor:Color white.
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
   972
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   973
    cm := ComboBoxView on:stxLibDirHolder.
1
7ebb34d8f3df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 0
diff changeset
   974
    cm list:self defaultLibDirs.
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   975
    d 
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   976
        addLabelledField:cm 
117
45af2b7a5eca checkin from browser
Claus Gittinger <cg@exept.de>
parents: 73
diff changeset
   977
        label:(resources string:'other files') 
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   978
        adjust:#left 
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   979
        tabable:true 
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   980
        from:0.0 to:1.0 separateAtX:0.25
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   981
        nameAs:'libraryBox'.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   982
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   983
    (d componentAt:'libraryBox.label') backgroundColor:dark; foregroundColor:Color white.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   984
5
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   985
    d addVerticalSpace.
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   986
    d addHorizontalLine.
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   987
    d addVerticalSpace.
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   988
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   989
    (d addTextLabel:(resources string:'required:'))
5
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   990
        adjust:#left; foregroundColor:Color white backgroundColor:dark.
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   991
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   992
    d leftIndent:35.
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   993
    (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
   994
        adjust:#left; foregroundColor:Color white backgroundColor:dark.
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
   995
    (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
   996
        adjust:#left; foregroundColor:Color white backgroundColor:dark.
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   997
    d leftIndent:0.
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   998
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
   999
    d addVerticalSpace.
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1000
    d addHorizontalLine.
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1001
    d addVerticalSpace.
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1002
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
  1003
    (d addTextLabel:(resources string:'optional:'))
5
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1004
        adjust:#left; foregroundColor:Color white backgroundColor:dark.
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1005
73
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
  1006
    (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
  1007
        labelView foregroundColor:Color white backgroundColor:dark.
73
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
  1008
    (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
  1009
        labelView foregroundColor:Color white backgroundColor:dark.
c9574685e157 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 9
diff changeset
  1010
c9574685e157 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 9
diff changeset
  1011
    d addVerticalSpace.
c9574685e157 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 9
diff changeset
  1012
    d addHorizontalLine.
c9574685e157 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 9
diff changeset
  1013
    d addVerticalSpace.
c9574685e157 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 9
diff changeset
  1014
11
9bc23682b68c national strings
Claus Gittinger <cg@exept.de>
parents: 10
diff changeset
  1015
    (d addTextLabel:(resources string:'optional (but highly recommended):'))
10
c9574685e157 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 9
diff changeset
  1016
        adjust:#left; foregroundColor:Color white backgroundColor:dark.
c9574685e157 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 9
diff changeset
  1017
73
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
  1018
    (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
  1019
        labelView foregroundColor:Color white backgroundColor:dark.
1117
657dde1e749d new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents: 1010
diff changeset
  1020
    (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
  1021
        labelView foregroundColor:Color white backgroundColor:dark.
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1022
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1023
    d addVerticalSpace.
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1024
    d addHorizontalLine.
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1025
24
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
  1026
    d addHelpButtonFor:'STXInstaller/installHelp.html';
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
  1027
      addAbortButton; 
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
  1028
      addOkButtonLabelled:(resources string:'install').
73
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
  1029
    d extent:500@400.
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1030
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1031
    d allViewBackground:dark.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1032
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1033
    d openAtCenter.
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1034
    d accepted ifTrue:[
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1035
        stxLibDir := LastLibDir := stxLibDirHolder value.
24
2b61cca30b01 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 23
diff changeset
  1036
        stxLibBinDir := LastLibBinDir := stxLibBinDirHolder value.
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1037
        stxBinDir := LastBinDir := stxBinDirHolder value.
5
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1038
        installDocFiles := installDocHolder value.
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1039
        installSourceFiles := installSourceHolder value.
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1040
        installSTCFiles := installSTCHolder value.
16cff74f42b0 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4
diff changeset
  1041
        installGoodyFiles := installGoodiesHolder value.
1
7ebb34d8f3df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 0
diff changeset
  1042
        d destroy.
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1043
        ^ true
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1044
    ].
1
7ebb34d8f3df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 0
diff changeset
  1045
    d destroy.
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1046
    ^ false
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1047
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1048
    "
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1049
     STXInstaller open
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1050
    "
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1051
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1052
    "Created: / 25.2.1998 / 17:11:26 / cg"
1119
556bb6c9e36c first changes for win32
Claus Gittinger <cg@exept.de>
parents: 1118
diff changeset
  1053
    "Modified: / 30.4.1999 / 11:58:33 / cg"
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1054
!
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1055
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1056
askForFullInstallation
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1057
    "open a dialog to enter destination directories"
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1058
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1059
    |d cm l green dark img|
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1060
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1061
    Screen current hasColors ifTrue:[
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1062
        green := (Color red:0 green:80 blue:20) "darkened".
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1063
        dark := Color grey:10.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1064
    ] ifFalse:[
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1065
        green := Color white.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1066
        dark := Color black.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1067
    ].
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1068
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1069
    d := DialogBox new.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1070
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1071
    d label:(resources string:'ST/X CD Installation').
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1072
    img := Image fromFile:'SmalltalkX.xbm'.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1073
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1074
    l := d addTextLabel:img.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1075
    l adjust:#left; foregroundColor:green backgroundColor:dark.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1076
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1077
    l := d addTextLabel:(resources string:'Smalltalk/X CD installation.').
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1078
    l adjust:#left; backgroundColor:dark; foregroundColor:Color white.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1079
    d addVerticalSpace.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1080
    d addVerticalSpace.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1081
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1082
    d addHorizontalLine.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1083
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1084
    l := d addTextLabel:(resources string:
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1085
'You can either perform a ' , 'full' asText allBold , ' installation, or a ' , 'partial' asText allBold ,' installation.').
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1086
    l adjust:#left; backgroundColor:dark; foregroundColor:Color white.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1087
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1088
    d addVerticalSpace.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1089
    d addHorizontalLine.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1090
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1091
    d leftIndent:20.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1092
    l := d addTextLabel:(resources string:
1117
657dde1e749d new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents: 1010
diff changeset
  1093
'full:' asText allBold , '
657dde1e749d new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents: 1010
diff changeset
  1094
The full installation is required if you want to build your own
657dde1e749d new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents: 1010
diff changeset
  1095
customized smalltalk executable. It allows you to create and include 
657dde1e749d new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents: 1010
diff changeset
  1096
additional precompiled binary classes or classLibraries. 
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1097
This is also required if you want to link your own standalone executables.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1098
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1099
It consists of a directory hierachy, including makefiles for a customizeable 
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1100
rebuild of the whole smalltalk system.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1101
(Actually, it simply copies the whole CD contents onto your disk).
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1102
This requires roughly 120-200Mb of hard disk space.').
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1103
    l adjust:#left; backgroundColor:dark; foregroundColor:Color white.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1104
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1105
    d addVerticalSpace.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1106
    d addHorizontalLine.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1107
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1108
    l := d addTextLabel:(resources string:
1117
657dde1e749d new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents: 1010
diff changeset
  1109
'partial:' asText allBold , '
657dde1e749d new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents: 1010
diff changeset
  1110
The partial (runTime) installation requires less disk space and only copies the
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1111
smalltalk executable, shared libraries and support files onto your hard disk.
1117
657dde1e749d new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents: 1010
diff changeset
  1112
This setup allows normal smalltalk development and is also useful as a runtime
657dde1e749d new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents: 1010
diff changeset
  1113
environment for smalltalk applications.
657dde1e749d new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents: 1010
diff changeset
  1114
However, it does not support recreation of a new smalltal executable and/or
657dde1e749d new default destination: /opt/smalltalk/<RELEASE>
Claus Gittinger <cg@exept.de>
parents: 1010
diff changeset
  1115
shared binary classLibraries.
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1116
This requires roughly 70-90Mb of hard disk space.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1117
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1118
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1119
 ').
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1120
    l adjust:#left; backgroundColor:dark; foregroundColor:Color white.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1121
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1122
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1123
    d leftIndent:0.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1124
    d addVerticalSpace.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1125
    d addHorizontalLine.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1126
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1127
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1128
    d addHelpButtonFor:'STXInstaller/installHelp.html';
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1129
      addAbortButton; 
1010
d744cc925443 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 793
diff changeset
  1130
      addOkButton:(Button label:(resources string:'full') action:[installWhat := #full]);
d744cc925443 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 793
diff changeset
  1131
      addOkButtonLabelled:(resources string:'partial').
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1132
    d extent:500@400.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1133
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1134
    d allViewBackground:dark.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1135
1010
d744cc925443 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 793
diff changeset
  1136
    installWhat := #partial.
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1137
    d openAtCenter.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1138
    d accepted ifTrue:[
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1139
        d destroy.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1140
        ^ true
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1141
    ].
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1142
    d destroy.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1143
    ^ false
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1144
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1145
    "
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1146
     STXInstaller open
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1147
    "
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1148
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1149
    "Created: / 25.2.1998 / 16:50:16 / cg"
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1150
    "Modified: / 25.2.1998 / 19:42:31 / cg"
0
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1151
!
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1152
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1153
checkForExistingInstallationAndConfirm
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1154
    "look if there is another installation and confirm
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1155
     reinstalling; return true if ok, false if not"
ce9f4417b660 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1156
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1157
    |whichDir canOverWrite whatToDo box|
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1158
1010
d744cc925443 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 793
diff changeset
  1159
    installWhat == #full ifTrue:[
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1160
        whichDir := fullDir.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1161
        canOverWrite := false.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1162
    ] ifFalse:[
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1163
        whichDir := stxLibDir.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1164
        canOverWrite := true.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1165
    ].
1
7ebb34d8f3df checkin from browser
Claus Gittinger <cg@exept.de>
parents: 0
diff changeset
  1166
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1167
    whichDir asFilename exists ifTrue:[
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1168
            whatToDo := Dialog 
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1169
                            choose:(resources 
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1170
                                        string:'detected existing ST/X installation in %1' 
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1171
                                          with:whichDir asText allBold)
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1172
                            label:(resources string:'Attention')
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1173
                            labels:(resources array:(canOverWrite 
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1174
                                                    ifFalse:[#('remove first' 'cancel')] 
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1175
                                                    ifTrue:[#('remove first' 'overwrite' 'cancel')] )) 
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1176
                            values:(canOverWrite ifFalse:[#(remove nil)] ifTrue:[#(remove over nil)])
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1177
                            default:nil.     
73
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
  1178
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1179
            whatToDo isNil ifTrue:[^false].
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1180
            whatToDo == #remove ifTrue:[
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1181
                ((whichDir findString:'stx') == 0
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1182
                and:[(whichDir findString:'smalltalk') == 0]) ifTrue:[
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1183
                    "/ confirm again
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1184
                    (self confirm:(resources 
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1185
                                    string:'are you certain that the directory to remove
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1186
(' , whichDir , ') is really a smalltalk directory ?
23
42997b231783 double confirm removal of directory, if its name
Claus Gittinger <cg@exept.de>
parents: 22
diff changeset
  1187
73
2087134eea96 better messages;
Claus Gittinger <cg@exept.de>
parents: 31
diff changeset
  1188
Remove it now ?')) ifFalse:[ 
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1189
                        ^ false
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1190
                    ]
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1191
                ].
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1192
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1193
                [
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1194
                    box := DialogBox new label:'please wait'.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1195
                    box addTextLabel:'removing ' , whichDir , ' ...'.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1196
                    box showAtPointer.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1197
                ] forkAt:(Processor activePriority+1).
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1198
                box waitUntilVisible.
23
42997b231783 double confirm removal of directory, if its name
Claus Gittinger <cg@exept.de>
parents: 22
diff changeset
  1199
678
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1200
                (OperatingSystem recursiveRemoveDirectory:whichDir)
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1201
                ifFalse:[
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1202
                    self warn:(resources string:'mhmh - could not remove old installation.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1203
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1204
Please remove it manually (using root privileges if required) 
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1205
and try again.').
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1206
                    box destroy.
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1207
                    ^ false
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1208
                ].
4dd439ebf162 added full installation
Claus Gittinger <cg@exept.de>
parents: 277
diff changeset
  1209