diff options
author | Bart Verwilst <verwilst@gentoo.org> | 2002-06-08 15:46:55 +0000 |
---|---|---|
committer | Bart Verwilst <verwilst@gentoo.org> | 2002-06-08 15:46:55 +0000 |
commit | 2bd7dabbe5e5fb060a959122e225c28f1c465e18 (patch) | |
tree | d0d96f14fcb43b07a70244f88cff5817e0020870 /eclass | |
parent | depend changes (diff) | |
download | historical-2bd7dabbe5e5fb060a959122e225c28f1c465e18.tar.gz historical-2bd7dabbe5e5fb060a959122e225c28f1c465e18.tar.bz2 historical-2bd7dabbe5e5fb060a959122e225c28f1c465e18.zip |
added new flag-eclass
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/flag-o-matic.eclass | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass new file mode 100644 index 000000000000..9814b87d4144 --- /dev/null +++ b/eclass/flag-o-matic.eclass @@ -0,0 +1,22 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# Author Bart Verwilst <verwilst@gentoo.org> +# /space/gentoo/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass +ECLASS=flag-o-matic + +filter-flags () { + + for x in $1; do + CFLAGS="${CFLAGS/$x}" + CXXFLAGS="${CXXFLAGS/$x}" + done + +} + +max-optim () { + + for x in $CFLAGS; do + echo $x + done + +} |