NetworkManager/tools/check-tree.sh
Thomas Haller 9bba4871f3
build: move "libnm/" to "src/" and split it
Like with "libnm-core/", split "libnm/" into different directories for
the public headers, for the implementation and for the helper "aux"
library.
2021-02-24 12:48:37 +01:00

24 lines
587 B
Bash
Executable file

#!/bin/bash
set -e
TOP_DIR="$(dirname "$0")/.."
die() {
printf 'FAIL: %s\n' "$*" >&2
exit 1
}
check_cmp() {
local a="$1"
local b="$2"
cmp "$TOP_DIR/$a" "$TOP_DIR/$b" && return 0
diff "$TOP_DIR/$a" "$TOP_DIR/$b" || :
die "files \"$a\" and \"$b\" differ!"
}
check_cmp src/libnm-base/nm-ethtool-utils-base.h src/libnm-client-public/nm-ethtool-utils.h
check_cmp src/libnm-core-intern/nm-meta-setting-base-impl.h clients/common/nm-meta-setting-base-impl.h
check_cmp src/libnm-core-impl/nm-meta-setting-base-impl.c clients/common/nm-meta-setting-base-impl.c