]> git.saurik.com Git - wxWidgets.git/commitdiff
use regexes, not wildcards, for config file matching (but it's still broken)
authorVáclav Slavík <vslavik@fastmail.fm>
Tue, 20 Jul 2004 08:44:17 +0000 (08:44 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Tue, 20 Jul 2004 08:44:17 +0000 (08:44 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28317 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wx-config-wrapper.in

index 05ad8d3ef6af829f9a43f3b092a56a8ad97af327..fbac47aa55dd4b2fc31b5d9e44dc9bd5aee03286 100755 (executable)
@@ -41,11 +41,11 @@ makeabs()
 }
 
 # these determine wx-config script to use:
-m_toolkit='*'
-m_univ='*'
-m_unicode='*'
-m_debug='*'
-m_version='*.*'
+m_toolkit='.*[^u][^d]'
+m_univ='\(univ\)\?'
+m_unicode='u\?'
+m_debug='d\?'
+m_version='[0-9]\+\.[0-9]\+'
 
 # lists all wx-config scripts that match criteria specified above
 list_wx_config_scripts()
@@ -63,7 +63,7 @@ list_wx_config_scripts()
     fi
 
     if test -d ${libdir}/wx/config ; then
-        (cd ${libdir}/wx/config/ && ls -1 $mask 2>/dev/null)
+        (cd ${libdir}/wx/config/ && ls -1 | grep "$mask" 2>/dev/null)
     fi
 }