From: kouril Date: Thu, 22 Jul 2010 09:13:54 +0000 (+0000) Subject: Better r.e. to prevent from substituing empty strings on some platforms X-Git-Tag: gssweb-apache-2014-09-08~34 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mod_auth_kerb.git;a=commitdiff_plain;h=b07f536af4cd3a3f757e5e70e31051b0bb83cf17 Better r.e. to prevent from substituing empty strings on some platforms --- diff --git a/apxs.sh b/apxs.sh index cdb3e65..d8a776a 100755 --- a/apxs.sh +++ b/apxs.sh @@ -1,5 +1,5 @@ #!/bin/sh -cppflags=`[ -n "$1" ] && echo $1 | sed -e 's/\([^ ]*\)/-Wc,\1/g'` -ldflags=`[ -n "$2" ] && echo $2 | sed -e 's/\([^ ]*\)/-Wl,\1/g'` +cppflags=`[ -n "$1" ] && echo $1 | sed -e 's/\([^ ]\+\)/-Wc,\1/g'` +ldflags=`[ -n "$2" ] && echo $2 | sed -e 's/\([^ ]\+\)/-Wl,\1/g'` ret=eval "$4" $5 $cppflags $ldflags src/mod_auth_kerb.c $3 exit $ret