[M3devel] compiler version number

Olaf Wagner wagner at elegosoft.com
Wed Jul 21 22:42:36 CEST 2010


Quoting "Coleburn, Randy" <rcolebur at SCIRES.COM>:

> I grabbed the minimal 5.8.6 archive for Windows.
>
> Using this archive, "cm3 -version" yields:
>
> Critical Mass Modula-3 version 5.8.6
>   last updated: 2010-04-11
>   compiled: 2010-07-12 21:11:13
>   configuration: .\cm3.cfg
>   host: NT386
>   target: NT386
>
> But, when I use this edition to rebuild everything from the main   
> trunk, "cm3 -version" now yields:
>
> Critical Mass Modula-3 version d5.8.2
>   last updated: 2009-07-15
>   compiled: 2010-07-21 17:29:53
>   configuration: C:\cm3\bin\cm3.cfg
>   host: NT386
> defaulting to native build: I386_NT
>   target: I386_NT
>
> Can someone please explain how the version number and timestamp info  
>  get integrated into the compiler?
>
> If I can get a handle on the way it's currently done, I'll try to   
> fix the problem I'm having on Windows with the info regressing.

You're right, it's still wrong on the trunk. I've only cared for
the release branch during the recent months, but I've just checked
in a fix:

% cvs -q diff -u
Index: version
===================================================================
RCS file: /usr/cvs/cm3/scripts/version,v
retrieving revision 1.5
diff -u -u -r1.5 version
--- version     15 Jul 2009 06:14:01 -0000      1.5
+++ version     21 Jul 2010 20:39:06 -0000
@@ -1,3 +1,3 @@
-CM3VERSION d5.8.2
-CM3VERSIONNUM 050802
-CM3LASTCHANGED 2009-07-15
+CM3VERSION d5.9.0
+CM3VERSIONNUM 050900
+CM3LASTCHANGED 2010-07-21
Index: version.quake
===================================================================
RCS file: /usr/cvs/cm3/scripts/version.quake,v
retrieving revision 1.1
diff -u -u -r1.1 version.quake
--- version.quake       13 Apr 2010 11:14:22 -0000      1.1
+++ version.quake       21 Jul 2010 20:39:06 -0000
@@ -1,3 +1,3 @@
-CM3VERSION = "d5.8.2"
-CM3VERSIONNUM = "050802"
-CM3LASTCHANGED = "2009-07-15"
+CM3VERSION = "d5.9.0"
+CM3VERSIONNUM = "050900"
+CM3LASTCHANGED = "2010-07-21"
luthien [/d/home/wagner/work/cm3/scripts] wagner
% cvs commit -m 'fix version number on trunk for 5.9 development'
c/usr/cvs/cm3/scripts/version,v  <--  version
new revision: 1.6; previous revision: 1.5
/usr/cvs/cm3/scripts/version.quake,v  <--  version.quake
new revision: 1.2; previous revision: 1.1

All scripts should pick up the version from those files.

Thanks for the hint,

Olaf
-- 
Olaf Wagner -- elego Software Solutions GmbH
                Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany
phone: +49 30 23 45 86 96  mobile: +49 177 2345 869  fax: +49 30 23 45 86 95
    http://www.elegosoft.com | Geschäftsführer: Olaf Wagner | Sitz: Berlin
Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194




More information about the M3devel mailing list