summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Vaclav <jvaclav@redhat.com>2023-08-23 10:25:58 +0200
committerÍñigo Huguet <inigohuguet@hotmail.com>2023-10-25 10:13:53 +0000
commitdf285fbaa9e2bf1a1c6a50cec6b445992223849f (patch)
treecd4031a884f4e1f44e0780b846bc876b908b0454
parent56b1a2c06a8236a11d2203df9fbe71c2eb52debf (diff)
libnm/docs: fix building libnm documentation with meson
Currently, the libnm documentation fails to build with meson due to meson replacing backslashes with slashes. This commit introduces a workaround -- replacing the `ignore_decorators` RegEx with an equivalent one that does not use backslashes. https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1717
-rw-r--r--docs/libnm/meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/libnm/meson.build b/docs/libnm/meson.build
index 01c9b66959..770d006284 100644
--- a/docs/libnm/meson.build
+++ b/docs/libnm/meson.build
@@ -27,7 +27,7 @@ private_headers = [
scan_args = [
'--rebuild-types',
'--rebuild-sections',
- '--ignore-decorators=NM_AVAILABLE_IN_\d+_\d+|NM_DEPRECATED_IN_\d+_\d+|NM_DEPRECATED_IN_\d+_\d+_FOR\(\)',
+ '--ignore-decorators=NM_AVAILABLE_IN_[0-9]+_[0-9]+|NM_DEPRECATED_IN_[0-9]+_[0-9]+|NM_DEPRECATED_IN_[0-9]+_[0-9]+_FOR[(][)]',
'--ignore-headers=' + ' '.join(private_headers),
]