diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-12-28 16:52:56 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-12-28 16:52:56 +0100 |
commit | 7b358424ebad9349421acd533c2fa1cbf6cf3e3e (patch) | |
tree | 686678532eefed525c242fd214d0cfb2914726c5 /app/doxfileversionfilter.sh |
Initial import of xtrkcad version 1:4.0.2-2
Diffstat (limited to 'app/doxfileversionfilter.sh')
-rw-r--r-- | app/doxfileversionfilter.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/doxfileversionfilter.sh b/app/doxfileversionfilter.sh new file mode 100644 index 0000000..5078bd4 --- /dev/null +++ b/app/doxfileversionfilter.sh @@ -0,0 +1,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'
\ No newline at end of file |