ProjectBuilder.st
author Claus Gittinger <cg@exept.de>
Sat, 10 Oct 2009 17:57:31 +0200
changeset 2600 bfde5434dcdd
parent 2599 e8624fcf3c1b
child 2611 706991dee298
permissions -rw-r--r--
added:5 methods changed: #build #generateSourceFilesByFilingOut
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2596
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"{ Package: 'stx:libtool2' }"
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
Object subclass:#ProjectBuilder
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
	instanceVariableNames:'package projectDefinitionClass sourceCodeManager buildDirectory
2598
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
     5
		myWorkingDirectory mySTXTopDirectory myTopDirectory'
2596
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
	classVariableNames:'PreviousBuildDirectory'
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
	poolDictionaries:''
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
	category:'System-Support-Projects'
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
!
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
!ProjectBuilder class methodsFor:'examples'!
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
example1
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
    Smalltalk loadPackage:'stx:projects/helloWorldApp' asAutoloaded:true.
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
    self new
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
        package:'stx:projects/helloWorldApp';
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
        build
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
! !
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
!ProjectBuilder methodsFor:'accessing'!
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
package:aPackageIDOrSymbol
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
    package := aPackageIDOrSymbol asPackageId.
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
!
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
projectDefinitionClass:something
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
    projectDefinitionClass := something.
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
! !
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
!ProjectBuilder methodsFor:'building'!
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
build
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
    "/ intermediate - this will move into a commonly used utility class
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
    "/ (where all the project code support will be collected).
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
    |module directory|
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
    projectDefinitionClass := ProjectDefinition definitionClassForPackage:package.
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
    projectDefinitionClass isNil ifTrue:[
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
        self error:('Missing ProjectDefinition class for "',package asString,'"')
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
    ].
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
    "/ ensure that everything is loaded...
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
    projectDefinitionClass loadAsAutoloaded:false.
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
    projectDefinitionClass loadExtensions.
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
    projectDefinitionClass loadAllClassesAsAutoloaded:false.
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
    module := package module.
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
    directory := package directory.
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
    buildDirectory := PreviousBuildDirectory ifNil:[ UserPreferences current buildDirectory ].
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
    buildDirectory isNil ifTrue:[
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
        buildDirectory := Filename tempDirectory construct:'stx_build'.
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
    ].
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
    buildDirectory := buildDirectory asFilename.
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
    "/ self validateBuildDirectoryIsPresent.
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
    PreviousBuildDirectory := buildDirectory.
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
    "/ UserPreferences current localBuild:true
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
    UserPreferences current localBuild ifFalse:[
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
        SourceCodeManager notNil ifTrue:[
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
            sourceCodeManager := SourceCodeManagerUtilities sourceCodeManagerFor:projectDefinitionClass.
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
        ]
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
    ].
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
    sourceCodeManager := nil.
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
2598
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
    71
    myTopDirectory := 
2596
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
        Smalltalk packagePath 
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
            detect:[:aPath |
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
                (aPath asFilename / 'stx' / 'include') exists
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
                and: [ (aPath asFilename / 'stx' / 'rules') exists ]]
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
            ifNone:nil.       
2598
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
    77
    myTopDirectory isNil ifTrue:[
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
    78
        self error:('Cannot figure out my top directory (where stx/include and stx/rules are)')
2596
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
    ].
2598
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
    80
    myTopDirectory := myTopDirectory asFilename.
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
    81
    mySTXTopDirectory := myTopDirectory / 'stx'.
2596
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    83
    self setupBuildDirectory.
2599
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
    84
    self copySTCDirectoryForBuild.
2596
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    85
    self generateSourceFiles.
2600
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
    86
    self copyDLLsForLinkage.
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
    87
    self copySupportFilesForLinkage.
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
    88
    self copyStartupFilesFromSmalltalk.
2596
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    89
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    90
    OperatingSystem
2599
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
    91
        executeCommand:(ParserFlags makeCommand,' exe')
2596
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    92
        inputFrom:nil
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    93
        outputTo:Transcript
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
        errorTo:Transcript
