summary refs log tree commit diff
path: root/tools/check-exports.sh
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2016-01-20 16:26:51 +0100
committerMichael Biebl <biebl@debian.org>2016-01-20 16:26:51 +0100
commit494f296a3baab08522617b24b1f126d8f9a17502 (patch)
treec8ef32fb0dd1c4ff35a0b38e787abb58692de0cd /tools/check-exports.sh
parent54f6333410ffd570e62717d9e77c5c987175e397 (diff)
Imported Upstream version 1.1.90 upstream/1.1.90
Diffstat (limited to 'tools/check-exports.sh')
-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 da62a74f..b645d379 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
 }