On Sat, 6 Oct 2007, Robinson Tryon wrote: > What about pulling the version directly out of SVN at build time? Like this: > > svn info | sed -n 's/.*Revision: \([0-9]*\)/\1/ p' > > As long as the Makefile lives at the top level of the project, this > value should always reflect the latest commit in the current checkout.
That looks like a good solution. I read a bit in the svn book, and they recommend using svnversion for getting a "global" revision number for a set of files. However, that tool seems to have a bit more varying output, reflecting local changes and mixed revsion numbers etc. /ulf -- linuxbios mailing list linuxbios@linuxbios.org http://www.linuxbios.org/mailman/listinfo/linuxbios