summaryrefslogtreecommitdiff
path: root/tools/create-exports-NetworkManager.sh
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2017-02-16 16:11:07 +0100
committerLubomir Rintel <lkundrak@v3.sk>2017-02-16 16:12:02 +0100
commiteb0228713d931ff5b5a6d2111067aedde3b94ae2 (patch)
treef7939950e13594c7ceda0b4e19d39023315febc2 /tools/create-exports-NetworkManager.sh
parentdbbcd076fba074f3cd97412d9afd8a3590ce771f (diff)
downloadNetworkManager-eb0228713d931ff5b5a6d2111067aedde3b94ae2.tar.gz
tools: only consider SOs that exist when finding symbols to export
Also, set pipefail to catch the failures of all components of a pipeline.
Diffstat (limited to 'tools/create-exports-NetworkManager.sh')
-rwxr-xr-xtools/create-exports-NetworkManager.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/create-exports-NetworkManager.sh b/tools/create-exports-NetworkManager.sh
index c1010f7229..85c239302e 100755
--- a/tools/create-exports-NetworkManager.sh
+++ b/tools/create-exports-NetworkManager.sh
@@ -1,6 +1,7 @@
#!/bin/bash
set -e
+set -o pipefail
die() {
echo "$@"
@@ -46,9 +47,9 @@ EOF
}
get_symbols_missing() {
- (for f in ./src/settings/plugins/*/.libs/*.so \
- ./src/devices/*/.libs/*.so \
- ./src/ppp/.libs/libnm-ppp-plugin.so; do
+ (for f in $(find ./src/settings/plugins/*/.libs/ \
+ ./src/devices/*/.libs/ \
+ ./src/ppp/.libs/ -name '*.so'); do
call_nm "$f" |
sed -n 's/^\([U]\) \(\(nm_\|nmp_\|_nm\|NM\|_NM\).*\)$/\2/p'
done) |