Blame SOURCES/brp-kmod-set-exec-bit

a008c1
#! /bin/bash -fx
a008c1
a008c1
## A hack for making brp-strip taking into account kmod files
a008c1
a008c1
# If using normal root, avoid changing anything.
a008c1
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != "/" ] || exit 0
a008c1
a008c1
# Checking for required programs
a008c1
which find chmod >/dev/null || exit 0
a008c1
a008c1
find "$RPM_BUILD_ROOT" \
a008c1
	-name '*.ko' \
a008c1
	-printf '%#m %P\n' \
a008c1
	-exec chmod u+x '{}' \; > "$RPM_BUILD_ROOT/kmod-permissions.list"