From: Václav Slavík Date: Tue, 20 Jul 2004 08:44:17 +0000 (+0000) Subject: use regexes, not wildcards, for config file matching (but it's still broken) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/bd82118540d052ab886d8ae9c6e1424ab1efc59b use regexes, not wildcards, for config file matching (but it's still broken) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28317 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wx-config-wrapper.in b/wx-config-wrapper.in index 05ad8d3ef6..fbac47aa55 100755 --- a/wx-config-wrapper.in +++ b/wx-config-wrapper.in @@ -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 }