summaryrefslogtreecommitdiffhomepage
path: root/subr/pkg_install_pre.subr
blob: 7ab8a9e2a085dc3736f8183cead45de7b7d9f73b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#
# set -o errexit -o noglob are assumed.
#

pkg_install_pre() {
	if [ "${PKG_NAME%flavour_minipix}" != "${PKG_NAME}" ]	\
	&& [ ${ARG_DEBUG_MINIPIX:-0} -eq 0 ]			\
	&& [ -e "${PREFIX_MINIPIX}" ]; then
		find "${PREFIX_MINIPIX}" -perm /a=x		\
			\( -type f -or -type l \) > "${WORKDIR}/.stat_minipix.old";
	elif [ "${BUILD}" = release ]				\
	&&   [ -e "${PREFIX_NATIVE}/bin" ]; then
		find "${PREFIX_NATIVE}/bin" -perm /a=x		\
			\( -type f -or -type l \) > "${WORKDIR}/.stat_native.old";
	fi;
};

# vim:filetype=sh