Hash :
81ee012a
Author :
Date :
2016-06-09T14:52:34
test/symbols-leak-test: use more portable shebang Some BSDs don't want to give bash the honor of /bin and put it elsewhere. So look it up in PATH instead. Signed-off-by: Ran Benita <ran234@gmail.com>
#!/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).
# 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)
# 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)