-----Original Message-----
From: Joel Sherrill [mailto:address@hidden
Sent: Thursday, March 12, 2009 8:32 AM
To: Weddington, Eric
Cc: address@hidden
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 <address@hidden>
+
+ * doc/simulavr.info: Remove hardcoded version numbers.
+ * doc/version.texi (UPDATE): New date.
+
2009-03-12 Joel Sherrill <address@hidden>
* 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-*-
+
address@hidden version.texi
+
@c %**start of header
@setfilename simulavr.info
address@hidden SimulAVR Documentation 0.9cvs
address@hidden SimulAVR Documentation @value{VERSION}
@c %**end of header
address@hidden 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 address@hidden
+cd address@hidden
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 address@hidden
+cd address@hidden
./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 @@
address@hidden UPDATED 11 March 2009
address@hidden UPDATED 12 March 2009
@set UPDATED-MONTH March 2009
@set EDITION 0.9cvs
@set VERSION 0.9cvs