common/stx_libscm_common.st
author Jan Vrany <jan.vrany@labware.com>
Thu, 28 Jul 2022 06:56:07 +0100
changeset 943 442fe77c421f
parent 909 993b38cb97dd
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
211
616bc92c0875 Added copyright notice.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 114
diff changeset
     1
"
335
7e19ab19148b Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 310
diff changeset
     2
stx:libscm - a new source code management library for Smalltalk/X
509
f92210d4585b Updated copyright notice.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
     3
Copyright (C) 2012-2015 Jan Vrany
903
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 864
diff changeset
     4
Copyright (C) 2020 Jan Vrany
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 864
diff changeset
     5
Copyright (C) 2020 LabWare
335
7e19ab19148b Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 310
diff changeset
     6
7e19ab19148b Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 310
diff changeset
     7
This library is free software; you can redistribute it and/or
7e19ab19148b Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 310
diff changeset
     8
modify it under the terms of the GNU Lesser General Public
7e19ab19148b Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 310
diff changeset
     9
License as published by the Free Software Foundation; either
7e19ab19148b Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 310
diff changeset
    10
version 2.1 of the License. 
211
616bc92c0875 Added copyright notice.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 114
diff changeset
    11
335
7e19ab19148b Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 310
diff changeset
    12
This library is distributed in the hope that it will be useful,
7e19ab19148b Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 310
diff changeset
    13
but WITHOUT ANY WARRANTY; without even the implied warranty of
7e19ab19148b Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 310
diff changeset
    14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7e19ab19148b Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 310
diff changeset
    15
Lesser General Public License for more details.
7e19ab19148b Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 310
diff changeset
    16
7e19ab19148b Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 310
diff changeset
    17
You should have received a copy of the GNU Lesser General Public
7e19ab19148b Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 310
diff changeset
    18
License along with this library; if not, write to the Free Software
7e19ab19148b Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 310
diff changeset
    19
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
211
616bc92c0875 Added copyright notice.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 114
diff changeset
    20
"
43
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    21
"{ Package: 'stx:libscm/common' }"
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    22
903
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 864
diff changeset
    23
"{ NameSpace: Smalltalk }"
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 864
diff changeset
    24
43
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    25
LibraryDefinition subclass:#stx_libscm_common
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    26
	instanceVariableNames:''
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    27
	classVariableNames:''
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    28
	poolDictionaries:''
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    29
	category:'* Projects & Packages *'
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    30
!
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    31
211
616bc92c0875 Added copyright notice.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 114
diff changeset
    32
!stx_libscm_common class methodsFor:'documentation'!
616bc92c0875 Added copyright notice.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 114
diff changeset
    33
616bc92c0875 Added copyright notice.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 114
diff changeset
    34
copyright
616bc92c0875 Added copyright notice.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 114
diff changeset
    35
"
335
7e19ab19148b Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 310
diff changeset
    36
stx:libscm - a new source code management library for Smalltalk/X
509
f92210d4585b Updated copyright notice.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 431
diff changeset
    37
Copyright (C) 2012-2015 Jan Vrany
903
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 864
diff changeset
    38
Copyright (C) 2020 Jan Vrany
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 864
diff changeset
    39
Copyright (C) 2020 LabWare
335
7e19ab19148b Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 310
diff changeset
    40
7e19ab19148b Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 310
diff changeset
    41
This library is free software; you can redistribute it and/or
7e19ab19148b Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 310
diff changeset
    42
modify it under the terms of the GNU Lesser General Public
7e19ab19148b Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 310
diff changeset
    43
License as published by the Free Software Foundation; either
7e19ab19148b Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 310
diff changeset
    44
version 2.1 of the License. 
211
616bc92c0875 Added copyright notice.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 114
diff changeset
    45
335
7e19ab19148b Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 310
diff changeset
    46
This library is distributed in the hope that it will be useful,
7e19ab19148b Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 310
diff changeset
    47
but WITHOUT ANY WARRANTY; without even the implied warranty of
7e19ab19148b Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 310
diff changeset
    48
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7e19ab19148b Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 310
diff changeset
    49
