diff options
author | Tavis Ormandy <taviso@gentoo.org> | 2003-05-26 15:53:04 +0000 |
---|---|---|
committer | Tavis Ormandy <taviso@gentoo.org> | 2003-05-26 15:53:04 +0000 |
commit | dfaa6ba12c85099dc1097fd32d559e947c5af803 (patch) | |
tree | f596b25a2224cf3f9b98ce543928a7315eb49996 /eclass/ccc.eclass | |
parent | fix bug 21022 (diff) | |
download | gentoo-2-dfaa6ba12c85099dc1097fd32d559e947c5af803.tar.gz gentoo-2-dfaa6ba12c85099dc1097fd32d559e947c5af803.tar.bz2 gentoo-2-dfaa6ba12c85099dc1097fd32d559e947c5af803.zip |
improving the flag-o-matic cloned is-ldflags()
Diffstat (limited to 'eclass/ccc.eclass')
-rw-r--r-- | eclass/ccc.eclass | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/eclass/ccc.eclass b/eclass/ccc.eclass index 5261c1974fbf..07fa9084a113 100644 --- a/eclass/ccc.eclass +++ b/eclass/ccc.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ccc.eclass,v 1.1 2003/05/26 15:33:35 taviso Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ccc.eclass,v 1.2 2003/05/26 15:53:04 taviso Exp $ # # Authors: Tavis Ormandy <taviso@gentoo.org> # Aron Griffis <agriffis@gentoo.org> @@ -216,15 +216,29 @@ append-ldflags() LDFLAGS="${LDFLAGS} ${1}" } -is-ldflags() -{ +# flag-o-matic clone +# +#is-ldflags() +#{ +# for x in ${LDFLAGS} +# do +# if [ "${x}" = "${1}" ]; then +# echo true +# break +# fi +# done +#} + +is-ldflags() { + local x for x in ${LDFLAGS} do - if [ "${x}" = "${1}" ]; then - echo true - break + if [ "${x}" == "${1}" ]; then + tty --quiet < /dev/stdout || echo "true" + return 0 fi done + return 1 } filter-ldflags() |