diff options
Diffstat (limited to 'tools/decorators.sh')
-rwxr-xr-x | tools/decorators.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/decorators.sh b/tools/decorators.sh new file mode 100755 index 0000000000..7af7b1e494 --- /dev/null +++ b/tools/decorators.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +# Extract NM_DEPRECATED_IN_* and NM_AVAILABLE_IN_* macros from a +# header file and output them in a way suitable to be passed to +# 'gtkdoc-scan --ignore-decorators' + +grep -o "NM_DEPRECATED_IN_[0-9]_[0-9]\+$\|NM_AVAILABLE_IN_[0-9]_[0-9]\+$" "$1" | sed ':a;N;$!ba;s/\n/|/g' |