2599
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
    95
        inDirectory:(buildDirectory / module / directory)
2596
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    96
        onError:[:status| self error:'make failed'].
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    97
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    98
    "Created: / 09-08-2006 / 18:37:19 / fm"
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
    "Modified: / 09-08-2006 / 19:55:50 / fm"
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
    "Modified: / 22-09-2006 / 17:37:11 / cg"
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
!
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
2600
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   103
copyDLLsForLinkage
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   104
    |targetBuildDir|
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   105
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   106
    targetBuildDir := buildDirectory / package module / package directory.
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   107
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   108
    (projectDefinitionClass allPreRequisites)
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   109
    do:[:eachPackageToFileout |
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   110
        |packageId packageDef packageModule packageDirectory packageTargetDir
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   111
         dllSource dllSourceDir libraryName dllRelativePath|
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   112
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   113
        packageId := eachPackageToFileout asPackageId.
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   114
        packageModule := packageId module.
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   115
        packageDirectory := packageId directory.
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   116
        packageTargetDir := (buildDirectory / packageModule / packageDirectory) recursiveMakeDirectory.
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   117
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   118
        packageDef := packageId projectDefinitionClass.
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   119
        libraryName := packageDef libraryName.
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   120
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   121
        "/ mhmh - take them from my tree or from the projects/smalltalk execution directory ??
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   122
        dllSourceDir := myTopDirectory / packageModule / packageDirectory.
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   123
        OperatingSystem isMSWINDOWSlike ifTrue:[
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   124
"/            dllRelativePath := 'objvc','/',(libraryName,'.dll').
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   125
"/            (dllSourceDir / dllRelativePath) exists 
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   126
            false ifFalse:[
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   127
                dllRelativePath := 'objbc','/',(libraryName,'.dll').
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   128
            ]
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   129
        ] ifFalse:[
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   130
            dllRelativePath := libraryName,'.so'.
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   131
        ].
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   132
        ((packageTargetDir / dllRelativePath) exists
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   133
        and:[ (dllSourceDir / dllRelativePath) fileSize = (packageTargetDir / dllRelativePath) fileSize
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   134
        and:[ (dllSourceDir / dllRelativePath) modificationTime < (packageTargetDir / dllRelativePath) modificationTime
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   135
        "/ and:[ (dllSourceDir / dllRelativePath) sameContentsAs:(packageTargetDir / dllRelativePath) ]
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   136
        ]]) ifFalse:[
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   137
            (packageTargetDir / dllRelativePath) directory recursiveMakeDirectory.
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   138
            (dllSourceDir / dllRelativePath) copyTo:(packageTargetDir / dllRelativePath).    
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   139
        ]
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   140
    ].
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   141
!
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   142
2596
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   143
copyDirectory:relativepath
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   144
    "/ need rules in stx
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   145
    ((Smalltalk projectDirectoryForPackage:'stx') asFilename construct:relativepath)
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   146
        recursiveCopyTo:(buildDirectory construct:'stx').
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   147
!
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   148
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   149
copyDirectoryForBuild:subdir
2598
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   150
    |targetDir targetFile|
2596
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   151
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   152
    targetDir := buildDirectory / 'stx' / subdir.
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   153
    targetDir exists ifFalse:[
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   154
        targetDir makeDirectory.
2598
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   155
    ].
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   156
    (mySTXTopDirectory / subdir) directoryContentsAsFilenamesDo:[:eachFile |
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   157
        eachFile isDirectory ifFalse:[
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   158
            targetFile := targetDir / eachFile baseName.
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   159
            (targetFile exists not
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   160
            or:[ targetFile modificationTime < eachFile modificationTime ]) ifTrue:[
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   161
                self activityNotification:'copying ',eachFile pathName,'...'.
2596
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   162
                eachFile copyTo:(targetDir construct:eachFile baseName)
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   163
            ]
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   164
        ].
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   165
    ].
