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.
This commit is contained in:
Thomas Haller
2016-11-10 16:49:09 +01:00
parent f71d1dfffb
commit aa3e44984a

View File

@@ -2,6 +2,11 @@
set -e set -e
die() {
echo "$@"
exit 1
}
# generates the linker version script src/NetworkManager.ver # generates the linker version script src/NetworkManager.ver
# by looking at the symbols needed by the device and settings # by looking at the symbols needed by the device and settings
# plugins. Note that this depends on how NetworkManager and # plugins. Note that this depends on how NetworkManager and
@@ -82,8 +87,8 @@ local:
EOF 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 case "$1" in
rebuild) rebuild)
do_rebuild do_rebuild