2006-07-13 Ralf Corsepius <ralf.corsepius@rtems.org>

* doxy-filter: New.
	* Makefile.am: Add doxy-filter.
This commit is contained in:
Ralf Corsepius
2006-07-13 06:37:43 +00:00
parent 47854a0d16
commit b18c5f7ceb
3 changed files with 29 additions and 0 deletions

21
tools/build/doxy-filter Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/sh
# doxygen input filter
# $Id$
# usage: doxy-filter <input-file-name>
# Reads <input-file> and writes to stdout.
file=$1
# Does file contain a doxygen @file directive?
if ! grep -q '@file' $file >/dev/null ; then
# No, add one
echo "/** @file $file */"
cat $file
else
# Yes, adjust path to work around doxygen not being able to
# distinguish file names properly
exec sed -e "s,@file.*$,@file $file," $file
fi