Gentoo Archives: gentoo-pms

From: Ulrich Mueller <ulm@g.o>
To: gentoo-pms@l.g.o
Subject: Re: [gentoo-pms] EAPI 5: does doheader have a -r option, or is recursion implied?
Date: Sat, 15 Sep 2012 21:03:27
Message-Id: 20564.60692.717185.979188@a1i15.kph.uni-mainz.de
In Reply to: [gentoo-pms] EAPI 5: does doheader have a -r option, or is recursion implied? by Zac Medico
1 >>>>> On Sat, 15 Sep 2012, Zac Medico wrote:
2
3 > PMS does not document this, and the current Portage implementation
4 > supports -r since it passes the arguments to doins as noted here:
5
6 > https://bugs.gentoo.org/show_bug.cgi?id=21310#c5
7
8 Let's document it then.
9
10 Ulrich
11
12
13 From e6ed3676bea254675b372645d5fc8f01d1e18eb4 Mon Sep 17 00:00:00 2001
14 From: =?UTF-8?q?Ulrich=20M=C3=BCller?= <ulm@g.o>
15 Date: Sat, 15 Sep 2012 22:56:15 +0200
16 Subject: [PATCH] doheader accepts -r option for recursion.
17
18 The doheader implementation is based on doins, so it is natural that
19 it also supports recursion.
20 ---
21 pkg-mgr-commands.tex | 3 ++-
22 1 file changed, 2 insertions(+), 1 deletion(-)
23
24 diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex
25 index 25cf79d..772613e 100644
26 --- a/pkg-mgr-commands.tex
27 +++ b/pkg-mgr-commands.tex
28 @@ -292,7 +292,8 @@ function has returned.
29
30 \item[doheader] \featurelabel{doheader} Installs the given header files into \t{/usr/include/},
31 by default with file mode \t{0644}. This can be overridden by setting \t{INSOPTIONS} with the
32 - \t{insopts} function.
33 + \t{insopts} function. If the first argument is \t{-r}, then operates recursively, descending
34 + into any directories given.
35 Only available in EAPIs listed in table~\ref{tab:doheader-table} as supporting \t{doheader}.
36 Failure behaviour is EAPI dependent as per section~\ref{sec:failure-behaviour}.
37
38 --
39 1.7.12

Replies