diff options
author | Donnie Berkholz <dberkholz@gentoo.org> | 2004-02-21 21:23:51 +0000 |
---|---|---|
committer | Donnie Berkholz <dberkholz@gentoo.org> | 2004-02-21 21:23:51 +0000 |
commit | f1561214689b5c6ddb1716cce621f1f1dbf3c002 (patch) | |
tree | 8a07623fd479b8c441de7a3cf0fea6e597b35de0 /eclass | |
parent | Marked as stable (diff) | |
download | historical-f1561214689b5c6ddb1716cce621f1f1dbf3c002.tar.gz historical-f1561214689b5c6ddb1716cce621f1f1dbf3c002.tar.bz2 historical-f1561214689b5c6ddb1716cce621f1f1dbf3c002.zip |
Add arch() helper function to save space when checking ARCH.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/xfree.eclass | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/eclass/xfree.eclass b/eclass/xfree.eclass index ca18fd6af5b2..8991e1b54d71 100644 --- a/eclass/xfree.eclass +++ b/eclass/xfree.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/xfree.eclass,v 1.12 2004/01/29 16:18:07 spyderous Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/xfree.eclass,v 1.13 2004/02/21 21:23:51 spyderous Exp $ # # Author: Seemant Kulleen <seemant@gentoo.org> # @@ -87,3 +87,7 @@ strip_bins() { fi done } + +arch() { + [ "${ARCH}" = "${1}" ] +} |