Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 302736
Collapse All | Expand All

(-)asterisk-1.6.2.2.ORIG/build_tools/strip_nonapi (-4 / +9 lines)
Lines 29-38 Link Here
29
29
30
case "${OSARCH}" in
30
case "${OSARCH}" in
31
    linux-gnu|FreeBSD)
31
    linux-gnu|FreeBSD)
32
	nm ${1} | ${GREP} -e "$TEXTSYM" | cut -d" " -f3 | ${FILTER} > striplist
32
		nm ${1} > symlist
33
	sed -e "s/^/-N /" striplist | xargs -n 40 ${STRIP} ${1}
33
		if [ -s symlist ]
34
	rm -f striplist
34
		then
35
	;;
35
			${GREP} -e "$TEXTSYM" symlist | cut -d" " -f3 | ${FILTER} > striplist
36
			sed -e "s/^/-N /" striplist | xargs -n 40 ${STRIP} ${1}
37
			rm -f striplist
38
		fi
39
		rm -f symlist
40
		;;
36
    *)
41
    *)
37
	;;
42
	;;
38
esac
43
esac

Return to bug 302736