]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix modcheck to properly deal with prefix and don't alert on anything that isn't...
authorBrian West <brian@freeswitch.org>
Thu, 27 Feb 2014 18:21:01 +0000 (12:21 -0600)
committerBrian West <brian@freeswitch.org>
Thu, 27 Feb 2014 18:21:01 +0000 (12:21 -0600)
build/modcheck.sh

index 78f7c93f8531fcf13ef9da81484b3bf6ea5bca98..6b645dfef6581d3b9d784b87be08ea88ef9c66b6 100644 (file)
@@ -5,6 +5,9 @@ mods=$1
 on='\e[01;00;35m'
 off='\e[0m'
 
+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