yate/docs/doc-filter.sh
paulc dc7b6f93d0 Directory reorder #2
git-svn-id: http://yate.null.ro/svn/yate/trunk@1475 acf43c95-373e-0410-b603-e72c3f656dc1
2007-11-15 22:21:43 +00:00

19 lines
313 B
Bash
Executable file

#!/bin/sh
# 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
filter='s/FORMAT_CHECK(.*)//; s/[A-Z]*_API//'
sed "$filter" "$f"