Debian Codegraph @

.gitlab/ci/check_missing_headers.sh

raw
1 #!/bin/sh
2
3 # This script will tell you if there are headers in the source tree
4 # that have not been installed in $PREFIX
5
6 LIST=""
7
8 for i in $(find spa/include -name '*.h' | sed s#spa/include/##);
9 do
10 [ -f "$PREFIX/include/spa-0.2/$i" ] || LIST="$i $LIST"
11 done
12
13 for i in $(find src/pipewire -name '*.h' -a -not -name '*private.h' | sed s#src/##);
14 do
15 [ -f "$PREFIX/include/pipewire-0.3/$i" ] || LIST="$i $LIST"
16 done
17
18 for i in $LIST;
19 do
20 echo "$i not installed"
21 done
22
23 if [ "$LIST" != "" ];
24 then
25 exit 1
26 fi
27
28 exit 0