2598
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   166
    self activityNotification:nil
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   167
!
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   168
2600
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   169
copyResourcesForPackage:aPackage
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   170
    |module directory|
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   171
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   172
    module := aPackage asPackageId module.
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   173
    directory := aPackage asPackageId directory.
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   174
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   175
    (myTopDirectory / module / directory / 'resources' ) exists ifTrue:[
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   176
        (myTopDirectory / module / directory / 'resources' )
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   177
            recursiveCopyTo:(buildDirectory / module / directory)
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   178
    ].
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   179
    (myTopDirectory / module / directory / 'styles' ) exists ifTrue:[
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   180
        (myTopDirectory / module / directory / 'styles' )
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   181
            recursiveCopyTo:(buildDirectory / module / directory)
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   182
    ].
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   183
!
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   184
2599
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
   185
copySTCDirectoryForBuild
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
   186
    |targetDir stc files|
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
   187
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
   188
    targetDir := buildDirectory / 'stx' / 'stc'.
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
   189
    targetDir exists ifFalse:[ targetDir makeDirectory ].
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
   190
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
   191
    stc := OperatingSystem isMSWINDOWSlike 
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
   192
                ifTrue:[ 'stc.exe' ]
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
   193
                ifFalse:[ 'stc' ].
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
   194
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
   195
    files := #( ) copyWith:stc.
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
   196
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
   197
    files do:[:eachFile |
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
   198
        |sourceFile targetFile|
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
   199
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
   200
        sourceFile := mySTXTopDirectory / 'stc' / eachFile.
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
   201
        targetFile := targetDir / eachFile.
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
   202
        (targetFile exists not
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
   203
        or:[ targetFile modificationTime < sourceFile modificationTime ]) ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
   204
            self activityNotification:'copying ',sourceFile pathName,'...'.
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
   205
            sourceFile copyTo:targetFile
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
   206
        ].
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
   207
    ].
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
   208
    self activityNotification:nil
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
   209
!
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
   210
