summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDan Winship <danw@redhat.com>2015-01-21 10:01:26 -0500
committerThomas Haller <thaller@redhat.com>2015-06-26 16:28:33 +0200
commit64ff214bb84a576c9490b73fc373e31d2c15fe53 (patch)
treee7c7bc6f5dce36ca212888bded9ec7bb4d6a98d1 /tools
parent8a1f4beb65111b88b1114afac96c33a9970301c5 (diff)
downloadNetworkManager-64ff214bb84a576c9490b73fc373e31d2c15fe53.tar.gz
macros: add NM_BACKPORT_SYMBOL()
Add a macro to insert the necessary compiler/linker magic to add a copy of an existing symbol to an older version. Also, update check-exports.sh to be able to check for such symbols by listed them commented-out in the appropriate section. [thaller@redhat.com: patch modified] Related: https://bugzilla.gnome.org/show_bug.cgi?id=742993
Diffstat (limited to 'tools')
-rwxr-xr-xtools/check-exports.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/check-exports.sh b/tools/check-exports.sh
index dfd882c15b..0022752280 100755
--- a/tools/check-exports.sh
+++ b/tools/check-exports.sh
@@ -18,9 +18,7 @@ get_syms() {
}
get_syms_from_def() {
- # be strict and only parse entries that start with one \t and end with a ';'
- sed -n 's/^\t\([_a-zA-Z0-9]\+\);$/\1/p' "$1" |
- grep '^\*$' -v |
+ sed -n 's/^\t\(\([_a-zA-Z0-9]\+\)\|#\s*\([_a-zA-Z0-9]\+@@\?[_a-zA-Z0-9]\+\)\);$/\2\3/p' "$1" |
sort
}