aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-01-17 00:27:43 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-01-17 00:27:43 +0000
commit103e5770f120d70b1580bfc3cab8219c6608bc21 (patch)
tree55d04f6fbf26db1698fb12264ac3b86c40455187 /misc
downloadpaludis-103e5770f120d70b1580bfc3cab8219c6608bc21.tar.gz
paludis-103e5770f120d70b1580bfc3cab8219c6608bc21.tar.xz
Initial import
Diffstat (limited to 'misc')
-rw-r--r--misc/Makefile.am4
-rw-r--r--misc/generated-file.txt9
-rw-r--r--misc/svn-version-filter-data.bash.in1
-rwxr-xr-xmisc/svn-version-filter.bash30
4 files changed, 44 insertions, 0 deletions
diff --git a/misc/Makefile.am b/misc/Makefile.am
new file mode 100644
index 0000000..91a5cf3
--- /dev/null
+++ b/misc/Makefile.am
@@ -0,0 +1,4 @@
+CLEANFILES = *~
+MAINTAINERCLEANFILES = Makefile.in svn-version-filter-data.bash
+EXTRA_DIST = generated-file.txt svn-version-filter-data.bash.in
+
diff --git a/misc/generated-file.txt b/misc/generated-file.txt
new file mode 100644
index 0000000..25c83f2
--- /dev/null
+++ b/misc/generated-file.txt
@@ -0,0 +1,9 @@
+#if 0
+# vim: set ro :
+
+# *********************************************************
+# THIS IS A GENERATED FILE! DO NOT EDIT THIS FILE DIRECTLY!
+# *********************************************************
+#
+#endif
+
diff --git a/misc/svn-version-filter-data.bash.in b/misc/svn-version-filter-data.bash.in
new file mode 100644
index 0000000..6b4b249
--- /dev/null
+++ b/misc/svn-version-filter-data.bash.in
@@ -0,0 +1 @@
+export VERSION=@VERSION@
diff --git a/misc/svn-version-filter.bash b/misc/svn-version-filter.bash
new file mode 100755
index 0000000..38a36b7
--- /dev/null
+++ b/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
+