From: Brian West Date: Thu, 27 Feb 2014 18:21:01 +0000 (-0600) Subject: fix modcheck to properly deal with prefix and don't alert on anything that isn't... X-Git-Tag: v.15.9~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c053be260652dfc7deeb43f28d5932d7361ece8;p=thirdparty%2Ffreeswitch.git fix modcheck to properly deal with prefix and don't alert on anything that isn't mod_ because ftmod_ gets installed here too and will alert --- diff --git a/build/modcheck.sh b/build/modcheck.sh index 78f7c93f85..6b645dfef6 100644 --- a/build/modcheck.sh +++ b/build/modcheck.sh @@ -5,6 +5,9 @@ mods=$1 on='' off='' +prefix=`cat ../config.log | grep ^prefix=\' | awk -F \' '{print $2}'` +mods=${prefix}/mod; + if [ -z $mods ] ; then mods="/usr/local/freeswitch/mod" fi @@ -15,7 +18,7 @@ echo here=`pwd` cd $mods -files=`ls *.dylib *.so 2>/dev/null` +files=`ls mod_*.dylib mod_*.so 2>/dev/null` cd $here for i in $files ; do