SmalltalkCodeGeneratorTool.st
branchjv
changeset 15709 7c4957a4261d
parent 15566 184cea584be5
parent 15708 1b35e4573788
child 16093 a0705d7461fd
equal deleted inserted replaced
15705:8e342f783ecb 15709:7c4957a4261d
     1 "{ Encoding: utf8 }"
       
     2 
       
     3 "
     1 "
     4  COPYRIGHT (c) 2002 by eXept Software AG
     2  COPYRIGHT (c) 2002 by eXept Software AG
     5               All Rights Reserved
     3               All Rights Reserved
     6 
     4 
     7  This software is furnished under a license and may be used
     5  This software is furnished under a license and may be used
  1780             initialYear := thisYear := Date today year.
  1778             initialYear := thisYear := Date today year.
  1781             (copyRightText includes:$%) ifTrue:[
  1779             (copyRightText includes:$%) ifTrue:[
  1782                 scm := aClass theNonMetaclass sourceCodeManager.
  1780                 scm := aClass theNonMetaclass sourceCodeManager.
  1783                 scm == CVSSourceCodeManager ifTrue:[
  1781                 scm == CVSSourceCodeManager ifTrue:[
  1784                     log := CVSSourceCodeManager revisionLogOf:aClass fromRevision:'1.1' toRevision:'1.1'.
  1782                     log := CVSSourceCodeManager revisionLogOf:aClass fromRevision:'1.1' toRevision:'1.1'.
  1785                     (firstRev := (log at:#revisions) firstIfEmpty:nil) notNil ifTrue:[     
  1783                     log isNil ifTrue:[
  1786                         firstRevDate := firstRev at:#date ifAbsent:nil.
  1784                         initialYear := thisYear
  1787                         firstRevDate notNil ifTrue:[
  1785                     ] ifFalse:[
  1788                             firstRevDate := Date readFrom:firstRevDate onError:nil. 
  1786                         (firstRev := (log at:#revisions) firstIfEmpty:nil) notNil ifTrue:[     
  1789                             firstRevDate notNil ifTrue:[    
  1787                             firstRevDate := firstRev at:#date ifAbsent:nil.
  1790                                 initialYear := firstRevDate year.
  1788                             firstRevDate notNil ifTrue:[
       
  1789                                 firstRevDate := Date readFrom:firstRevDate onError:nil. 
       
  1790                                 firstRevDate notNil ifTrue:[    
       
  1791                                     initialYear := firstRevDate year.
       
  1792                                 ]
  1791                             ]
  1793                             ]
  1792                         ]
  1794                         ]
  1793                     ]
  1795                     ].
  1794                 ].
  1796                 ].
  1795             ].
  1797             ].
  1796             thisYear ~= initialYear ifTrue:[
  1798             thisYear ~= initialYear ifTrue:[
  1797                 txt := copyRightText bindWith:(initialYear printString, '-', thisYear printString).
  1799                 txt := copyRightText bindWith:(initialYear printString, '-', thisYear printString).
  1798             ] ifFalse:[
  1800             ] ifFalse:[
  2742 ! !
  2744 ! !
  2743 
  2745 
  2744 !SmalltalkCodeGeneratorTool class methodsFor:'documentation'!
  2746 !SmalltalkCodeGeneratorTool class methodsFor:'documentation'!
  2745 
  2747 
  2746 version
  2748 version
  2747     ^ '$Header: /cvs/stx/stx/libtool/SmalltalkCodeGeneratorTool.st,v 1.37 2015-03-06 12:37:16 cg Exp $'
  2749     ^ '$Header$'
  2748 !
  2750 !
  2749 
  2751 
  2750 version_CVS
  2752 version_CVS
  2751     ^ '$Header: /cvs/stx/stx/libtool/SmalltalkCodeGeneratorTool.st,v 1.37 2015-03-06 12:37:16 cg Exp $'
  2753     ^ '$Header$'
  2752 !
  2754 !
  2753 
  2755 
  2754 version_SVN
  2756 version_SVN
  2755     ^ '$Id: SmalltalkCodeGeneratorTool.st,v 1.37 2015-03-06 12:37:16 cg Exp $'
  2757     ^ '$Id$'
  2756 ! !
  2758 ! !
  2757 
  2759