4.115
Last change
on this file since baef6771 was
cd8009e,
checked in by Ralf Corsepius <ralf.corsepius@…>, on 06/11/10 at 19:36:36
|
New (Copy of ../tools/build/doxy-filter).
|
-
Property mode set to
100755
|
File size:
423 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | # doxygen input filter |
---|
4 | # $Id$ |
---|
5 | |
---|
6 | # usage: doxy-filter <input-file-name> |
---|
7 | # Reads <input-file> and writes to stdout. |
---|
8 | |
---|
9 | file=$1 |
---|
10 | |
---|
11 | # Does file contain a doxygen @file directive? |
---|
12 | if ! grep -q '@file' $file >/dev/null ; then |
---|
13 | # No, add one |
---|
14 | echo "/** @file $file */" |
---|
15 | cat $file |
---|
16 | else |
---|
17 | # Yes, adjust path to work around doxygen not being able to |
---|
18 | # distinguish file names properly |
---|
19 | exec sed -e "s,@file.*$,@file $file," $file |
---|
20 | fi |
---|
21 | |
---|
Note: See
TracBrowser
for help on using the repository browser.