Conan_Kudo / build / midipix_build

Forked from build/midipix_build 4 years ago
Clone

Blame subr/post_strip.subr

Lucio Andrés Illanes Albornoz (arab, vxp) 7a180c
#
Lucio Andrés Illanes Albornoz (arab, vxp) 802215
# 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) 154865
post_strip() {
Lucio Andrés Illanes Albornoz (arab, vxp) 802215
	local __;
Lucio Andrés Illanes Albornoz (arab, vxp) 59765f
	if [ ${BUILD_SCRIPT_RC:-0} -eq 0 ]\
Lucio Andrés Illanes Albornoz (arab, vxp) 59765f
	&& [ "${BUILD}" = release ]; then
Lucio Andrés Illanes Albornoz (arab, vxp) 59765f
		for __ in $(find ${PREFIX_NATIVE}/bin -perm -0100 \( -type f -or -type l \)); do
Lucio Andrés Illanes Albornoz (arab, vxp) 59765f
			if objdump -sj .debug_info >/dev/null 2>&1; then
Lucio Andrés Illanes Albornoz (arab, vxp) 02175d
				log_msg vnfo "${PKG_TARGET}-strip ${__}";
Lucio Andrés Illanes Albornoz (arab, vxp) 59765f
				set +o errexit; ${PKG_TARGET}-strip ${__}; set -o errexit;
Lucio Andrés Illanes Albornoz (arab, vxp) 59765f
			fi;
Lucio Andrés Illanes Albornoz (arab, vxp) 59765f
		done;
Lucio Andrés Illanes Albornoz (arab, vxp) 59765f
	fi;
Lucio Andrés Illanes Albornoz (arab, vxp) 59765f
};
Lucio Andrés Illanes Albornoz (arab, vxp) 7a180c
Lucio Andrés Illanes Albornoz (arab, vxp) 7a180c
# vim:filetype=sh