diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-08-17 17:59:35 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-08-17 17:59:35 +0000 |
commit | e13945847d4f52785f01ae1a6dfc746232ed0a13 (patch) | |
tree | 0b5d9592b154cef8c3ad52a5a4e5d82f5d5f7655 /eclass/flag-o-matic.eclass | |
parent | document what each LFS flag does exactly (diff) | |
download | gentoo-2-e13945847d4f52785f01ae1a6dfc746232ed0a13.tar.gz gentoo-2-e13945847d4f52785f01ae1a6dfc746232ed0a13.tar.bz2 gentoo-2-e13945847d4f52785f01ae1a6dfc746232ed0a13.zip |
test the actual # of args and not whether their expansion is an empty string
Diffstat (limited to 'eclass/flag-o-matic.eclass')
-rw-r--r-- | eclass/flag-o-matic.eclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass index e119e1be2ed0..dfe87bcaa827 100644 --- a/eclass/flag-o-matic.eclass +++ b/eclass/flag-o-matic.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2009 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.153 2011/08/17 17:54:48 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.154 2011/08/17 17:59:35 vapier Exp $ # @ECLASS: flag-o-matic.eclass # @MAINTAINER: @@ -130,7 +130,7 @@ filter-flags() { # @DESCRIPTION: # Remove flags that enable Large File Support. filter-lfs-flags() { - [[ -n $@ ]] && die "filter-lfs-flags takes no arguments" + [[ $# -ne 0 ]] && die "filter-lfs-flags takes no arguments" # http://www.gnu.org/s/libc/manual/html_node/Feature-Test-Macros.html # _LARGEFILE_SOURCE: enable support for new LFS funcs (ftello/etc...) # _LARGEFILE64_SOURCE: enable support for 64bit variants (off64_t/fseeko64/etc...) @@ -183,7 +183,7 @@ append-fflags() { # @DESCRIPTION: # Add flags that enable Large File Support. append-lfs-flags() { - [[ -n $@ ]] && die "append-lfs-flags takes no arguments" + [[ $# -ne 0 ]] && die "append-lfs-flags takes no arguments" append-cppflags -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE } |