summaryrefslogtreecommitdiff
path: root/app/doxfileversionfilter.sh
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2016-12-28 16:52:56 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2016-12-28 16:52:56 +0100
commit7b358424ebad9349421acd533c2fa1cbf6cf3e3e (patch)
tree686678532eefed525c242fd214d0cfb2914726c5 /app/doxfileversionfilter.sh
Initial import of xtrkcad version 1:4.0.2-2
Diffstat (limited to 'app/doxfileversionfilter.sh')
-rw-r--r--app/doxfileversionfilter.sh12
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