From: Zac Medico Date: Tue, 17 Jun 2008 07:46:23 +0000 (-0000) Subject: * Document eblank and eqawarn in the ebuild.5 man page. X-Git-Tag: v2.2_rc1~22 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c4dca75bd13ee75850d1f8628b3b1bae795064d2;p=portage.git * Document eblank and eqawarn in the ebuild.5 man page. * Create "Ebuild Helper Functions" section docbook format, including all the functions documented in the ebuild.5 man page. svn path=/main/trunk/; revision=10687 --- diff --git a/doc/package/ebuild.docbook b/doc/package/ebuild.docbook index 5466f99db..4bdb8129d 100644 --- a/doc/package/ebuild.docbook +++ b/doc/package/ebuild.docbook @@ -1,4 +1,5 @@ Ebuild &package_ebuild_phases; +&package_ebuild_helper_functions; diff --git a/doc/package/ebuild/helper_functions.docbook b/doc/package/ebuild/helper_functions.docbook new file mode 100644 index 000000000..ab83d4ed1 --- /dev/null +++ b/doc/package/ebuild/helper_functions.docbook @@ -0,0 +1,57 @@ + + Helper Functions + + Output + + ebegin + + Like einfo, we output a helpful message and then hint that the following + operation may take some time to complete. Once the task is finished, you + need to call eend. + + + + eblank + + Show a blank line. Consecutive eblank calls collapse into + a single blank line. + + + + eend + + Followup the ebegin message with an appropriate "OK" or "!!" (for errors) + marker. If status is non-zero, then the additional error message is + displayed. + + + + einfo + + Same as elog, but should be used when the message isn't important + to the user (like progress or status messages during the build process). + + + + elog + + If you need to display a message that you wish the user to read + and take notice of, then use elog. It works just like echo(1), + but adds a little more to the output so as to catch the user's eye. + The message will also be logged by portage for later review. + + + + eqawarn + + Same as einfo, but should be used when showing a QA warning to the user. + + + + ewarn + + Same as einfo, but should be used when showing a warning to the user. + + + + diff --git a/doc/portage.docbook b/doc/portage.docbook index d158c1a21..8c29303e6 100644 --- a/doc/portage.docbook +++ b/doc/portage.docbook @@ -14,6 +14,7 @@ + diff --git a/man/ebuild.5 b/man/ebuild.5 index 9885175cc..7d544a75d 100644 --- a/man/ebuild.5 +++ b/man/ebuild.5 @@ -580,6 +580,10 @@ VERINS="$(best_version net\-ftp/glftpd)" .RE .SH "HELPER FUNCTIONS: OUTPUT" .TP +\fBeblank\fR +Show a blank line. Consecutive eblank calls collapse into +a single blank line. +.TP \fBeinfo\fR \fI"disposable message"\fR Same as \fBelog\fR, but should be used when the message isn't important to the user (like progress or status messages during the build process). @@ -593,6 +597,9 @@ will also be logged by portage for later review. \fBewarn\fR \fI"warning message"\fR Same as \fBeinfo\fR, but should be used when showing a warning to the user. .TP +\fBeqawarn\fR \fI"QA warning message"\fR +Same as \fBeinfo\fR, but should be used when showing a QA warning to the user. +.TP \fBeerror\fR \fI"error message"\fR Same as \fBeinfo\fR, but should be used when showing an error to the user. .TP