I just committed a fix that uses the VERSION constant
in config.h and adds an autoconf generated file that
contains the version number for the documentation
(config.texi.in).

One longer term issue is DLL version numbers.  I
am not an expert on that but don't DLL's normally
have them so you can test for compatibility.
--joel

Weddington, Eric wrote:
-----Original Message-----
From: Joel Sherrill [mailto:[email protected]] Sent: Thursday, March 12, 2009 8:32 AM
To: Weddington, Eric
Cc: [email protected]
Subject: Re: [Simulavr-devel] Version and doc fixes


There seems to be a lot of version strings in the
documentation. Is there any way to pull this in automatically from the configuration?
Yes.  It is just a matter of needing to know everywhere the
version string can show up.  Documentation, C code, etc
get different handling.  In C, it can be put in config.h by
autoconf.  For the doc, we can generate a file which
we include.

By hand in .texinfo, you can lay the groundwork by doing
this near the top.

@set SIMULAVR_VERSION 0.90

I see there's a version.texi file that has that information. But it would be 
nice if we could generate this file from the configuration so it doesn't have 
to manually be changed.

and use it like this @value{SIMULAVR_VERSION}

I grep'ed for 0.90 and the 0.8 string and didn't see them
much. Where all is this?

I changed the version string to "0.9cvs" which probably doesn't match your grep 
search.
It is easy to do.  I just need a roadmap.

Patch below committed:

Index: ChangeLog
===================================================================
RCS file: /sources/simulavr/simulavrxx/ChangeLog,v
retrieving revision 1.49
diff -u -p -r1.49 ChangeLog
--- ChangeLog   12 Mar 2009 14:22:37 -0000      1.49
+++ ChangeLog   12 Mar 2009 16:36:59 -0000
@@ -1,3 +1,8 @@
+2009-03-12  Eric B. Weddington  <[email protected]>
+
+       * doc/simulavr.info: Remove hardcoded version numbers.
+       * doc/version.texi (UPDATE): New date.
+
 2009-03-12     Joel Sherrill <[email protected]>
* doc/.cvsignore: Account for dropping xx from name.
Index: doc/simulavr.texinfo
===================================================================
RCS file: /sources/simulavr/simulavrxx/doc/simulavr.texinfo,v
retrieving revision 1.1
diff -u -p -r1.1 simulavr.texinfo
--- doc/simulavr.texinfo        11 Mar 2009 23:25:41 -0000      1.1
+++ doc/simulavr.texinfo        12 Mar 2009 16:37:00 -0000
@@ -1,11 +1,12 @@
 \input texinfo @c -*-texinfo-*-
+
+...@include version.texi
+
 @c %**start of header
 @setfilename simulavr.info
-...@settitle SimulAVR Documentation 0.9cvs
+...@settitle SimulAVR Documentation @value{VERSION}
 @c %**end of header
-...@include version.texi
-
 @copying
 This file documents the simulavr program.
@@ -580,12 +581,12 @@ free to start.
 @cindex Installing, Building SimulAVR
SimulAVR uses GNU auto tools. This means that, given a tarball, for
-version 0.9, for example, you should be able to use the following
+version @value{VERSION}, for example, you should be able to use the following
 steps to build and install simulavr:
@example
-tar zxvf simulavr-0.9.tar.gz
-cd simulavr-0.9
+tar zxvf simula...@value{version}.tar.gz
+cd simula...@value{version}
 configure
 make
 make install
@@ -611,8 +612,8 @@ make && make install
 Then I configure/install simulavr as follows:
@example
-tar zxvf simulavr-0.9.tar.gz
-cd simulavr-0.9
+tar zxvf simula...@value{version}.tar.gz
+cd simula...@value{version}
 ./configure --prefix=/home/user/install
 make
 make install
Index: doc/version.texi
===================================================================
RCS file: /sources/simulavr/simulavrxx/doc/version.texi,v
retrieving revision 1.9
diff -u -p -r1.9 version.texi
--- doc/version.texi    11 Mar 2009 23:25:41 -0000      1.9
+++ doc/version.texi    12 Mar 2009 16:37:00 -0000
@@ -1,4 +1,4 @@
-...@set UPDATED 11 March 2009
+...@set UPDATED 12 March 2009
 @set UPDATED-MONTH March 2009
 @set EDITION 0.9cvs
 @set VERSION 0.9cvs


--
Joel Sherrill, Ph.D.             Director of Research & Development
[email protected]        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
  Support Available             (256) 722-9985




_______________________________________________
Simulavr-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/simulavr-devel

Reply via email to