Opened 13 years ago

Closed 13 years ago

#218 closed task (fixed)

version output

Reported by: Peter Johansson Owned by: Peter Johansson
Priority: minor Milestone: svndigest 0.7
Component: output Version: trunk
Keywords: Cc:

Description (last modified by Peter Johansson)

refs #219

I suggest that we replace the informative string svndigest pre0.6 with something even more informative. I think it is good style to include svn revision in version output for devel builds. Instead of svndigest pre0.6 we could have something like: svndigest 0.6 (dev build rev 370)

Besides having this line as first line in --version output, the line should also be included in page footer.

Every sensible implementation of this feature most likely includes some script parsing svn info generating a header file. Optimally this header file should not be touched unless it is necessary, in other words, if the revision has not changed since last time make all was issued this revision.h should not be updated.

Implementing this suggestion also implies that a make distcheck problem will be solved. At time being make distcheck fails on devel version, because we use autoconf setting check-news, which implies that current version number appears in the first few lines of the NEWS file. A version number like pre0.6 typically does not appear in NEWS file.

Change History (3)

comment:1 Changed 13 years ago by Peter Johansson

Description: modified (diff)

added refs to #219

comment:2 Changed 13 years ago by Peter Johansson

Do not access the information from the repository. Access it from $Id$ tags. The tags are present in all files and contain sufficient info.

Use this to create an svn_revision_info.h.

comment:3 Changed 13 years ago by Peter Johansson

Resolution: fixed
Status: newclosed

I used svnversion which is tool provided from svn team.

The out put now look like:

svndigest pre0.7 (r540)                                                       
   compiled Dec 28 2007, 21:38:29            

in verbose mode, else just like before.

Note: See TracTickets for help on using tickets.