corosync-pve/debian/check_header_deps
Thomas Lamprecht 8dcb3076b4 move to submodule build
allowing us to drop the tarball tracking and the patches-of-patches
thing, which is just plain annoying and costs to much time and nerves
when touching anything..

diffoscope tested previous and current .deb, only real change is the
exclusion of the changelog from Debian, but as that was ordered after
ours anyway it shouldn't be to big of an issue

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-10-03 15:56:25 +02:00

20 lines
443 B
Bash
Executable File

#!/bin/sh -e
cd debian
pkgs=$(grep-dctrl -sPackage -n -FSection libdevel control)
for p in $pkgs; do
includes="$includes -I $p/usr/include"
done
for pkg in $pkgs; do
{
printf 'header:Depends='
for header in $(find "$pkg" -name "*.h"); do
gcc -MM -MT '' -E $includes $header
done | sed "s|^:||;s|^ *||;\|^$pkg/|d;s|/.*| (= \${binary:Version}),|" | sort -u | tr '\n' ' '
printf '\n'
} >>"$pkg.substvars"
done