mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
And thus drop the code to parse the top_srcdir from the arguments to the symbols-leak-test, not the env. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
23 lines
494 B
Bash
Executable File
23 lines
494 B
Bash
Executable File
#!/bin/bash
|
|
|
|
### simple check for exported symbols
|
|
|
|
TOP_SRCDIR="$1"
|
|
|
|
if [ -z "$TOP_SRCDIR" ]; then
|
|
echo "usage: $0 path/to/top_srcdir"
|
|
exit 1
|
|
fi
|
|
|
|
# make bash exit if any command will exit with non-0 return value
|
|
set -e
|
|
|
|
# make sure the paths are alright
|
|
diff -a -u \
|
|
<(cat "$TOP_SRCDIR"/src/libratbag.sym | \
|
|
grep '^\s\+ratbag_.*' | \
|
|
sed -e 's/^\s\+\(.*\);/\1/' | sort) \
|
|
<(cat "$TOP_SRCDIR"/src/*.c | \
|
|
grep LIBRATBAG_EXPORT -A 1 | grep '^ratbag_.*' | \
|
|
sed -e 's/(.*//' | sort)
|