#!/bin/sh
set -e

dpkg-source --before-build `pwd`
dpkg-buildpackage --target=build
./obj-`dpkg-architecture -qDEB_HOST_MULTIARCH`/bin/paxrat -s m -b /bin/grep
getfattr -n user.pax.flags /bin/grep 2>/dev/null | grep 'user.pax.flags="me"'
