summary refs log tree commit diff
path: root/tools
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2020-08-19 10:13:49 +0200
committerMichael Biebl <biebl@debian.org>2020-08-19 10:13:49 +0200
commite7b44ef4c80907346ec7492a09c45277459924fc (patch)
treeb1388af193ca205f73336eca47e81815e43a61ca /tools
parent136d191f1c96dbae1489fed7c2565f5e1b1f8d40 (diff)
New upstream version 1.26.2 upstream/1.26.2
Diffstat (limited to 'tools')
-rwxr-xr-xtools/create-exports-NetworkManager.sh7
-rwxr-xr-xtools/run-nm-test.sh8
2 files changed, 6 insertions, 9 deletions
diff --git a/tools/create-exports-NetworkManager.sh b/tools/create-exports-NetworkManager.sh
index b089aba2..f439bd31 100755
--- a/tools/create-exports-NetworkManager.sh
+++ b/tools/create-exports-NetworkManager.sh
@@ -40,11 +40,7 @@ call_nm() {
 }
 
 get_symbols_nm () {
-    if [ -z "$from_meson" ]; then
-        base=./src/.libs/libNetworkManager.a
-    else
-        base=./src/nm-full-symbols
-    fi
+    base=./src/NetworkManager-all-sym
     call_nm "$base" |
         sed -n 's/^[tTDGRBS] //p' |
         _sort
@@ -104,6 +100,7 @@ if [ -f "build.ninja" ]; then
     from_meson=1
     libs=
 else
+    from_meson=
     libs=.libs/
 fi
 
diff --git a/tools/run-nm-test.sh b/tools/run-nm-test.sh
index 11c9e17a..4df3ab96 100755
--- a/tools/run-nm-test.sh
+++ b/tools/run-nm-test.sh
@@ -96,12 +96,12 @@ else
         NMTST_USE_VALGRIND=0
     fi
 
-    if [ -n "${NMTST_LIBTOOL-:x}" ]; then
-        NMTST_LIBTOOL=(sh "$SCRIPT_PATH/../libtool" --mode=execute)
-    elif [ -n "${NMTST_LIBTOOL-x}" ]; then
+    if [ -z "${NMTST_LIBTOOL+x}" ]; then
+        NMTST_LIBTOOL=(sh "$SCRIPT_PATH/../libtool" "--mode=execute")
+    elif [ -z "$NMTST_LIBTOOL" ]; then
         NMTST_LIBTOOL=()
     else
-        NMTST_LIBTOOL=($NMTST_LIBTOOL --mode=execute)
+        NMTST_LIBTOOL=("$NMTST_LIBTOOL" "--mode=execute")
     fi
     unset TEST
     while test $# -gt 0; do