diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-06-19 16:26:03 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-06-19 16:26:03 +0000 |
commit | 809d4e743df6110a5c2e2e9cdeff2b7954e27c8f (patch) | |
tree | ebea3dc0ce571c7df7593f5b626ae0b633892bed /build_tools | |
parent | ac7431d89bb4ed17b3dc5630ea8826ceae2353c7 (diff) |
Only process 40 arguments (20 files) at once with xargs, because some older
shells may force xargs to separate on an odd boundary.
(Closes issue #12883)
Reported by Nik Soggia
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@123909 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'build_tools')
-rwxr-xr-x | build_tools/strip_nonapi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build_tools/strip_nonapi b/build_tools/strip_nonapi index ba7482983..ade30c978 100755 --- a/build_tools/strip_nonapi +++ b/build_tools/strip_nonapi @@ -29,7 +29,7 @@ FILTER="${GREP} -v -e ^ast_ -e ^_ast_ -e ^__ast_ -e ^astman_ -e ^pbx_" case "${OSARCH}" in linux-gnu) nm ${1} | ${GREP} -e "$TEXTSYM" | cut -d" " -f3 | ${FILTER} > striplist - sed -e "s/^/-N /" striplist | xargs ${STRIP} ${1} + sed -e "s/^/-N /" striplist | xargs -n 40 ${STRIP} ${1} rm -f striplist ;; *) |