"svnversion" will show the revision of the current workingcopy. (That's one word.)
Use "svnversion --help" to understand the format. -----Original Message----- From: Tanjeff-N. Moos [mailto:tanj...@cccmz.de] Sent: Monday, October 08, 2012 1:06 AM To: doxygen-users@lists.sourceforge.net Subject: Re: [Doxygen-users] project number with svn Hi, I personally use git instead of subversion. My way to put the version string into the doxygen documentation[1] is basically as follows: 1) Obtain version string from git: git describe --always --dirty I don't know whether subversion has such a functionality, though. 2) Build doxygen documentation with the following commands: (cat api.doxyfile ; echo "PROJECT_NUMBER=Revision: $env") \ | doxygen - > /dev/null" The $env variable contains the string obtained in step 1. These commands append the PROJECT_NUMBER configuration to the doxyfile on the fly and feeds the whole thing into the doxygen command. Note that I have no PROJECT_NUMBER item in the checked-in version of my doxyfile. You could do some processing between step 1 and 2, e.g. to extract the number from the version string. This technique is more complicated than what you are searching for and is therefore a bit inelegant, but at least it works. Regards, Tanjeff [1] https://github.com/tanjeff/agentXcpp Look into SConstruct and doc/SConscript. These are SCons configurations (SCons is a replacement for autotools). On Fri, 5 Oct 2012 22:39:44 +0200 Kraus Philipp <philipp.kr...@flashpixx.de> wrote: > Hello, > > I have created a doxygen configuration file for my project and I > would like to set the PROJECT_NUMBER with the SVN revision number. I > have setup the $Rev$ keyword and add it to the keyword list. SVN push > the revision number into the doxygen configuration file but at the > moment it shows $Rev: <number> $ so is there a solution to tell > Doxygen, that it should remove the $Rev: and the $ chars before the > documentation is build? > > Thanks > > Phil ------------------------------------------------------------------------------ Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev _______________________________________________ Doxygen-users mailing list Doxygen-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/doxygen-users This email was sent to you by Thomson Reuters, the global news and information company. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Thomson Reuters. ------------------------------------------------------------------------------ Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev _______________________________________________ Doxygen-users mailing list Doxygen-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/doxygen-users