# HG changeset patch # User Claus Gittinger # Date 1345544911 -7200 # Node ID 475918fd2d854ddef3c78a4c8a5176106ecef2a7 # Parent 531b78e53e8f53f69e9e30a0888f6f2c1279b31f changed: #createVersionMethodFor: diff -r 531b78e53e8f -r 475918fd2d85 SmalltalkCodeGeneratorTool.st --- a/SmalltalkCodeGeneratorTool.st Tue Aug 21 12:26:28 2012 +0200 +++ b/SmalltalkCodeGeneratorTool.st Tue Aug 21 12:28:31 2012 +0200 @@ -1882,8 +1882,8 @@ createVersionMethodFor:aClass - "add version method containing RCS template - but only if not already present and its not a private class." + "add a version method containing RCS template + but only if not already present and it's not a private class." |code| @@ -1891,18 +1891,15 @@ aClass isPrivate ifFalse:[ (aClass includesSelector:#version) ifFalse:[ - "/ ugly; should ask the class for that - aClass isJavaScriptClass ifTrue:[ - code:= ('function version() {\ return ("$' , 'Header$");\}') withCRs - ] ifFalse:[ - code:= ('version\ ^ ''$' , 'Header$''') withCRs - ]. + code := aClass programmingLanguage versionMethodTemplateForCVS. self compile:code forClass:aClass inCategory:#documentation. ] ]. + + "Modified (comment): / 21-08-2012 / 11:54:57 / cg" ! ! !SmalltalkCodeGeneratorTool methodsFor:'code templates'! @@ -2493,11 +2490,11 @@ !SmalltalkCodeGeneratorTool class methodsFor:'documentation'! version - ^ '$Header: /cvs/stx/stx/libtool/SmalltalkCodeGeneratorTool.st,v 1.15 2012-07-20 18:13:34 cg Exp $' + ^ '$Header: /cvs/stx/stx/libtool/SmalltalkCodeGeneratorTool.st,v 1.16 2012-08-21 10:28:31 cg Exp $' ! version_CVS - ^ '$Header: /cvs/stx/stx/libtool/SmalltalkCodeGeneratorTool.st,v 1.15 2012-07-20 18:13:34 cg Exp $' + ^ '$Header: /cvs/stx/stx/libtool/SmalltalkCodeGeneratorTool.st,v 1.16 2012-08-21 10:28:31 cg Exp $' ! version_SVN