aboutsummaryrefslogtreecommitdiff
path: root/0.8.0/misc/svn-version-filter.bash
diff options
context:
space:
mode:
Diffstat (limited to '0.8.0/misc/svn-version-filter.bash')
-rwxr-xr-x0.8.0/misc/svn-version-filter.bash30
1 files changed, 30 insertions, 0 deletions
diff --git a/0.8.0/misc/svn-version-filter.bash b/0.8.0/misc/svn-version-filter.bash
new file mode 100755
index 0000000..38a36b7
--- /dev/null
+++ b/0.8.0/misc/svn-version-filter.bash
@@ -0,0 +1,30 @@
+#!/usr/bin/env bash
+
+# For Doxygen. See:
+# http://www.stack.nl/~dimitri/doxygen/config.html#cfg_file_version_filter
+
+source ${0/.bash/-data.bash}
+
+case $1 in
+ *.svn*)
+ echo $VERSION
+ ;;
+
+ *)
+ case "$(basename $1 )" in
+ *.cc|*.hh|*.hh.in)
+ if type svn &>/dev/null ; then
+ echo -n "svn "
+ svn stat -v $1 | sed -n 's/^[ A-Z?\*|!]\{1,15\}/r/;s/ \{1,15\}/\/r/;s/ .*//p'
+ else
+ echo $VERSION
+ fi
+ ;;
+
+ *)
+ echo $VERSION
+ ;;
+ esac
+ ;;
+esac
+