From: Eduardo P. H. <eha...@co...> - 2005-08-19 18:16:41
|
On Fri, Aug 19, 2005 at 07:49:52PM +0200, Armin Bauer wrote: > No problem. :) > I should really add a trace that dumps the version of all components so > i see this more easy. >=20 > A question to everybody: > I would like to have a get_version() function on all components that > returns the current version as a const char *. It should work like this: > If it is build from a downloaded package it should return the version > like "0.17". But if it is checked out from the svn repository it should > return something like: "svn:$revision" where revision is well the > revision where it was last checked out. > Does anyone know how to do this? I think that the main problem is that the keyword expansion of subversion doesn't have, AFAIK, a practical way to get the last revision of the a whole directory, instead of the last revision the file where the keyword is located. --=20 Eduardo |