mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-08 07:33:53 +01:00
Naming scheme is now: * ratbag - the context * ratbag_device - the device * ratbag_profile * ratbag_button ... Only leftovers of "libratbag" are the header file name, #defines that are exported through that header file and anything that has to do with the actual library iself (e.g. the symbol export file). Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
18 lines
413 B
Bash
18 lines
413 B
Bash
#!/bin/bash
|
|
|
|
### simple check for exported symbols
|
|
|
|
# make bash exit if any command will exit with non-0 return value
|
|
set -e
|
|
|
|
# make sure the paths are alright
|
|
cd `dirname $0`
|
|
|
|
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)
|