From aa3e44984ab2a5ed258e65e5caeffd8ba1f251b8 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 10 Nov 2016 16:49:09 +0100 Subject: [PATCH] build: don't change directory in tools/create-exports-NetworkManager.sh We shall call it from the makefile, thus the current directory is $(top_builddir), which is just what we need. --- tools/create-exports-NetworkManager.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/create-exports-NetworkManager.sh b/tools/create-exports-NetworkManager.sh index 880faf367..77aa8ab2d 100755 --- a/tools/create-exports-NetworkManager.sh +++ b/tools/create-exports-NetworkManager.sh @@ -2,6 +2,11 @@ set -e +die() { + echo "$@" + exit 1 +} + # generates the linker version script src/NetworkManager.ver # by looking at the symbols needed by the device and settings # plugins. Note that this depends on how NetworkManager and @@ -82,8 +87,8 @@ local: EOF } +test -f ./src/.libs/libNetworkManager.a || die "must be called from NetworkManager \$(top_builddir) after building the tree" -cd "$(realpath $(dirname "$0"))/.." case "$1" in rebuild) do_rebuild