2600
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   211
copyStartupFilesFromSmalltalk
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   212
    (buildDirectory / 'stx' / 'projects/smalltalk' ) exists ifFalse:[
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   213
        (buildDirectory / 'stx' / 'projects/smalltalk' ) recursiveMakeDirectory.
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   214
    ].
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   215
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   216
    #( 'keyboard.rc' 'keyboardMacros.rc' 'display.rc' 'd_win32.rc'
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   217
       'host.rc' 'h_win32.rc'  
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   218
    ) do:[:fn |
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   219
        (myTopDirectory / 'stx' / 'projects/smalltalk' / fn)
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   220
            copyTo: (buildDirectory / 'stx' / 'projects/smalltalk' / fn)
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   221
    ]
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   222
!
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   223
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   224
copySupportFilesForLinkage
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   225
    |files|
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   226
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   227
    OperatingSystem isMSWINDOWSlike ifTrue:[
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   228
        files := #( 
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   229
                    'support/win32/borland/cs3245.dll' 
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   230
                    'support/win32/X11.dll'
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   231
                    'support/win32/Xext.dll'
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   232
                    'librun/librun.dll'
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   233
                    'libbc/librun.lib'
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   234
                    'libbc/cs32i.lib'
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   235
                    'librun/genDate.exe'
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   236
                    'librun/main.c'
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   237
                 ).
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   238
    ] ifFalse:[
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   239
        files := #(
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   240
                    'librun/genDate'
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   241
                    'librun/main.c'
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   242
                    'librun/librun.so'
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   243
                )
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   244
    ].
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   245
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   246
    files do:[:dllRelativePath |
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   247
        ((buildDirectory / 'stx' / dllRelativePath) exists
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   248
        and:[ (mySTXTopDirectory / dllRelativePath) fileSize = (buildDirectory / 'stx' / dllRelativePath) fileSize
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   249
        and:[ (mySTXTopDirectory / dllRelativePath) modificationTime < (buildDirectory / 'stx' / dllRelativePath) modificationTime
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   250
        "/ and:[ (mySTXTopDirectory / dllRelativePath) sameContentsAs:(targetBuildDir / dllRelativePath) ]
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   251
        ]]) ifFalse:[
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   252
            (buildDirectory / 'stx' / dllRelativePath) directory recursiveMakeDirectory.
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   253
            (mySTXTopDirectory / dllRelativePath) copyTo:(buildDirectory / 'stx' / dllRelativePath).    
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   254
        ]
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   255
    ].
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   256
!
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   257
2598
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   258
createHeaderFileFor:aClass in:packageTargetDir
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   259
    |instVarList classInstVarList classVarList bindings superclassFilename
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   260
     template file newContents oldContents|
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   261
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   262
    instVarList := StringCollection new.
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   263
    aClass instVarNames do:[:v |
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   264
        instVarList add:('OBJ %1;' bindWith:v)
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   265
    ].
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   266
    classInstVarList := StringCollection new.
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   267
    aClass class instVarNames do:[:v |
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   268
(v includes:$_) ifTrue:[self halt].
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   269
        classInstVarList add:('OBJ %1;' bindWith:v)
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   270
    ].
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   271
    classVarList := StringCollection new.
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   272
    aClass classVarNames do:[:v |
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   273
        classVarList add:('extern OBJ %1_%2;' bindWith:aClass name with:v)
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   274
    ].
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   275
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   276
    bindings := Dictionary new.
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   277
    bindings at:'ClassName' put:aClass name. 
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   278
    aClass superclass isNil ifTrue:[
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   279
        bindings at:'SuperclassName' put:'-'. 
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   280
        bindings at:'SuperclassFileInclude' put:nil.
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   281
    ] ifFalse:[
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   282
        bindings at:'SuperclassName' put:aClass superclass name. 
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   283
        bindings at:'SuperclassFileName' put:(superclassFilename := Smalltalk fileNameForClass:aClass superclass).
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   284
        bindings at:'SuperclassFileInclude' put:('#include "%1.STH"' bindWith:superclassFilename).
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   285
    ].
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   286
    bindings at:'InstVarList' put:instVarList asString. 
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   287
    bindings at:'ClassVarList' put:classVarList asString. 
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   288
    bindings at:'ClassInstVarList' put:classInstVarList asString. 
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   289
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   290
    template := 
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   291
'/* This file was generated by ProjectBuilder. */
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   292
/* !!!!!!!! Do not change by hand !!!!!!!! */
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   293
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   294
/* Class: %(ClassName) */
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   295
/* Superclass: %(SuperclassName) */
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   296
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   297
%(SuperclassFileInclude)
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   298
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   299
/* INDIRECTGLOBALS */
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   300
#ifdef _HEADER_INST_
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   301
%(InstVarList)
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   302
#endif /* _HEADER_INST_ */
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   303
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   304
#ifdef _HEADER_CLASS_
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   305
%(ClassVarList)
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   306
#endif /* _HEADER_CLASS_ */
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   307
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   308
#ifdef _HEADER_CLASSINST_
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   309
%(ClassInstVarList)
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   310
#endif /* _HEADER_CLASSINST_ */
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   311
'.
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   312
    newContents := template bindWithArguments:bindings.
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   313
    file := packageTargetDir asFilename / ((Smalltalk fileNameForClass:aClass),'.STH').
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   314
    (file exists not
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   315
    or:[ (oldContents := file contents) ~= newContents ]) ifTrue:[
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   316
        file contents: newContents.
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   317
    ].
