Blame subr/strip.subr

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) 59765f
do_strip() {
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) 59765f
				if [ ${ARG_VERBOSE:-0} -eq 1 ]; then
Lucio Andrés Illanes Albornoz (arab, vxp) 59765f
					echo ${PKG_TARGET}-strip ${__};
Lucio Andrés Illanes Albornoz (arab, vxp) 59765f
				fi;
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