tools: only consider SOs that exist when finding symbols to export

Also, set pipefail to catch the failures of all components of a
pipeline.
This commit is contained in:
Lubomir Rintel 2017-02-16 16:11:07 +01:00
parent dbbcd076fb
commit eb0228713d

View file

@ -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) |