From 2e5fa45ddfbb5cffa1e78221f1cea706e2f298af Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Wed, 31 Jul 2019 10:51:42 +0200 Subject: New upstream version 1.19.90 --- tools/check-docs.sh | 20 +++++++++++++------- tools/create-exports-NetworkManager.sh | 15 ++++++++++----- tools/meson-post-install.sh | 4 ++++ tools/run-nm-test.sh | 2 +- tools/test-networkmanager-service.py | 1 - 5 files changed, 28 insertions(+), 14 deletions(-) (limited to 'tools') diff --git a/tools/check-docs.sh b/tools/check-docs.sh index b6fca6e0..e0ed7837 100755 --- a/tools/check-docs.sh +++ b/tools/check-docs.sh @@ -23,9 +23,15 @@ same_lines() { libnm_headers() { ( - ls -1 "$1"libnm/*.h "$1"libnm-core/*.h + ls -1 "$1/libnm"/*.h "$1/libnm-core"/*.h | \ if [ -n "$2" ]; then - ls -1 "$2"/libnm/*.h "$2"/libnm-core/*.h + grep -v -F "$1/libnm-core/nm-core-enum-types.h" | \ + grep -v -F "$1/libnm/nm-enum-types.h" + else + cat + fi + if [ -n "$2" ]; then + ls -1 "$2/libnm"/*.h "$2/libnm-core"/*.h fi ) | sort | uniq } @@ -36,28 +42,28 @@ BUILDDIR="$2" if test "$SOURCEDIR" == "$BUILDDIR"; then BUILDDIR= fi -[ -n "$SOURCEDIR" ] && SOURCEDIR="$SOURCEDIR/" +[ -z "$SOURCEDIR" ] && SOURCEDIR='.' # Check that the D-Bus API docs contain all known interfaces -F1="$(sed -n 's,^ $,\1,p' "$SOURCEDIR"docs/api/network-manager-docs.xml)" +F1="$(sed -n 's,^ $,\1,p' "$SOURCEDIR/docs/api/network-manager-docs.xml")" F1_EXTRA=" org.freedesktop.NetworkManager.Device.WiMax.xml org.freedesktop.NetworkManager.WiMax.Nsp.xml " -F2="$(cd "$SOURCEDIR"introspection; ls -1 *.xml)" +F2="$(cd "$SOURCEDIR/introspection"; ls -1 *.xml)" if ! same_lines "$F1"$'\n'"$F1_EXTRA" "$F2" ; then die "*** Error: D-Bus interfaces not included in docs/api/network-manager-docs.xml ***" fi # Check that files that define types that are in public libnm API are included in libnm documentation. -F1="$(sed -n 's/.*