Lesser General Public License for more details.
7e19ab19148b Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 310
diff changeset
    50
7e19ab19148b Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 310
diff changeset
    51
You should have received a copy of the GNU Lesser General Public
7e19ab19148b Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 310
diff changeset
    52
License along with this library; if not, write to the Free Software
7e19ab19148b Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 310
diff changeset
    53
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
211
616bc92c0875 Added copyright notice.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 114
diff changeset
    54
"
616bc92c0875 Added copyright notice.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 114
diff changeset
    55
! !
43
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    56
310
f5c8d61a488b Fix for Smalltalk/X 6.2.2 - load patch package for 6.2.2 after initializing package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 307
diff changeset
    57
!stx_libscm_common class methodsFor:'class initialization'!
f5c8d61a488b Fix for Smalltalk/X 6.2.2 - load patch package for 6.2.2 after initializing package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 307
diff changeset
    58
f5c8d61a488b Fix for Smalltalk/X 6.2.2 - load patch package for 6.2.2 after initializing package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 307
diff changeset
    59
initialize
f5c8d61a488b Fix for Smalltalk/X 6.2.2 - load patch package for 6.2.2 after initializing package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 307
diff changeset
    60
    "Initialize the package. This should actually be preLoadAction or postLoadAction
f5c8d61a488b Fix for Smalltalk/X 6.2.2 - load patch package for 6.2.2 after initializing package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 307
diff changeset
    61
     but they are *NOT* called when package is loaded from compiled class library. 
f5c8d61a488b Fix for Smalltalk/X 6.2.2 - load patch package for 6.2.2 after initializing package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 307
diff changeset
    62
     Hence done here."
f5c8d61a488b Fix for Smalltalk/X 6.2.2 - load patch package for 6.2.2 after initializing package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 307
diff changeset
    63
f5c8d61a488b Fix for Smalltalk/X 6.2.2 - load patch package for 6.2.2 after initializing package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 307
diff changeset
    64
    Smalltalk versionString = '6.2.2' ifTrue:[
f5c8d61a488b Fix for Smalltalk/X 6.2.2 - load patch package for 6.2.2 after initializing package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 307
diff changeset
    65
        Smalltalk loadPackage: 'stx:libscm/common/patches/stx622'    
f5c8d61a488b Fix for Smalltalk/X 6.2.2 - load patch package for 6.2.2 after initializing package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 307
diff changeset
    66
    ].
f5c8d61a488b Fix for Smalltalk/X 6.2.2 - load patch package for 6.2.2 after initializing package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 307
diff changeset
    67
f5c8d61a488b Fix for Smalltalk/X 6.2.2 - load patch package for 6.2.2 after initializing package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 307
diff changeset
    68
    "Created: / 05-07-2013 / 00:20:48 / Jan Vrany <jan.vrany@fit.cvut.cz>"
f5c8d61a488b Fix for Smalltalk/X 6.2.2 - load patch package for 6.2.2 after initializing package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 307
diff changeset
    69
! !
f5c8d61a488b Fix for Smalltalk/X 6.2.2 - load patch package for 6.2.2 after initializing package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 307
diff changeset
    70
43
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    71
!stx_libscm_common class methodsFor:'description'!
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    72
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    73
excludedFromPreRequisites
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    74
    "list all packages which should be ignored in the automatic
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    75
     preRequisites scan. See #preRequisites for more."
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    76
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    77
    ^ #(
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    78
    )
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    79
!
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    80
382
b661dd389038 Introduced SCMCommonPackageModelGroup.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 335
diff changeset
    81
mandatoryPreRequisites
396
3c9d047e3841 Introduced a SCMAbstractPackageWorkingCopy and SCMAbstractPackageRevision...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 388
diff changeset
    82
    "list packages which are mandatory as a prerequisite.