2596
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   318
!
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   319
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   320
generateSourceFiles
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   321
    sourceCodeManager notNil ifTrue:[
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   322
        "/ check out / generate files there
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   323
        self generateSourceFilesByCheckingOutUsing:sourceCodeManager
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   324
    ] ifFalse:[
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   325
        "/ local build
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   326
        "/ fileout the project
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   327
        self generateSourceFilesByFilingOut
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   328
    ]
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   329
!
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   330
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   331
generateSourceFilesByCheckingOutUsing:aSourceCodeManager
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   332
    "/ will no longer be needed/supported
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   333
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   334
    |repository stxRepository module directory|
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   335
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   336
self halt.
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   337
    "/ check out / generate files there
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   338
    repository := (aSourceCodeManager repositoryNameForModule:module) ifNil:[aSourceCodeManager repositoryName].
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   339
    stxRepository := aSourceCodeManager repositoryName.
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   340
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   341
    (buildDirectory construct:'stx') exists ifFalse:[
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   342
        (module ~= 'stx') ifTrue:[
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   343
            OperatingSystem
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   344
                executeCommand:('cvs -d ',stxRepository,' co stx')
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   345
                inputFrom:nil
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   346
                outputTo:Transcript
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   347
                errorTo:Transcript
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   348
                inDirectory:buildDirectory
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   349
                onError:[:status| self error:'cvs update stx failed'].
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   350
        ].
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   351
    ].
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   352
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   353
    ((buildDirectory construct:module) construct:'CVS') exists ifFalse:[
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   354
        OperatingSystem
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   355
            executeCommand:('cvs -d ',repository,' co -l ',directory)
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   356
            inputFrom:nil
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   357
            outputTo:Transcript
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   358
            errorTo:Transcript
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   359
            inDirectory:buildDirectory
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   360
            onError:[:status| self error:'cvs update failed'].
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   361
    ].
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   362
    OperatingSystem
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   363
        executeCommand:'cvs upd -d'
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   364
        inputFrom:nil
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   365
        outputTo:Transcript
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   366
        errorTo:Transcript
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   367
        inDirectory:(buildDirectory construct:module)
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   368
        onError:[:status| self error:'cvs update failed'].
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   369
self halt.
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   370
!
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   371
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   372
generateSourceFilesByFilingOut
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   373
    "/ local build
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   374
    "/ fileout the project
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   375
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   376
    (package module ~= 'stx') ifTrue:[
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   377
        (buildDirectory / package module) makeDirectory.
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   378
    ].
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   379
2599
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
   380
    "/ file out the package(s) which are to be built
2598
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   381
    ((Array with:package))
2596
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   382
    do:[:eachPackageToFileout |
2598
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   383
        |packageId packageModule packageDirectory packageTargetDir packageDef|
2596
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   384
2598
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   385
        packageId := eachPackageToFileout asPackageId.
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   386
        packageModule := packageId module.
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   387
        packageDirectory := packageId directory.
2596
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   388
        packageTargetDir := (buildDirectory / packageModule / packageDirectory) recursiveMakeDirectory.
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   389
2598
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   390
        packageDef := packageId projectDefinitionClass.
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   391
        (packageDef compiled_classNames_common ,
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   392
        packageDef compiled_classNamesForPlatform) do:[:eachClassName |
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   393
            |cls|
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   394
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   395
            cls := Smalltalk classNamed:eachClassName.
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   396
            self assert:cls isLoaded.
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   397
            cls fileOutIn:packageTargetDir
2596
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   398
        ].
2598
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   399
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   400
"/        (Smalltalk allClassesInPackage:eachPackageToFileout) do:[:cls |
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   401
"/            cls isPrivate ifFalse:[
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   402
"/                cls isLoaded ifFalse:[
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   403
"/                    self halt.
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   404
"/                    cls autoload.
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   405
"/                ].
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   406
"/                cls fileOutIn:packageTargetDir
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   407
"/            ]
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   408
"/        ].
2599
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
   409
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
   410
        projectDefinitionClass forEachFileNameAndGeneratedContentsDo:[:fileName :fileContents |
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
   411
            ((packageTargetDir / fileName) exists
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
   412
            and:[ (packageTargetDir / fileName) contents = fileContents ]) ifFalse:[
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
   413
                (packageTargetDir / fileName) contents:fileContents.
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
   414
            ].
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
   415
        ].    
2598
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   416
    ].
2599
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
   417
Claus Gittinger <cg@exept.de>
parents: 2598
diff changeset
   418
    "/ generate header files in prerequisite packages...
