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:[ |