3c9d047e3841 Introduced a SCMAbstractPackageWorkingCopy and SCMAbstractPackageRevision...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 388
diff changeset
    83
     This are packages containing superclasses of my classes and classes which
3c9d047e3841 Introduced a SCMAbstractPackageWorkingCopy and SCMAbstractPackageRevision...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 388
diff changeset
    84
     are extended by myself.
903
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 864
diff changeset
    85
     They are mandatory, because we need these packages as a prerequisite for loading and compiling.
396
3c9d047e3841 Introduced a SCMAbstractPackageWorkingCopy and SCMAbstractPackageRevision...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 388
diff changeset
    86
     This method is generated automatically,
903
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 864
diff changeset
    87
     by searching along the inheritance chain of all of my classes.
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 864
diff changeset
    88
     Please take a look at the #referencedPreRequisites method as well."
382
b661dd389038 Introduced SCMCommonPackageModelGroup.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 335
diff changeset
    89
b661dd389038 Introduced SCMCommonPackageModelGroup.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 335
diff changeset
    90
    ^ #(
903
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 864
diff changeset
    91
        #'stx:libbasic'    "Behavior - extended"
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 864
diff changeset
    92
        #'stx:libbasic3'    "AbstractSourceCodeManager - superclass of SCMAbstractSourceCodeManager"
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 864
diff changeset
    93
        #'stx:libview2'    "ApplicationModel - superclass of SCMAbstractCommitDialog"
382
b661dd389038 Introduced SCMCommonPackageModelGroup.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 335
diff changeset
    94
    )
b661dd389038 Introduced SCMCommonPackageModelGroup.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 335
diff changeset
    95
!
b661dd389038 Introduced SCMCommonPackageModelGroup.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 335
diff changeset
    96
43
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    97
preRequisites
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    98
    "list all required packages.
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
    99
     This list can be maintained manually or (better) generated and
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   100
     updated by scanning the superclass hierarchies and looking for
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   101
     global variable accesses. (the browser has a menu function for that)
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   102
     Howevery, often too much is found, and you may want to explicitely
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   103
     exclude individual packages in the #excludedFromPrerequisites method."
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   104
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   105
    ^ #(
81
eeb86ad71bc3 Fixed all references to libsvn classes. Added SCMCompatModeQuery.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 53
diff changeset
   106
        #'stx:libbasic'    "Object - superclass of SCMAbstractPackageModel "
eeb86ad71bc3 Fixed all references to libsvn classes. Added SCMCompatModeQuery.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 53
diff changeset
   107
        #'stx:libbasic3'    "SourceCodeManagerUtilitiesForWorkspaceBasedManagers - superclass of SCMCommonSourceCodeManagerUtilities "
eeb86ad71bc3 Fixed all references to libsvn classes. Added SCMCompatModeQuery.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 53
diff changeset
   108
        #'stx:libtool'    "Tools::TextDiffTool - referenced by SCMAbstractCommitDialog>>doShowDiffsForEntry:against: "
eeb86ad71bc3 Fixed all references to libsvn classes. Added SCMCompatModeQuery.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 53
diff changeset
   109
        #'stx:libview'    "Color - referenced by SCMAbstractCommitDialog>>browseWorkingCopyLabel "
eeb86ad71bc3 Fixed all references to libsvn classes. Added SCMCompatModeQuery.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 53
diff changeset
   110
        #'stx:libview2'    "SimpleDialog - superclass of SCMAbstractDialog "
44
832a135ebe08 Dependency fixes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents: 43
diff changeset
   111
        #'stx:libwidg'    "Button - referenced by SCMAbstractCommitDialog>>doRunSanityChecks "
832a135ebe08 Dependency fixes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents: 43
diff changeset
   112
        #'stx:libwidg2'    "ProgressNotification - referenced by SCMAbstractTask>>notify:progress: "
43
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   113
    )
382
b661dd389038 Introduced SCMCommonPackageModelGroup.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 335
diff changeset
   114
!
b661dd389038 Introduced SCMCommonPackageModelGroup.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 335
diff changeset
   115
