summaryrefslogtreecommitdiff
path: root/app/doxfileversionfilter.sh
blob: 5078bd4d232ab986d62ce05c1dbccefecdeec279 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh 

# a script to get the cvs version number of a particular file 
# used by doxygen to identify the source of the doxygen-produced  documentation
# $1 contains the full pathname of the file of interest. cvs expects a pathname
# relative to the directory from which doxygen is invoked.
# Note that the cvs status command must consult the server (sourceforge.net)
# and is therefore quite slow.

WD=`pwd`
FN=`echo "$1" | sed "s|${WD}/||" `
cvs status ${FN} | sed -n 's/^[ \]*Working revision:[ \t]*\([0-9][0-9\.]*\).*/\1/p'