public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:eapi7-ver commit in: eclass/
Date: Tue, 12 Sep 2017 16:37:21 +0000 (UTC)	[thread overview]
Message-ID: <1505234158.6ebc5bb7e23966afaf46e9a9a568ba131ce6a019.ulm@gentoo> (raw)

commit:     6ebc5bb7e23966afaf46e9a9a568ba131ce6a019
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 12 09:31:16 2017 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Tue Sep 12 16:35:58 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ebc5bb7

eapi7-ver.eclass: Fix eclass documentation.

- Reorder function tags in order not to confuse eclass-to-manpage.awk.
- @ROFF tags for subheadings, since ==== underlines won't be properly
  rendered.
- Two spaces after full stops to make nroff happy.

 eclass/eapi7-ver.eclass | 32 ++++++++++++++++++--------------
 1 file changed, 18 insertions(+), 14 deletions(-)

diff --git a/eclass/eapi7-ver.eclass b/eclass/eapi7-ver.eclass
index 5e8479dfdcd..1e8e3c5e55b 100644
--- a/eclass/eapi7-ver.eclass
+++ b/eclass/eapi7-ver.eclass
@@ -10,7 +10,7 @@
 # @BLURB: Testing implementation of EAPI 7 version manipulators
 # @DESCRIPTION:
 # A stand-alone implementation of the version manipulation functions
-# aimed for EAPI 7. Intended to be used for wider testing of
+# aimed for EAPI 7.  Intended to be used for wider testing of
 # the proposed functions and to allow ebuilds to switch to the new
 # model early, with minimal change needed for actual EAPI 7.
 #
@@ -18,28 +18,30 @@
 #
 # Note: version comparison function is not included currently.
 #
+# @ROFF .SS
 # Version strings
-# ===============
+#
 # The functions support arbitrary version strings consisting of version
 # components interspersed with (possibly empty) version separators.
 #
 # A version component can either consist purely of digits ([0-9]+)
-# or purely of uppercase and lowercase letters ([A-Za-z]+). A version
+# or purely of uppercase and lowercase letters ([A-Za-z]+).  A version
 # separator is either a string of any other characters ([^A-Za-z0-9]+),
 # or it occurs at the transition between a sequence of letters
 # and a sequence of digits, or vice versa.  In the latter case,
 # the version separator is an empty string.
 #
 # The version is processed left-to-right, and each successive component
-# is assigned numbers starting with 1. The components are either split
+# is assigned numbers starting with 1.  The components are either split
 # on version separators or on boundaries between digits and letters
 # (in which case the separator between the components is empty).
 # Version separators are assigned numbers starting with 1 for
-# the separator between 1st and 2nd components. As a special case,
+# the separator between 1st and 2nd components.  As a special case,
 # if the version string starts with a separator, it is assigned index 0.
 #
 # Examples:
 #
+# @CODE
 #   1.2b-alpha4 -> 1 . 2 '' b - alpha '' 4
 #                  c s c s  c s c     s  c
 #                  1 1 2 2  3 3 4     4  5
@@ -47,12 +49,14 @@
 #   .11.        -> . 11 .
 #                  s c  s
 #                  0 1  1
+# @CODE
 #
+# @ROFF .SS
 # Ranges
-# ======
+#
 # A range can be specified as 'm' for m-th version component, 'm-'
 # for all components starting with m-th or 'm-n' for components starting
-# at m-th and ending at n-th (inclusive). If the range spans outside
+# at m-th and ending at n-th (inclusive).  If the range spans outside
 # the version string, it is truncated silently.
 
 case ${EAPI:-0} in
@@ -65,11 +69,11 @@ case ${EAPI:-0} in
 esac
 
 # @FUNCTION: _ver_parse_range
-# @INTERNAL
 # @USAGE: <range> <max>
+# @INTERNAL
 # @DESCRIPTION:
 # Parse the range string <range>, setting 'start' and 'end' variables
-# to the appropriate bounds. <min> and <max> specify the appropriate
+# to the appropriate bounds.  <min> and <max> specify the appropriate
 # lower and upper bound for the range; the user-specified value is
 # truncated to this range.
 _ver_parse_range() {
@@ -90,8 +94,8 @@ _ver_parse_range() {
 }
 
 # @FUNCTION: _ver_split
-# @INTERNAL
 # @USAGE: <version>
+# @INTERNAL
 # @DESCRIPTION:
 # Split the version string <version> into separator-component array.
 # Sets 'comp' to an array of the form: ( s_0 c_1 s_1 c_2 s_2 c_3... )
@@ -145,8 +149,8 @@ ver_cut() {
 # @USAGE: <range> <repl> [<range> <repl>...] [<version>]
 # @DESCRIPTION:
 # Print the version string after substituting the specified version
-# separators at <range> with <repl> (string). Multiple '<range> <repl>'
-# pairs can be specified. Processes <version> if specified,
+# separators at <range> with <repl> (string).  Multiple '<range> <repl>'
+# pairs can be specified.  Processes <version> if specified,
 # ${PV} otherwise.
 #
 # For the syntax of versions and ranges, please see the eclass
@@ -176,8 +180,8 @@ ver_rs() {
 # @FUNCTION: ver_test
 # @USAGE: [<v1>] <op> <v2>
 # @DESCRIPTION:
-# Check if the relation <v1> <op> <v2> is true. If <v1> is not specified,
-# default to ${PVR}. <op> can be -gt, -ge, -eq, -ne, -le, -lt.
+# Check if the relation <v1> <op> <v2> is true.  If <v1> is not specified,
+# default to ${PVR}.  <op> can be -gt, -ge, -eq, -ne, -le, -lt.
 # Both versions must conform to the PMS version syntax (with optional
 # revision parts), and the comparison is performed according to
 # the algorithm specified in the PMS.


             reply	other threads:[~2017-09-12 16:37 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-12 16:37 Ulrich Müller [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-09-23  5:46 [gentoo-commits] repo/gentoo:eapi7-ver commit in: eclass/ Ulrich Müller
2017-09-22 21:28 Ulrich Müller
2017-09-22 16:10 Ulrich Müller
2017-09-21 14:04 Michał Górny
2017-09-21 14:04 Michał Górny
2017-09-21 13:26 Ulrich Müller
2017-09-21 12:57 Ulrich Müller
2017-09-21  7:38 Ulrich Müller
2017-09-21  7:04 Michał Górny
2017-09-20 21:19 Ulrich Müller
2017-09-12 16:37 Ulrich Müller
2017-09-08 11:11 Michał Górny
2017-09-08 11:11 Michał Górny
2017-09-06 15:31 Michał Górny
2017-09-06 15:22 Michał Górny
2017-09-06 13:45 Michał Górny
2017-09-06 13:45 Michał Górny
2017-09-06 13:40 Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1505234158.6ebc5bb7e23966afaf46e9a9a568ba131ce6a019.ulm@gentoo \
    --to=ulm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox