1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#!/bin/bash set -e set -E function cleanup() { dh_autoreconf_clean patch -p1 -R < debian/tests/patches/system-includes.diff } trap cleanup ERR patch -p1 < debian/tests/patches/system-includes.diff dh_autoreconf aclocal && automake dh_auto_configure make -C example check cleanup