b661dd389038 Introduced SCMCommonPackageModelGroup.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 335
diff changeset
   116
referencedPreRequisites
396
3c9d047e3841 Introduced a SCMAbstractPackageWorkingCopy and SCMAbstractPackageRevision...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 388
diff changeset
   117
    "list packages which are a prerequisite, because they contain
3c9d047e3841 Introduced a SCMAbstractPackageWorkingCopy and SCMAbstractPackageRevision...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 388
diff changeset
   118
     classes which are referenced by my classes.
903
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 864
diff changeset
   119
     These packages are NOT needed as a prerequisite for compiling or loading,
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 864
diff changeset
   120
     however, a class from it may be referenced during execution and having it
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 864
diff changeset
   121
     unloaded then may lead to a runtime doesNotUnderstand error, unless the caller
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 864
diff changeset
   122
     includes explicit checks for the package being present.
396
3c9d047e3841 Introduced a SCMAbstractPackageWorkingCopy and SCMAbstractPackageRevision...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 388
diff changeset
   123
     This method is generated automatically,
903
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 864
diff changeset
   124
     by searching all classes (and their packages) which are referenced by my classes.
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 864
diff changeset
   125
     Please also take a look at the #mandatoryPreRequisites method"
382
b661dd389038 Introduced SCMCommonPackageModelGroup.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 335
diff changeset
   126
b661dd389038 Introduced SCMCommonPackageModelGroup.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 335
diff changeset
   127
    ^ #(
903
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 864
diff changeset
   128
        #'stx:libjava'    "JavaVM - referenced by SCMAbstractFileoutLikeTask>>doRemoveOldContainersFor:"
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 864
diff changeset
   129
        #'stx:libscm/mercurial'    "HGError - referenced by SCMAbstractPackageRevision>>childNamed:"
909
993b38cb97dd Introduce `SCMMergeTool` - a merge tool for Smalltalk/X source files
Jan Vrany <jan.vrany@labware.com>
parents: 903
diff changeset
   130
        #'stx:libtool'    "Tools::ChangeSetDiffInfo - referenced by SCMMergeTool>>base:local:other:output:"
903
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 864
diff changeset
   131
        #'stx:libview'    "Color - referenced by SCMAbstractCommitDialog>>browseWorkingCopyLabel"
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 864
diff changeset
   132
        #'stx:libwidg'    "Button - referenced by SCMAbstractCommitDialog>>doRunSanityChecks"
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 864
diff changeset
   133
        #'stx:libwidg2'    "ProgressNotification - referenced by SCMAbstractFileoutLikeTask>>doCompileCopyrightMethodsFor:"
382
b661dd389038 Introduced SCMCommonPackageModelGroup.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 335
diff changeset
   134
    )
b661dd389038 Introduced SCMCommonPackageModelGroup.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 335
diff changeset
   135
!
b661dd389038 Introduced SCMCommonPackageModelGroup.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 335
diff changeset
   136
b661dd389038 Introduced SCMCommonPackageModelGroup.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 335
diff changeset
   137
subProjects
b661dd389038 Introduced SCMCommonPackageModelGroup.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 335
diff changeset
   138
    "list packages which are known as subprojects.
b661dd389038 Introduced SCMCommonPackageModelGroup.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 335
diff changeset
   139
     The generated makefile will enter those and make there as well.
b661dd389038 Introduced SCMCommonPackageModelGroup.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 335
diff changeset
   140
     However: they are not forced to be loaded when a package is loaded;
b661dd389038 Introduced SCMCommonPackageModelGroup.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 335
diff changeset
   141
     for those, redefine requiredPrerequisites"
b661dd389038 Introduced SCMCommonPackageModelGroup.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 335
diff changeset
   142
b661dd389038 Introduced SCMCommonPackageModelGroup.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 335
diff changeset
   143
    ^ #(
b661dd389038 Introduced SCMCommonPackageModelGroup.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 335
diff changeset
   144
    )
