Files
rtems/cpukit/doxy-filter
Joel Sherrill 65c6425de9 Remove CVS Id Strings (manual edits after script)
These modifications were required by hand after running the script.
In some cases, the file names did not match patterns. In others,
the format of the file did not match any common patterns.
2012-05-11 08:44:14 -05:00

21 lines
417 B
Bash
Executable File

#!/bin/sh
#
# doxygen input filter
# 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