diff options
author | Ran Benita <ran234@gmail.com> | 2017-08-03 13:38:14 +0300 |
---|---|---|
committer | Ran Benita <ran234@gmail.com> | 2017-08-03 13:38:14 +0300 |
commit | fbd86e44adb6722085f97b4497744103ec23077e (patch) | |
tree | fc0f825f6125e17816d0ed0556946f47e0b607c9 | |
parent | 2a16c3c4825234ae4ed3aefb554699070c70e932 (diff) | |
download | xorg-lib-libxkbcommon-fbd86e44adb6722085f97b4497744103ec23077e.tar.gz |
test/symbols-leak-test.bash: make it easier to read
Signed-off-by: Ran Benita <ran234@gmail.com>
-rwxr-xr-x | test/symbols-leak-test.bash | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/test/symbols-leak-test.bash b/test/symbols-leak-test.bash index bf03790..0a74c5f 100755 --- a/test/symbols-leak-test.bash +++ b/test/symbols-leak-test.bash @@ -1,24 +1,16 @@ #!/usr/bin/env bash set -e -# Check that all exported symbols are specified in the symbol -# version scripts. If this fails, please update the appropriate -# (adding new version nodes when needed). +# Check that all exported symbols are specified in the symbol version +# scripts. If this fails, please update the appropriate .map file +# (adding new version nodes as needed). # xkbcommon symbols diff -a -u \ - <(cat "$top_srcdir"/xkbcommon.map | \ - grep '^\s\+xkb_.*' | \ - sed -e 's/^\s\+\(.*\);/\1/' | sort) \ - <(cat "$top_srcdir"/src/{,xkbcomp,compose}/*.c | \ - grep XKB_EXPORT -A 1 | grep '^xkb_.*' | \ - sed -e 's/(.*//' | sort) + <(grep -h '^\s\+xkb_' "$top_srcdir"/xkbcommon.map | sed -e 's/^\s\+\(.*\);/\1/' | sort) \ + <(grep -h 'XKB_EXPORT' -A1 "$top_srcdir"/src/{,xkbcomp,compose}/*.c | grep '^xkb_' | sed -e 's/(.*//' | sort) # xkbcommon-x11 symbols diff -a -u \ - <(cat "$top_srcdir"/xkbcommon-x11.map | \ - grep '^\s\+xkb_.*' | \ - sed -e 's/^\s\+\(.*\);/\1/' | sort) \ - <(cat "$top_srcdir"/src/x11/*.c | \ - grep XKB_EXPORT -A 1 | grep '^xkb_.*' | \ - sed -e 's/(.*//' | sort) + <(grep -h '^\s\+xkb_.*' "$top_srcdir"/xkbcommon-x11.map | sed -e 's/^\s\+\(.*\);/\1/' | sort) \ + <(grep -h 'XKB_EXPORT' -A1 "$top_srcdir"/src/x11/*.c | grep '^xkb_' | sed -e 's/(.*//' | sort) |