Following shell script build the doxygen doc with current svn rev number of the local working copy of the source code. #!/bin/sh var=$(/usr/bin/svnversion) echo $var sed "s/^PROJECT_NUMBER.*/PROJECT_NUMBER = Rev.$var/" doxygen.cfg | doxygen -