mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-06 06:48:07 +02:00
docs: fix bashism in tools/check-docs.sh
[thaller@redhat.com: fixed issue in original patch]
(cherry picked from commit e11ee4582a)
This commit is contained in:
parent
a9f907bfa7
commit
ff7d3fd3d6
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ fi
|
||||||
# Check that files that define types that are in public libnm API are included in libnm documentation.
|
# Check that files that define types that are in public libnm API are included in libnm documentation.
|
||||||
# Don't complain about readability or I'll rewrite this in Perl.
|
# Don't complain about readability or I'll rewrite this in Perl.
|
||||||
if (sed -n 's/.*<xi:include href="\(xml\/.*\.xml\)".*/\1\n\1/p' $SOURCEDIR''docs/libnm/libnm-docs.xml;
|
if (sed -n 's/.*<xi:include href="\(xml\/.*\.xml\)".*/\1\n\1/p' $SOURCEDIR''docs/libnm/libnm-docs.xml;
|
||||||
grep -lE "$(sed -n 's/^[\t ]*\(.*_get_type\);/\1/p' $SOURCEDIR''libnm/libnm.ver |xargs echo |sed 's/ /|/g')" $SOURCEDIR''libnm{,-core}/*.h |
|
grep -lE "$(sed -n 's/^[\t ]*\(.*_get_type\);/\1/p' $SOURCEDIR''libnm/libnm.ver |xargs echo |sed 's/ /|/g')" $SOURCEDIR''libnm/*.h $SOURCEDIR''libnm-core/*.h |
|
||||||
sed 's,.*/,xml/,;s/\.h$/.xml/') |sort |uniq -u| grep . >&2; then
|
sed 's,.*/,xml/,;s/\.h$/.xml/') |sort |uniq -u| grep . >&2; then
|
||||||
echo "*** Error: libnm classes not included in docs/libnm/libnm-docs.xml ***" >&2
|
echo "*** Error: libnm classes not included in docs/libnm/libnm-docs.xml ***" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue