Conan_Kudo / build / midipix_build

Forked from build/midipix_build 4 years ago
Clone

Blame 997.strip.build

Lucio Andrés Illanes Albornoz (arab, vxp) 7a180c
#
Lucio Andrés Illanes Albornoz (arab, vxp) 7a180c
# . ./build.vars and set -o errexit -o noglob are assumed.
Lucio Andrés Illanes Albornoz (arab, vxp) 7a180c
#
Lucio Andrés Illanes Albornoz (arab, vxp) 7a180c
Lucio Andrés Illanes Albornoz (arab, vxp) 7a180c
if [ "${BUILD}" != "release" ]; then
Lucio Andrés Illanes Albornoz (arab, vxp) 7a180c
	exit;
Lucio Andrés Illanes Albornoz (arab, vxp) 7a180c
else
Lucio Andrés Illanes Albornoz (arab, vxp) 7a180c
	for __ in $(find ${PREFIX_NATIVE}/bin -perm -0100 \( -type f -or -type l \)); do
Lucio Andrés Illanes Albornoz (arab, vxp) 7a180c
		set +o errexit;
Lucio Andrés Illanes Albornoz (arab, vxp) 7a180c
		if [ -n "$(${PKG_TARGET}-objdump -h ${__} 2>/dev/null | awk '/\.debug_info\s/{print}')" ]; then
Lucio Andrés Illanes Albornoz (arab, vxp) 7a180c
			echo ${PKG_TARGET}-strip ${__};
Lucio Andrés Illanes Albornoz (arab, vxp) 7a180c
			${PKG_TARGET}-strip ${__};
Lucio Andrés Illanes Albornoz (arab, vxp) 7a180c
		fi;
Lucio Andrés Illanes Albornoz (arab, vxp) 7a180c
		set -o errexit;
Lucio Andrés Illanes Albornoz (arab, vxp) 7a180c
	done;
Lucio Andrés Illanes Albornoz (arab, vxp) 7a180c
fi;
Lucio Andrés Illanes Albornoz (arab, vxp) 7a180c
Lucio Andrés Illanes Albornoz (arab, vxp) 7a180c
# vim:filetype=sh