2598
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   419
    (projectDefinitionClass allPreRequisites)
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   420
    do:[:eachPackageToFileout |
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   421
        |packageId packageDef packageModule packageDirectory packageTargetDir|
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   422
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   423
        packageId := eachPackageToFileout asPackageId.
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   424
        packageModule := packageId module.
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   425
        packageDirectory := packageId directory.
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   426
        packageTargetDir := (buildDirectory / packageModule / packageDirectory) recursiveMakeDirectory.
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   427
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   428
        packageDef := packageId projectDefinitionClass.
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   429
        (packageDef compiled_classNames_common ,
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   430
        packageDef compiled_classNamesForPlatform) do:[:eachClassName |
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   431
            |cls|
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   432
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   433
            cls := Smalltalk classNamed:eachClassName.
2600
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   434
            "/ self assert:cls isLoaded.
2598
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   435
            cls isLoaded ifTrue:[    
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   436
                self createHeaderFileFor:cls in:packageTargetDir
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   437
            ].
2bb47a698d59 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2596
diff changeset
   438
        ].
2600
bfde5434dcdd added:5 methods
Claus Gittinger <cg@exept.de>
parents: 2599
diff changeset
   439
        self copyResourcesForPackage:eachPackageToFileout.
2596
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   440
    ].
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   441
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   442
"/    stx_libbasic2 preRequisitesForBuilding#(#'stx:libbasic')
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   443
!
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   444
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   445
setupBuildDirectory
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   446
    buildDirectory exists ifFalse:[
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   447
        buildDirectory recursiveMakeDirectory.
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   448
    ].
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   449
    (buildDirectory / 'stx') exists ifFalse:[
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   450
        (buildDirectory / 'stx') makeDirectory.
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   451
    ].
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   452
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   453
    self copyDirectoryForBuild:'include'.
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   454
    self copyDirectoryForBuild:'rules'.
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   455
!
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   456
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   457
validateBuildDirectoryIsPresent
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   458
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   459
    ^ self.
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   460
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   461
"/    [
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   462
"/        |default directoryIsOKForMe stc |
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   463
"/
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   464
"/        default := (buildDirectory ?
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   465
"/                          PreviousBuildDirectory)
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   466
"/                          ifNil:[ UserPreferences current buildDirectory].
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   467
"/
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   468
"/        buildDirectory := Dialog requestDirectoryName:'Temporary Work-ROOT for build:'
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   469
"/                                 default:default.
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   470
"/
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   471
"/        buildDirectory isEmptyOrNil ifTrue:[^ self].
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   472
"/        buildDirectory := buildDirectory asFilename.
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   473
"/        directoryIsOKForMe := true.
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   474
"/
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   475
"/        buildDirectory exists ifFalse:[
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   476
"/            Dialog warn:(self classResources string:'Work directory %1 does not exist.' with:buildDirectory).
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   477
"/            directoryIsOKForMe := false.
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   478
"/        ] ifTrue:[
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   479
"/            (buildDirectory construct:'stx') exists ifFalse:[
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   480
"/                Dialog warn:(self classResources stringWithCRs:'Work directory must contain an stx subDirectory,\which contains (at least) the stc and include subdirectories.').
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   481
"/                directoryIsOKForMe := false.
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   482
"/            ] ifTrue:[
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   483
"/                stc := (OperatingSystem isMSDOSlike) ifTrue:['stc.exe'] ifFalse:['stc'].
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   484
"/                (((buildDirectory construct:'stx')construct:'stc')construct:stc) exists ifFalse:[
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   485
"/                    Dialog warn:(self classResources stringWithCRs:'Work directory must contain an stc compiler in the stx/stc subDirectory.').
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   486
"/                    directoryIsOKForMe := false.
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   487
"/                ].
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   488
"/                ((buildDirectory construct:'stx')construct:'include') exists ifFalse:[
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   489
"/                    Dialog warn:(self classResources stringWithCRs:'Work directory must have had a make run before (for include files to exists).').
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   490
"/                    directoryIsOKForMe := false.
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   491
"/                ].
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   492
"/            ]
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   493
"/        ].
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   494
"/        directoryIsOKForMe
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   495
"/    ] whileFalse
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   496
! !
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   497
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   498
!ProjectBuilder class methodsFor:'documentation'!
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   499
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   500
version_CVS
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   501
    ^ '$Header$'
876679f78999 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   502
! !