summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAron Griffis <agriffis@gentoo.org>2004-08-07 04:24:41 +0000
committerAron Griffis <agriffis@gentoo.org>2004-08-07 04:24:41 +0000
commitb501bed517135deaf86ec0658742d17255d505bb (patch)
treee8b9486969ce0489e4965369db68ee5f528f4e25 /eclass/flag-o-matic.eclass
parentAdded net-dns/bind-tools-9.2.2. (diff)
downloadgentoo-2-b501bed517135deaf86ec0658742d17255d505bb.tar.gz
gentoo-2-b501bed517135deaf86ec0658742d17255d505bb.tar.bz2
gentoo-2-b501bed517135deaf86ec0658742d17255d505bb.zip
make is-flag work for globs
Diffstat (limited to 'eclass/flag-o-matic.eclass')
-rw-r--r--eclass/flag-o-matic.eclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index 2700db68fe3a..83a069b998ac 100644
--- a/eclass/flag-o-matic.eclass
+++ b/eclass/flag-o-matic.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.66 2004/07/28 02:18:38 lv Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.67 2004/08/07 04:24:41 agriffis Exp $
#
# Author Bart Verwilst <verwilst@gentoo.org>
@@ -176,7 +176,8 @@ is-flag() {
local x
for x in ${CFLAGS} ${CXXFLAGS} ; do
- if [ "${x}" == "$1" ] ; then
+ # Note this should work with globs like -mcpu=ultrasparc*
+ if [[ ${x} == ${1} ]]; then
echo true
return 0
fi