summaryrefslogtreecommitdiff
path: root/check_missing_headers.sh
blob: b8f9ba9fde1fb1aea7b7502e6df3e2837cf743fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh

# This script will tell you if there are headers in the source tree
# that have not been installed in $PREFIX

LIST=""

for i in `find spa/include -name '*.h' | sed s#spa/include/##`;
do
	[ -f $PREFIX/include/$i ] || LIST="$i $LIST"
done

for i in `find src/extensions -name '*.h' | sed s#src/#pipewire/#`;
do
	[ -f $PREFIX/include/$i ] || LIST="$i $LIST"
done

for i in `find src/pipewire -name '*.h' -a -not -name '*private.h' | sed s#src/##`;
do
	[ -f $PREFIX/include/$i ] || LIST="$i $LIST"
done

for i in $LIST;
do
	echo "$i not installed"
done

if [ "$LIST" != "" ];
then
	exit 1
fi

exit 0