diff options
| author | Sebastien Bacher <seb128@ubuntu.com> | 2021-01-11 17:41:24 +0100 |
|---|---|---|
| committer | Sebastien Bacher <seb128@ubuntu.com> | 2021-01-11 17:41:24 +0100 |
| commit | a82e048a943092315a32d745c99e0f5635e29134 (patch) | |
| tree | e2daea99a161768c9b956bfea9117289deaf31be /tools/create-exports-NetworkManager.sh | |
| parent | b51f06ff71a2060925bf3c0f04c44bd12480e670 (diff) | |
| parent | 65f86e8f56267192d42f2b629fc6b0c99fb9cd0c (diff) | |
Merge branch 'upstream/latest' of https://salsa.debian.org/utopia-team/network-manager into upstream/latest
Diffstat (limited to 'tools/create-exports-NetworkManager.sh')
| -rwxr-xr-x | tools/create-exports-NetworkManager.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tools/create-exports-NetworkManager.sh b/tools/create-exports-NetworkManager.sh index f439bd31..6cb7c2e7 100755 --- a/tools/create-exports-NetworkManager.sh +++ b/tools/create-exports-NetworkManager.sh @@ -46,7 +46,7 @@ get_symbols_nm () { _sort } -get_symbols_explict() { +get_symbols_explicit() { cat <<EOF | _sort _IO_stdin_used EOF @@ -60,7 +60,7 @@ get_symbols_missing() { sed -n 's/^\([U]\) \(\(nm_\|nmp_\|_nm\|NM\|_NM\|nmtst_\|c_siphash_\|c_list_\).*\)$/\2/p' done) | _sort | - grep -Fx -f <(get_symbols_explict) -v | + grep -Fx -f <(get_symbols_explicit) -v | grep -Fx -f <(get_symbols_nm) } @@ -82,14 +82,17 @@ do_update() { do_generate > ./src/NetworkManager.ver } +SYMBOLS_MISSING="$(get_symbols_missing | pretty)" +SYMBOLS_EXPLICIT="$(get_symbols_explicit | pretty)" + do_generate() { cat <<EOF # this file is generated by $0 { global: -$(get_symbols_missing | pretty) +$SYMBOLS_MISSING -$(get_symbols_explict | pretty) +$SYMBOLS_EXPLICIT local: *; }; |