4.104.115
Last change
on this file since 5f5f681 was
b18c5f7c,
checked in by Ralf Corsepius <ralf.corsepius@…>, on 07/13/06 at 06:37:43
|
2006-07-13 Ralf Corsepius <ralf.corsepius@…>
- doxy-filter: New.
- Makefile.am: Add 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.