43
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   145
! !
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   146
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   147
!stx_libscm_common class methodsFor:'description - contents'!
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   148
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   149
classNamesAndAttributes
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   150
    "lists the classes which are to be included in the project.
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   151
     Each entry in the list may be: a single class-name (symbol),
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   152
     or an array-literal consisting of class name and attributes.
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   153
     Attributes are: #autoload or #<os> where os is one of win32, unix,..."
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   154
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   155
    ^ #(
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   156
        "<className> or (<className> attributes...) in load order"
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   157
        SCMAbstractDialog
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   158
        SCMAbstractPackageModel
396
3c9d047e3841 Introduced a SCMAbstractPackageWorkingCopy and SCMAbstractPackageRevision...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 388
diff changeset
   159
        SCMAbstractPackageWorkingCopyRegistry
431
5bc7ac796e5e Change Class>>revision to return logical revision instead of binary revision.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 411
diff changeset
   160
        SCMAbstractRevisionInfo
43
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   161
        SCMAbstractSourceCodeManager
382
b661dd389038 Introduced SCMCommonPackageModelGroup.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 335
diff changeset
   162
        SCMAbstractTask
388
d093d603292a Added caching to SCMAbstractPackageModel to speed up certain queries.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 382
diff changeset
   163
        SCMCodeMonitor
382
b661dd389038 Introduced SCMCommonPackageModelGroup.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 335
diff changeset
   164
        SCMCommonPackageModelGroup
b661dd389038 Introduced SCMCommonPackageModelGroup.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 335
diff changeset
   165
        SCMCommonSourceCodeManagerUtilities
b661dd389038 Introduced SCMCommonPackageModelGroup.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 335
diff changeset
   166
        SCMCompatModeQuery
903
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 864
diff changeset
   167
        SCMCopyrightLine
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 864
diff changeset
   168
        SCMCopyrightUpdater
411
858944cebec4 Added SCMAbstractPackageRevision>>changeSet.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 396
diff changeset
   169
        SCMError
909
993b38cb97dd Introduce `SCMMergeTool` - a merge tool for Smalltalk/X source files
Jan Vrany <jan.vrany@labware.com>
parents: 903
diff changeset
   170
        SCMMergeTool
993b38cb97dd Introduce `SCMMergeTool` - a merge tool for Smalltalk/X source files
Jan Vrany <jan.vrany@labware.com>
parents: 903
diff changeset
   171
        SCMMergeToolStartup
411
858944cebec4 Added SCMAbstractPackageRevision>>changeSet.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 396
diff changeset
   172
        SCMWarning
43
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   173
        #'stx_libscm_common'
44
832a135ebe08 Dependency fixes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents: 43
diff changeset
   174
        SCMAbstractCommitDialog
832a135ebe08 Dependency fixes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents: 43
diff changeset
   175
        SCMAbstractFileoutLikeTask
396
3c9d047e3841 Introduced a SCMAbstractPackageWorkingCopy and SCMAbstractPackageRevision...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 388
diff changeset
   176
        SCMAbstractPackageRevision
3c9d047e3841 Introduced a SCMAbstractPackageWorkingCopy and SCMAbstractPackageRevision...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 388
diff changeset
   177
        SCMAbstractPackageWorkingCopy
411
858944cebec4 Added SCMAbstractPackageRevision>>changeSet.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 396
diff changeset
   178
        SCMPackageModelError
858944cebec4 Added SCMAbstractPackageRevision>>changeSet.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 396
diff changeset
   179
        SCMPackageModelWarning
44
832a135ebe08 Dependency fixes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents: 43
diff changeset
   180
        SCMAbstractCommitTask
43
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   181
    )
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   182
!
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   183
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   184
extensionMethodNames
903
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 864
diff changeset
   185
    "lists the extension methods which are to be included in the project.
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 864
diff changeset
   186
     Entries are 2-element array literals, consisting of class-name and selector.
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 864
diff changeset
   187
     A correponding method with real names must be present in my concrete subclasses
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 864
diff changeset
   188
     if it has extensions."
