mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-01 11:07:56 +02:00
With autotools, we replace the @top_srcdir@ during configure and then run teh resulting scripts. With meson, it's easier to just pass top-srcdir it in as argument. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Eric Engestrom <eric@engestrom.ch>
28 lines
609 B
Bash
Executable file
28 lines
609 B
Bash
Executable file
#!/bin/bash
|
|
|
|
### simple check for exported symbols
|
|
|
|
# Allow running this after the configure.ac replacement or directly with an
|
|
# argument for the top_srcdir
|
|
TOP_SRCDIR="@top_srcdir@"
|
|
case "$TOP_SRCDIR" in
|
|
@*)
|
|
TOP_SRCDIR="$1"
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
|
|
# 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/libinput.sym | \
|
|
grep '^\s\+libinput_.*' | \
|
|
sed -e 's/^\s\+\(.*\);/\1/' | sort) \
|
|
<(cat "$TOP_SRCDIR"/src/*.c | \
|
|
grep LIBINPUT_EXPORT -A 1 | grep '^libinput_.*' | \
|
|
sed -e 's/(.*//' | sort)
|