mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
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.
21 lines
417 B
Bash
Executable File
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
|
|
|