If your sources are in svn, then they actually have the same svn-
number, after a commit. But the numbers in the $Revision$ or $Id$ tags
of your working copies are not updated by svn commit. However, if you
do an "svn update" after the commit, it should update the numbers. So,
you shouldn't need to work out the maximum value.
Here, we actually use the output of the "svnversion" command, save it
automatically it in a file, and include it in the document. This way,
the version number indicates if the document came from checked-in
sources, modified sources, or mixed revisions. We don't have a module
to do it, just a
svnversion > svnversion.tex ; texexec document.tex
in the Makefile, and on the document front page somewhere
\ignorespaces \input svnversion\relax \removeunwantedspaces .
> Hi Aditya,
> thanks for your reply. It's a good starting point.
> One thing is missing in this solution.
> Our documents are structured into several files.
> Every file has an svn-version. So I want to
> calculate the max version.
> Do you know a small example where a max value
> is calculated. I would try to integrate it into
> the other example.
> Kind regards,