2004-09-11 10:43:49 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2006-06-08 18:31:00 +00:00
|
|
|
# Filter the Yate header files so they can be parsed by kdoc or doxygen
|
|
|
|
|
|
|
|
if [ -n "$2" -a -f "$2" ]; then
|
|
|
|
f="$2"
|
|
|
|
else
|
|
|
|
if [ -n "$1" -a -f "$1" ]; then
|
|
|
|
f="$1"
|
|
|
|
else
|
|
|
|
echo "Could not find file to process" >&2
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|
2004-09-11 10:43:49 +00:00
|
|
|
|
2009-05-26 14:57:00 +00:00
|
|
|
filter='s/FORMAT_CHECK(.*)//; s/[A-Z]*_API//; s/^.*YCLASS.*)$//'
|
2004-09-11 10:43:49 +00:00
|
|
|
|
2006-06-08 18:31:00 +00:00
|
|
|
sed "$filter" "$f"
|