mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-06 10:18:03 +02:00
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:
parent
dbbcd076fb
commit
eb0228713d
1 changed files with 4 additions and 3 deletions
|
|
@ -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) |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue