Merge commit 'v3.3.0' into upstream
[debian/gnuradio] / dtools / bin / check-tarball-h-files
1 #!/bin/sh
2
3 tarball=$1
4 if [ "x$tarball" = "x" ]
5 then
6   echo "usage: $0 tarball" 1>&2
7   exit 1
8 fi
9
10 path=${tarball%%.tar.gz}
11
12 tar tzf $tarball  \
13   | grep -E '\.(h|py|v|vh)$'   \
14   | sed -e "s/$path/./"  \
15   | sort >/tmp/tarball-h-files
16
17 find . \( -name '*.h' -o -name '*.py' -o -name '*.v' -o -name '*.vh' \) -print \
18   | grep -v ./$path | sort >/tmp/build-h-files
19
20 comm -23 /tmp/build-h-files /tmp/tarball-h-files \
21  | grep -Ev '(GrAtsc|_swig_|limbo|config\.h|std_paths\.h)'
22
23 # rm /tmp/tarball-h-files /tmp/build-h-files
24
25