diff options
author | Thomas Haller <thaller@redhat.com> | 2016-11-10 16:27:43 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-11-10 18:30:38 +0100 |
commit | f71d1dfffbd910db2c043e68f26661f7ab76a173 (patch) | |
tree | 1f07282161e51def13638de6e7fbd0f0262f5bb2 /tools/create-exports-NetworkManager.sh | |
parent | dc8ed66a19aa55dc80f7ef274744f9ccca9e3506 (diff) | |
download | NetworkManager-f71d1dfffbd910db2c043e68f26661f7ab76a173.tar.gz |
build: improve tools/create-exports-NetworkManager.sh script
- include symbols from the "B" section.
- improve the script, to use libNetworkManager.a instead
of the NetworkManager binary. The former is before stripping
symbols.
Diffstat (limited to 'tools/create-exports-NetworkManager.sh')
-rwxr-xr-x | tools/create-exports-NetworkManager.sh | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tools/create-exports-NetworkManager.sh b/tools/create-exports-NetworkManager.sh index 8b8941438a..880faf367f 100755 --- a/tools/create-exports-NetworkManager.sh +++ b/tools/create-exports-NetworkManager.sh @@ -29,8 +29,8 @@ call_nm() { } get_symbols_nm () { - call_nm ./src/NetworkManager | - sed -n 's/^[tTDR] //p' | + call_nm ./src/.libs/libNetworkManager.a | + sed -n 's/^[tTDRB] //p' | _sort } @@ -56,7 +56,6 @@ pretty() { do_build() { do_update - touch src/main.c make } @@ -70,9 +69,6 @@ do_update() { } do_generate() { - cd "$(realpath $(dirname "$0"))/.." - test -f ./src/NetworkManager - cat <<EOF # this file is generated by $0 { @@ -87,6 +83,7 @@ EOF } +cd "$(realpath $(dirname "$0"))/.." case "$1" in rebuild) do_rebuild |