#! /bin/sh

# If using normal root, avoid changing anything:
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != "/" ] || exit 0

for script in /usr/lib/rpm/brp-redhat.d/brp*; do
	if [ -x "$script" ]; then
		echo "calling $script"
		$script || exit 1
	fi
done
