]> git.ipfire.org Git - thirdparty/freeswitch.git/blobdiff - build/modcheck.sh
[Build-System] Allow out-of-tree modules to stay commented out in modules.conf and...
[thirdparty/freeswitch.git] / build / modcheck.sh
index 5df91f7e972b2998c16fdc1ba3802da2dc3affec..e8a82abf298431fc8c54cabe277caf39eb8dbbeb 100644 (file)
@@ -21,8 +21,8 @@ cd $here
 for i in $files ; do
     mod=${i%%.*}
 
-    infile=`grep ^.*$mod\$ ../modules.conf | grep -v ftmod_`
-    commented=`grep ^\#.*$mod\$ ../modules.conf | grep -v ftmod_`
+    infile=`grep -E "^.*$mod(\|.*)?$" ../modules.conf | grep -v ftmod_`
+    commented=`grep -E "^\#.*$mod(\|.*)?$" ../modules.conf | grep -v ftmod_`
 
     if [ -z "$infile" ] ; then
        echo "${on}WARNING: installed module: $i was not installed by this build.  It is not present in modules.conf.${off}"