1#!/bin/bash -e 2# 3# simple check for exported symbols 4# 5# Usage: symbols-leak-test /path/to/mapfile /path/to/libinput/src 6 7mapfile="$1" 8shift 9srcdir="$1" 10shift 11 12diff -a -u \ 13 <(cat "$mapfile" | \ 14 grep '^\s\+libinput_.*' | \ 15 sed -e 's/^\s\+\(.*\);/\1/' | sort) \ 16 <(cat "$srcdir"/*.c | \ 17 grep LIBINPUT_EXPORT -A 1 | grep '^libinput_.*' | \ 18 sed -e 's/(.*//' | sort) 19