43
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   189
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   190
    ^ #(
382
b661dd389038 Introduced SCMCommonPackageModelGroup.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 335
diff changeset
   191
        ChangeSet condenseChangesForPackageAfterCommit:
903
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 864
diff changeset
   192
        Class copyrightMethodSource
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 864
diff changeset
   193
        UserPreferences historyManagerCopyrightHolder
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 864
diff changeset
   194
        UserPreferences historyManagerCopyrightHolder:
43
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   195
    )
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   196
! !
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   197
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   198
!stx_libscm_common class methodsFor:'description - project information'!
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   199
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   200
applicationIconFileName
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   201
    "Return the name (without suffix) of an icon-file (the app's icon); will be included in the rc-resource file"
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   202
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   203
    ^ nil
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   204
    "/ ^ self applicationName
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   205
!
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   206
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   207
companyName
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   208
    "Return a companyname which will appear in <lib>.rc"
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   209
99
a880b85982fb Library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 85
diff changeset
   210
    ^ 'Jan Vrany'
a880b85982fb Library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 85
diff changeset
   211
a880b85982fb Library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 85
diff changeset
   212
    "Modified: / 23-11-2012 / 20:30:03 / Jan Vrany <jan.vrany@fit.cvut.cz>"
43
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   213
!
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   214
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   215
description
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   216
    "Return a description string which will appear in vc.def / bc.def"
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   217
99
a880b85982fb Library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 85
diff changeset
   218
    ^ 'Source Code Management Support Library for Smalltalk/X'
a880b85982fb Library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 85
diff changeset
   219
a880b85982fb Library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 85
diff changeset
   220
    "Modified: / 23-11-2012 / 20:30:38 / Jan Vrany <jan.vrany@fit.cvut.cz>"
43
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   221
!
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   222
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   223
legalCopyright
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   224
    "Return a copyright string which will appear in <lib>.rc"
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   225
99
a880b85982fb Library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 85
diff changeset
   226
    ^ 'Copyright Jan Vrany 2012'
a880b85982fb Library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 85
diff changeset
   227
a880b85982fb Library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 85
diff changeset
   228
    "Modified: / 23-11-2012 / 20:30:51 / Jan Vrany <jan.vrany@fit.cvut.cz>"
43
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   229
!
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   230
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   231
productInstallDirBaseName
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   232
    "Returns a default installDir which will appear in <app>.nsi.
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   233
     This is usually not the one you want to keep"
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   234
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   235
    ^ (self package asCollectionOfSubstringsSeparatedByAny:':/') last
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   236
!
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   237
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   238
productName
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   239
    "Return a product name which will appear in <lib>.rc"
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   240
99
a880b85982fb Library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 85
diff changeset
   241
    ^ 'Smalltalk/X SCM Support Library'
a880b85982fb Library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 85
diff changeset
   242
a880b85982fb Library description & copyright.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 85
diff changeset
   243
    "Modified: / 23-11-2012 / 20:31:03 / Jan Vrany <jan.vrany@fit.cvut.cz>"
43
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   244
! !
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   245
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   246
!stx_libscm_common class methodsFor:'description - svn'!
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   247
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   248
svnRepositoryUrlString
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   249
    "Return a SVN repository URL of myself.
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   250
     (Generated since 2011-04-08)
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   251
     Do not make the string shorter!!!!!! We have to use fixed-length keyword!!!!!!
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   252
    "        
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   253
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   254
    ^ '$URL::                                                                                                                        $'
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   255
!
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   256
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   257
svnRevisionNr
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   258
    "Return a SVN revision number of myself.
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   259
     This number is updated after a commit"
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   260
44
832a135ebe08 Dependency fixes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents: 43
diff changeset
   261
    ^ "$SVN-Revision:"'45              '"$"
43
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   262
! !
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   263
307
6ceee83525eb Fixes for compilation under Windows against Smalltalk/X 6.2.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 211
diff changeset
   264
