aboutsummaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorMichael Orlitzky <mjo@gentoo.org>2014-01-22 16:18:23 -0500
committerMike Frysinger <vapier@gentoo.org>2014-01-22 20:05:27 -0500
commit669ccb584f4d39b764223ae44cb2d45ac6eb3903 (patch)
tree916de4b8226e79bcd727563ac03cd874296846e2 /man
parentAdded support for variable expansion in source command argument in make.conf (diff)
downloadportage-669ccb584f4d39b764223ae44cb2d45ac6eb3903.tar.gz
portage-669ccb584f4d39b764223ae44cb2d45ac6eb3903.tar.bz2
portage-669ccb584f4d39b764223ae44cb2d45ac6eb3903.zip
ebuild(5): document the "has" function
Diffstat (limited to 'man')
-rw-r--r--man/ebuild.512
1 files changed, 7 insertions, 5 deletions
diff --git a/man/ebuild.5 b/man/ebuild.5
index 524006a5a..32c3ea664 100644
--- a/man/ebuild.5
+++ b/man/ebuild.5
@@ -1049,15 +1049,17 @@ of \fI\-\-without\-\fR. Beginning with \fBEAPI 4\fR, an empty \fIconfigure
opt\fR argument is recognized. In \fBEAPI 3\fR and earlier, an empty
\fIconfigure opt\fR argument is treated as if it weren't provided.
.TP
-.B hasv\fR \fI<item>\fR \fI<item list>
-If \fIitem\fR is in \fIitem list\fR, then \fIitem\fR is echoed and \fBhasv\fR
-returns 0. Otherwise, nothing is echoed and 1 is returned. As indicated with
-use, there is a non\-echoing version \fBhas\fR. Please use \fBhas\fR in all
-places where output is to be disregarded. Never use the output for calculation.
+.B has\fR \fI<item>\fR \fI<item list>
+If \fIitem\fR is in \fIitem list\fR, then \fBhas\fR returns
+0. Otherwise, 1 is returned. There is another version, \fBhasv\fR, that
+will conditionally echo \fIitem\fR.
.br
The \fIitem list\fR is delimited by the \fIIFS\fR variable. This variable
has a default value of ' ', or a space. It is a \fBbash\fR(1) setting.
.TP
+.B hasv\fR \fI<item>\fR \fI<item list>
+Like \fBhas\fR, but also echoes \fIitem\fR when \fBhas\fR returns true.
+.TP
.B has_version\fR \fI[\-\-host\-root]\fR \fI<category/package\-version>
Check to see if \fIcategory/package\-version\fR is installed on the system.
The parameter accepts all values that are acceptable in the \fBDEPEND\fR