summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2019-09-06 11:00:52 +0200
committerBeniamino Galvani <bgalvani@redhat.com>2019-09-06 14:18:24 +0200
commit11cf082a6233a5c2f17da1b49457a66266062678 (patch)
treebf0dcc0995f7786cbfb9c5dcf8de1989adb1db65 /tools
parenta0498e0829f9aa1d51e39b99c235f55b66fe0bc0 (diff)
downloadNetworkManager-11cf082a6233a5c2f17da1b49457a66266062678.tar.gz
build: use regexp in gtkdoc --ignore-decorators option
gtkdoc-scan supports regular expressions in the --ignore-decorators command-line option. Since it is easier to use a regexp than grepping macros from a source file, revert the ugly solution from commit 2d941dc95a1d ('build: fix errors when building with gtk-doc 1.32').
Diffstat (limited to 'tools')
-rwxr-xr-xtools/decorators.sh7
1 files changed, 0 insertions, 7 deletions
diff --git a/tools/decorators.sh b/tools/decorators.sh
deleted file mode 100755
index 7af7b1e494..0000000000
--- a/tools/decorators.sh
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/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'