!stx_libscm_common class methodsFor:'file templates'!
6ceee83525eb Fixes for compilation under Windows against Smalltalk/X 6.2.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 211
diff changeset
   265
6ceee83525eb Fixes for compilation under Windows against Smalltalk/X 6.2.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 211
diff changeset
   266
bc_dot_mak
6ceee83525eb Fixes for compilation under Windows against Smalltalk/X 6.2.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 211
diff changeset
   267
    "answer a template for the bc.mak makefile.
6ceee83525eb Fixes for compilation under Windows against Smalltalk/X 6.2.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 211
diff changeset
   268
     Any variable definition %(Variable) will be later replaced by the mapping.
6ceee83525eb Fixes for compilation under Windows against Smalltalk/X 6.2.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 211
diff changeset
   269
     $% characters have to be duplicated"
6ceee83525eb Fixes for compilation under Windows against Smalltalk/X 6.2.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 211
diff changeset
   270
6ceee83525eb Fixes for compilation under Windows against Smalltalk/X 6.2.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 211
diff changeset
   271
^
6ceee83525eb Fixes for compilation under Windows against Smalltalk/X 6.2.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 211
diff changeset
   272
'# Hack to make it compilable under Smalltalk/X 6.2.2 (which does not have RES variable defined)
6ceee83525eb Fixes for compilation under Windows against Smalltalk/X 6.2.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 211
diff changeset
   273
!!ifndef RES
6ceee83525eb Fixes for compilation under Windows against Smalltalk/X 6.2.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 211
diff changeset
   274
RES=res
6ceee83525eb Fixes for compilation under Windows against Smalltalk/X 6.2.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 211
diff changeset
   275
!!endif
6ceee83525eb Fixes for compilation under Windows against Smalltalk/X 6.2.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 211
diff changeset
   276
6ceee83525eb Fixes for compilation under Windows against Smalltalk/X 6.2.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 211
diff changeset
   277
' , super bc_dot_mak
6ceee83525eb Fixes for compilation under Windows against Smalltalk/X 6.2.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 211
diff changeset
   278
6ceee83525eb Fixes for compilation under Windows against Smalltalk/X 6.2.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 211
diff changeset
   279
    "Created: / 03-07-2013 / 19:38:55 / Jan Vrany <jan.vrany@fit.cvut.cz>"
6ceee83525eb Fixes for compilation under Windows against Smalltalk/X 6.2.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 211
diff changeset
   280
! !
6ceee83525eb Fixes for compilation under Windows against Smalltalk/X 6.2.2
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 211
diff changeset
   281
43
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   282
!stx_libscm_common class methodsFor:'documentation'!
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   283
53
8043f7b6f41a - More common code refactored
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents: 44
diff changeset
   284
version_HG
114
8b27cb46af9a version_HG changed to return String.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 99
diff changeset
   285
8b27cb46af9a version_HG changed to return String.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 99
diff changeset
   286
    ^ '$Changeset: <not expanded> $'
53
8043f7b6f41a - More common code refactored
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents: 44
diff changeset
   287
!
8043f7b6f41a - More common code refactored
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents: 44
diff changeset
   288
43
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   289
version_SVN
903
3c6c268d7395 Improve `doCompileCopyrightMethodFor:` to update copyright upon commit
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 864
diff changeset
   290
    ^ '§Id::                                                                                                                        §'
43
a331d402de2f Initial commit of common, reusable classes
vranyj1@bd9d3459-6c23-4dd9-91de-98eeebb81177
parents:
diff changeset
   291
! !
211
616bc92c0875 Added copyright notice.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 114
diff changeset
   292
335
7e19ab19148b Changed license to LGPL2.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 310
diff changeset
   293
310
f5c8d61a488b Fix for Smalltalk/X 6.2.2 - load patch package for 6.2.2 after initializing package.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 307
diff changeset
   294
stx_libscm_common initialize!