1 |
On Fri, Sep 6, 2019 at 2:52 PM Michael Everitt <gentoo@×××××××.xyz> wrote: |
2 |
> |
3 |
> On 06/09/19 18:27, Ben Kohler wrote: |
4 |
> > Signed-off-by: Ben Kohler <bkohler@g.o> |
5 |
> > --- |
6 |
> > eclass/tmpfiles.eclass | 6 +++--- |
7 |
> > 1 file changed, 3 insertions(+), 3 deletions(-) |
8 |
> > |
9 |
> > diff --git a/eclass/tmpfiles.eclass b/eclass/tmpfiles.eclass |
10 |
> > index 68478ffbcd6..360c5e3b816 100644 |
11 |
> > --- a/eclass/tmpfiles.eclass |
12 |
> > +++ b/eclass/tmpfiles.eclass |
13 |
> > @@ -63,7 +63,7 @@ esac |
14 |
> > RDEPEND="virtual/tmpfiles" |
15 |
> > |
16 |
> > # @FUNCTION: dotmpfiles |
17 |
> > -# @USAGE: dotmpfiles <tmpfiles.d_file> ... |
18 |
> > +# @USAGE: <tmpfiles.d_file> ... |
19 |
> > # @DESCRIPTION: |
20 |
> > # Install one or more tmpfiles.d files into /usr/lib/tmpfiles.d. |
21 |
> > dotmpfiles() { |
22 |
> > @@ -84,7 +84,7 @@ dotmpfiles() { |
23 |
> > } |
24 |
> > |
25 |
> > # @FUNCTION: newtmpfiles |
26 |
> > -# @USAGE: newtmpfiles <old-name> <new-name>.conf |
27 |
> > +# @USAGE: <old-name> <new-name>.conf |
28 |
> > # @DESCRIPTION: |
29 |
> > # Install a tmpfiles.d file in /usr/lib/tmpfiles.d under a new name. |
30 |
> > newtmpfiles() { |
31 |
> > @@ -102,7 +102,7 @@ newtmpfiles() { |
32 |
> > } |
33 |
> > |
34 |
> > # @FUNCTION: tmpfiles_process |
35 |
> > -# @USAGE: tmpfiles_process <filename> <filename> ... |
36 |
> > +# @USAGE: <filename> <filename> ... |
37 |
> > # @DESCRIPTION: |
38 |
> > # Call a tmpfiles.d implementation to create new volatile and temporary |
39 |
> > # files and directories. |
40 |
> This series seems super counter-intuitive to me .. surely all usage |
41 |
> examples (in Linux/etc in general) utilise the command itself to provide |
42 |
> context of how to invoke the function/etc ?? or am I [once again] mistaken? |
43 |
> |
44 |
> Perhaps the series should be to *add* the function across the tree, rather |
45 |
> than remove it? |
46 |
> |
47 |
|
48 |
Having the function name in the @USAGE block results in duplicate |
49 |
output in the resulting man page. |
50 |
|
51 |
FUNCTIONS |
52 |
dotmpfiles dotmpfiles <tmpfiles.d_file> ... |
53 |
Install one or more tmpfiles.d files into /usr/lib/tmpfiles.d. |
54 |
|
55 |
newtmpfiles newtmpfiles <old-name> <new-name>.conf |
56 |
Install a tmpfiles.d file in /usr/lib/tmpfiles.d under a new name. |
57 |
|
58 |
tmpfiles_process tmpfiles_process <filename> <filename> ... |
59 |
Call a tmpfiles.d implementation to create new volatile |
60 |
and temporary files and di‐ |
61 |
rectories. |