]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Only process 40 arguments (20 files) at once with xargs, because some older
authorTilghman Lesher <tilghman@meg.abyt.es>
Thu, 19 Jun 2008 16:26:03 +0000 (16:26 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Thu, 19 Jun 2008 16:26:03 +0000 (16:26 +0000)
shells may force xargs to separate on an odd boundary.
(Closes issue #12883)
Reported by Nik Soggia

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@123909 65c4cc65-6c06-0410-ace0-fbb531ad65f3

build_tools/strip_nonapi

index ba748298365f2ef0d306f5afcf1de365c8e5b732..ade30c978a5727ce2aa23808005cb304f3736c1e 100755 (executable)
@@ -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
        ;;
     *)